diff options
| author | Lars Ingebrigtsen | 2016-05-01 01:08:23 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-05-01 01:08:23 +0200 |
| commit | 25e95b5dd8cd92e03788e589bf99a4b399f03114 (patch) | |
| tree | 952065e0e3deb8c4f81cccef7209390e7a3e483a | |
| parent | d0b0cd667129c3ea8ea834f1a28a994453144cb2 (diff) | |
| download | emacs-25e95b5dd8cd92e03788e589bf99a4b399f03114.tar.gz emacs-25e95b5dd8cd92e03788e589bf99a4b399f03114.zip | |
global-eldoc-mode doc fix
* lisp/emacs-lisp/eldoc.el (global-eldoc-mode): Be more
specific about what "applicable" means (bug#23071).
| -rw-r--r-- | lisp/emacs-lisp/eldoc.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index bc5a78bd086..6c2f869f260 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el | |||
| @@ -204,8 +204,16 @@ expression point is on." | |||
| 204 | 204 | ||
| 205 | ;;;###autoload | 205 | ;;;###autoload |
| 206 | (define-minor-mode global-eldoc-mode | 206 | (define-minor-mode global-eldoc-mode |
| 207 | "Enable `eldoc-mode' in all buffers where it's applicable." | 207 | "Toggle Global Eldoc mode on or off. |
| 208 | :group 'eldoc :global t | 208 | With a prefix argument ARG, enable Global Eldoc mode if ARG is |
| 209 | positive, and disable it otherwise. If called from Lisp, enable | ||
| 210 | the mode if ARG is omitted or nil, and toggle it if ARG is ‘toggle’. | ||
| 211 | |||
| 212 | If Global Eldoc mode is on, `eldoc-mode' will be enabled in all | ||
| 213 | buffers where it's applicable. These are buffers that have modes | ||
| 214 | that have enabled eldoc support. See `eldoc-documentation-function'." | ||
| 215 | :group 'eldoc | ||
| 216 | :global t | ||
| 209 | :initialize 'custom-initialize-delay | 217 | :initialize 'custom-initialize-delay |
| 210 | :init-value t | 218 | :init-value t |
| 211 | (setq eldoc-last-message nil) | 219 | (setq eldoc-last-message nil) |