]> git.eshelyaron.com Git - emacs.git/commit
Fix Eldoc problem when loading on Emacs 26.3
authorJoão Távora <joaotavora@gmail.com>
Fri, 10 Jul 2020 00:47:10 +0000 (01:47 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 10 Jul 2020 00:47:33 +0000 (01:47 +0100)
commit9ade7ea7b77ec40c16deb4dff139ce7127a703e2
treea5932af29cbd9fcdb7e3d95d2c0909211324579a
parentc86f3fe0d023cdd25edbbce91c5b32654f2b734e
Fix Eldoc problem when loading on Emacs 26.3

When defining the obsolete variable alias for old
eldoc-documentation-function (which now points to the newer
eldoc-documentation-strategy), one gets the error "don't know how to
make a localized vareiable an alias".  I'm not sure, but I suspect
this is because Eldoc is preloaded in Emacs 26.3 and the
eldoc-documentation-function variable is already set locally by some
Elisp buffer.

Uninterning the symbol shortly before defining the alias seems to fix
it.

* lisp/emacs-lisp/eldoc.el (eldoc-documentation-function):
Unintern on load.
(Version): Bump to 1.3.0
lisp/emacs-lisp/eldoc.el