diff options
author | João Távora <joaotavora@gmail.com> | 2020-07-27 16:26:33 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2020-07-27 16:26:33 +0100 |
commit | 688c03f41278a33f580b56c2122d7f52c9a3ed67 (patch) | |
tree | f92c8397195c2923dd642ac25b2b2a82017334b2 /lisp/emacs-lisp/eldoc.el | |
parent | 4d195bb7d0beff4c5833401bd167851f8557d0ad (diff) | |
download | emacs-688c03f41278a33f580b56c2122d7f52c9a3ed67.tar.gz emacs-688c03f41278a33f580b56c2122d7f52c9a3ed67.tar.bz2 emacs-688c03f41278a33f580b56c2122d7f52c9a3ed67.zip |
Bring back ElDoc's eldoc-display-message-p, but obsolete it
Like others, this is an implementation detail that third parties could
be relying on. Better not remove it outright just now, since its
implementation is very simple anyway.
* lisp/emacs-lisp/eldoc.el (Version): Bump to 1.7.0
(eldoc-display-message-p): Bring back, but obsolete.
Diffstat (limited to 'lisp/emacs-lisp/eldoc.el')
-rw-r--r-- | lisp/emacs-lisp/eldoc.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index fcb104e5477..b30836cc0bd 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -5,7 +5,7 @@ ;; Author: Noah Friedman <friedman@splode.com> ;; Keywords: extensions ;; Created: 1995-10-06 -;; Version: 1.6.0 +;; Version: 1.7.0 ;; Package-Requires: ((emacs "26.3")) ;; This is a GNU ELPA :core package. Avoid functionality that is not @@ -346,6 +346,12 @@ Also store it in `eldoc-last-message' and return that value." "Compute information to store in `eldoc--last-request-state'." (list (current-buffer) (buffer-modified-tick) (point))) +(defun eldoc-display-message-p () + (eldoc--request-docs-p (eldoc--request-state))) +(make-obsolete 'eldoc-display-message-p + "Use `eldoc-documentation-functions' instead." + "eldoc-1.6.0") + (defun eldoc--request-docs-p (request-state) "Return non-nil when it is appropriate to request docs. REQUEST-STATE is a candidate for `eldoc--last-request-state'" |