diff options
| author | João Távora | 2020-06-15 13:55:37 +0100 |
|---|---|---|
| committer | João Távora | 2020-07-08 11:25:33 +0100 |
| commit | 22cae4f509a950232ea2507ea549159f4b417331 (patch) | |
| tree | 0438b4550a6c0387b3fb8ef61450eec4fd84d328 | |
| parent | a7a53f0d79e0012c909e87911c4f85ad12bb78b4 (diff) | |
| download | emacs-22cae4f509a950232ea2507ea549159f4b417331.tar.gz emacs-22cae4f509a950232ea2507ea549159f4b417331.zip | |
New M-x eldoc for on-demand and interactive documentation requests
The function eldoc is just an alias for
eldoc-print-current-symbol-info, which is made interactive.
* lisp/emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Now an
interactive function.
(eldoc): Alias to eldoc-print-current-symbol-info.
| -rw-r--r-- | lisp/emacs-lisp/eldoc.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index bcf3a84d319..7a705001833 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el | |||
| @@ -595,8 +595,11 @@ documentation themselves." | |||
| 595 | (defvar eldoc--enthusiasm-curbing-timer nil | 595 | (defvar eldoc--enthusiasm-curbing-timer nil |
| 596 | "Timer used by `eldoc-documentation-enthusiast' to avoid blinking.") | 596 | "Timer used by `eldoc-documentation-enthusiast' to avoid blinking.") |
| 597 | 597 | ||
| 598 | (defalias 'eldoc #'eldoc-print-current-symbol-info) | ||
| 599 | |||
| 598 | (defun eldoc-print-current-symbol-info () | 600 | (defun eldoc-print-current-symbol-info () |
| 599 | "Document thing at point." | 601 | "Document thing at point." |
| 602 | (interactive) | ||
| 600 | (if (not (eldoc-display-message-p)) | 603 | (if (not (eldoc-display-message-p)) |
| 601 | ;; Erase the last message if we won't display a new one. | 604 | ;; Erase the last message if we won't display a new one. |
| 602 | (when eldoc-last-message | 605 | (when eldoc-last-message |