emacs-devel
[Top][All Lists]
Advanced

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

Re: master 9ade7ea: Fix Eldoc problem when loading on Emacs 26.3


From: Stefan Monnier
Subject: Re: master 9ade7ea: Fix Eldoc problem when loading on Emacs 26.3
Date: Fri, 10 Jul 2020 17:35:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> Maybe come up with a better idea, or maybe, like Stefan suggests, don't
>> make it an alias at all, just deprecate it and keep using it instead of
>> eldoc-documentation-strategy when we find it to be bound.
>
> That sort of works, but it forces extensions that do want to
> "Package-Require" eldoc to remember to unbind
> eldoc-documentation-function if they are loaded on older Emacs versions,
> which is undesirable.

Maybe use a rule like:

    (if (and (buffer-local-p 'eldoc-documentation-function)
             (not (buffer-local-p 'eldoc-documentation-functions)))
        <Use `eldoc-documentation-function`>
      <Use `eldoc-documentation-functions`>


-- Stefan




reply via email to

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