diff options
| author | João Távora | 2020-08-29 14:28:54 +0100 |
|---|---|---|
| committer | João Távora | 2020-08-29 14:29:22 +0100 |
| commit | c7e297e90669dfa7f77eb4eb2b5c846f90fa0b23 (patch) | |
| tree | 3e199ec8f220d9c67e561d5c13227899e2c2fcb6 | |
| parent | f8484f668340a753936a517e59d2307b1abd375a (diff) | |
| download | emacs-c7e297e90669dfa7f77eb4eb2b5c846f90fa0b23.tar.gz emacs-c7e297e90669dfa7f77eb4eb2b5c846f90fa0b23.zip | |
Prevent ElDoc blinking when eldoc-documentation-enthusiast is used
This eldoc-documentation-strategy function didn't always obey protocol
since it returned nil sometimes, which the eldoc engine took it as a
hint for the "old" protocol to clear the echo area.
* lisp/emacs-lisp/eldoc.el (eldoc-documentation-enthusiast):
Return t.
(Version): Bump to 1.9.0
| -rw-r--r-- | lisp/emacs-lisp/eldoc.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 4825b5c5e6c..6bb732ef858 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Noah Friedman <friedman@splode.com> | 5 | ;; Author: Noah Friedman <friedman@splode.com> |
| 6 | ;; Keywords: extensions | 6 | ;; Keywords: extensions |
| 7 | ;; Created: 1995-10-06 | 7 | ;; Created: 1995-10-06 |
| 8 | ;; Version: 1.8.0 | 8 | ;; Version: 1.9.0 |
| 9 | ;; Package-Requires: ((emacs "26.3")) | 9 | ;; Package-Requires: ((emacs "26.3")) |
| 10 | 10 | ||
| 11 | ;; This is a GNU ELPA :core package. Avoid functionality that is not | 11 | ;; This is a GNU ELPA :core package. Avoid functionality that is not |
| @@ -573,7 +573,8 @@ Meant as a value for `eldoc-documentation-strategy'." | |||
| 573 | (let* ((callback (eldoc--make-callback :enthusiast)) | 573 | (let* ((callback (eldoc--make-callback :enthusiast)) |
| 574 | (str (funcall f callback))) | 574 | (str (funcall f callback))) |
| 575 | (if (stringp str) (funcall callback str)) | 575 | (if (stringp str) (funcall callback str)) |
| 576 | nil)))) | 576 | nil))) |
| 577 | t) | ||
| 577 | 578 | ||
| 578 | ;; JT@2020-07-10: ElDoc is pre-loaded, so in Emacs < 28 we can't | 579 | ;; JT@2020-07-10: ElDoc is pre-loaded, so in Emacs < 28 we can't |
| 579 | ;; make the "old" `eldoc-documentation-function' point to the new | 580 | ;; make the "old" `eldoc-documentation-function' point to the new |