]> git.eshelyaron.com Git - emacs.git/commit
Sort out ElDoc backward compatibility of eldoc-documentation-function
authorJoão Távora <joaotavora@gmail.com>
Fri, 10 Jul 2020 19:49:54 +0000 (20:49 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 12 Jul 2020 13:24:05 +0000 (14:24 +0100)
commit45d7db6d22e7caada63635aa3e627aad80b0d1e9
treeb5378d458f3b9269912d22409cb89247cabe5a65
parent7ee32966a951b2e07daf219da0f6f1eabf638a8a
Sort out ElDoc backward compatibility of eldoc-documentation-function

As explained previously, we can't simply make
eldoc-documentation-function an variable alias for
eldoc-documentation-strategy, because ElDoc is pre-loaded in Emacs <
28, where it holds at least one buffer-local binding.  So if eldoc.el
is loaded in those versions, we do the variable alias binding in
reverse.  We do this using a macro
eldoc--documentation-strategy-defcustom to at load time in which
direction to make the variable alias.

* lisp/emacs-lisp/eldoc.el
(eldoc--documentation-strategy-defcustom): Helper macro.
(eldoc-documentation-strategy, eldoc-documentation-function): Use it.
(Version): Bump to 1.5.0
lisp/emacs-lisp/eldoc.el