emacs-devel
[Top][All Lists]
Advanced

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

Re: Supporting newer Emacs features in older Emacs versions without warn


From: Basil L. Contovounesios
Subject: Re: Supporting newer Emacs features in older Emacs versions without warnings?
Date: Tue, 28 Sep 2021 18:07:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier [2021-09-28 08:51 -0400] wrote:

>>> Here I think we want something that's not buffer-local, so we'd need
>>> something else.  Not sure what's the best option.  Maybe
>>>
>>>     (add-hook 'shortdoc-foo-functions #'...)
>>>
>>> ?
>>
>> It faces the same problem: shortdoc somehow needs to know about 'foo'
>> a priori, for interactive group name completion.
>
> No, I meant for `foo` to be something like "extra" (i.e. a fixed name
> that I just didn't feel like choosing at the time I wrote the example).
> I.e. there'd be one shortdoc hook onto which packages would hang
> their functions that return extra entries.  So instead of iterating through
> the obarray you'd only iterate through the list of functions on
> that hook.

Ah, right, then that's indeed one of the two options I was originally
thinking of (the other being global symbol properties).

-- 
Basil



reply via email to

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