[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
- Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Arthur Miller, 2021/05/22
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?,
Stefan Monnier <=
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Arthur Miller, 2021/05/22
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Stefan Monnier, 2021/05/22
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Arthur Miller, 2021/05/23
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Stefan Monnier, 2021/05/23
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Arthur Miller, 2021/05/23
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Arthur Miller, 2021/05/29
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Michael Heerdegen, 2021/05/29
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Arthur Miller, 2021/05/29
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Philipp, 2021/05/30
- Re: Q: BLV for function slots + BL obarray/hmap for symbol lookup?, Stefan Monnier, 2021/05/29