mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:00:49 +00:00
org-eldoc: Fix compatibility with eldoc 1.11 and Emacs 27
* contrib/lisp/org-eldoc.el (org-eldoc-documentation-function): Check before invoking elisp eldoc functions from Emacs 28. The previous check assumed that the presence of eldoc 1.11 bindings implied elisp-mode bindings that come with Emacs>=28, but eldoc 1.11 is available on GNU Elpa so the assumption doesn't always hold. TINYCHANGE
This commit is contained in:
parent
f12ca1a562
commit
7e2eba8cc5
|
@ -144,7 +144,9 @@
|
|||
(cond ((or
|
||||
(string= lang "emacs-lisp")
|
||||
(string= lang "elisp"))
|
||||
(cond ((boundp 'eldoc-documentation-functions) ; Emacs>=28
|
||||
(cond ((and (boundp 'eldoc-documentation-functions) ; Emacs>=28
|
||||
(fboundp 'elisp-eldoc-var-docstring)
|
||||
(fboundp 'elisp-eldoc-funcall))
|
||||
(let ((eldoc-documentation-functions
|
||||
'(elisp-eldoc-var-docstring elisp-eldoc-funcall)))
|
||||
(eldoc-print-current-symbol-info)))
|
||||
|
|
Loading…
Reference in a new issue