emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?


From: Arthur Miller
Subject: Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?
Date: Sun, 30 May 2021 04:30:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>>>     (setq-local obarray (obarray-copy obarray))
> [...]
>> (setq-local obarray (copy-sequence obarray))
>
> obarray-copy != copy-sequence

My Emacs 27.1 says void function obarray-copy, but copy-sequence 
worked. Aren't obarray just vectors?

For your previous mail; yes I am quite aware this is very use-case
specific solution. Anything done elsewhere, outside that particular
buffer after the copy is performed will not be visible in that buffer,
as well as no definition will escape to rest of the Emacs, so this
buffer can only be used to change state of this particular buffer and
nothing else, and that can be quite brittle. For the bad and good. I
haven't experimented enough yet, just a bit, I am not sure how it will
work with Emacs state internally, gc? etc.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]