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: Stefan Monnier
Subject: Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?
Date: Sat, 22 May 2021 18:30:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> 1. Is there some special reason why BLV are implemented only for value
> slots and not for function slots? Would it be inneficient, too
> complicated, or just considered as not needed?

35 years of experience suggest it's not needed (thank god).
It's quite easy to instead do something like

    (defun foo (..)
      (call foo-function ..))

and then use a buffer-local setting for `foo-function` to get the same result.

> 2. Would it be possible, not too inneficient, complicated etc, if obarray
> or hashmap, whichever is used for symbol lookup by Emacs, could be defined
> as BLV, so that Emacs would lookup symbols similar as it does for buffer
> local variables?

35 years of experience suggest it's not needed (thank god).
Also, I think this could lead to quite unexpected semantics.


        Stefan




reply via email to

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