[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] org-eldoc: Use eldoc-documentation-functions when available
From: |
Štěpán Němec |
Subject: |
[PATCH] org-eldoc: Use eldoc-documentation-functions when available |
Date: |
Wed, 4 Mar 2020 08:24:13 +0100 |
This reflects recent changes in GNU Emacs master branch:
2020-02-25T17:53:04-05:00!address@hidden
c0fcbd2c11 (Expose ElDoc functions in a hook (Bug#28257))
* lisp/org-eldoc.el (org-eldoc-load):
Use 'eldoc-documentation-functions' when available.
---
contrib/lisp/org-eldoc.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/contrib/lisp/org-eldoc.el b/contrib/lisp/org-eldoc.el
index b4fc0c866..72b10a1fb 100644
--- a/contrib/lisp/org-eldoc.el
+++ b/contrib/lisp/org-eldoc.el
@@ -161,7 +161,11 @@ (defun org-eldoc-documentation-function ()
(defun org-eldoc-load ()
"Set up org-eldoc documentation function."
(interactive)
- (setq-local eldoc-documentation-function #'org-eldoc-documentation-function))
+ (if (boundp 'eldoc-documentation-functions)
+ (add-hook 'eldoc-documentation-functions
+ #'org-eldoc-documentation-function nil t)
+ (setq-local eldoc-documentation-function
+ #'org-eldoc-documentation-function)))
;;;###autoload
(add-hook 'org-mode-hook #'org-eldoc-load)
--
2.25.1
- [PATCH] org-eldoc: Use eldoc-documentation-functions when available,
Štěpán Němec <=