diff options
| author | Stefan Monnier | 2014-12-10 21:56:33 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-12-10 21:56:33 -0500 |
| commit | 964f16e1686899b7796045b10ffdb3c9b97a8153 (patch) | |
| tree | a9474baa3ab44c7e2bd41e4243f89981ec8cda21 | |
| parent | 7b244600872bda831a2d80c4797b8fb13b73197c (diff) | |
| download | emacs-964f16e1686899b7796045b10ffdb3c9b97a8153.tar.gz emacs-964f16e1686899b7796045b10ffdb3c9b97a8153.zip | |
* lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): Change default.
(eldoc-mode, eldoc-schedule-timer): Adjust to new default.
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eldoc.el | 16 |
2 files changed, 19 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e65835cfb93..2ed1f083976 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-12-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/eldoc.el (eldoc-documentation-function): Change default. | ||
| 4 | (eldoc-mode, eldoc-schedule-timer): Adjust to new default. | ||
| 5 | |||
| 1 | 2014-12-10 Artur Malabarba <bruce.connor.am@gmail.com> | 6 | 2014-12-10 Artur Malabarba <bruce.connor.am@gmail.com> |
| 2 | 7 | ||
| 3 | * let-alist.el: Add new package and macro. | 8 | * let-alist.el: Add new package and macro. |
| @@ -17,13 +22,12 @@ | |||
| 17 | 22 | ||
| 18 | 2014-12-10 Andreas Schwab <schwab@suse.de> | 23 | 2014-12-10 Andreas Schwab <schwab@suse.de> |
| 19 | 24 | ||
| 20 | * files.el (file-tree-walk): Use file-name-as-directory | 25 | * files.el (file-tree-walk): Use file-name-as-directory unconditionally. |
| 21 | unconditionally. | ||
| 22 | 26 | ||
| 23 | 2014-12-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 27 | 2014-12-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 24 | 28 | ||
| 25 | * files.el (directory-files-recursively): Use | 29 | * files.el (directory-files-recursively): |
| 26 | `file-name-all-completions' instead of `directory-files' for | 30 | Use `file-name-all-completions' instead of `directory-files' for |
| 27 | greater speed. | 31 | greater speed. |
| 28 | 32 | ||
| 29 | * net/shr.el (shr-tag-object): Don't bug out on text elements in | 33 | * net/shr.el (shr-tag-object): Don't bug out on text elements in |
| @@ -108,8 +112,8 @@ | |||
| 108 | 112 | ||
| 109 | 2014-12-09 Fabián Ezequiel Gallina <fgallina@gnu.org> | 113 | 2014-12-09 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 110 | 114 | ||
| 111 | * progmodes/python.el (inferior-python-mode): Set | 115 | * progmodes/python.el (inferior-python-mode): |
| 112 | `comint-prompt-read-only` to `t` only locally. | 116 | Set `comint-prompt-read-only` to `t` only locally. |
| 113 | 117 | ||
| 114 | 2014-12-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | 118 | 2014-12-08 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 115 | 119 | ||
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 6dddf5b9a40..2ee3d23714c 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el | |||
| @@ -79,8 +79,8 @@ This has two preferred values: `upcase' or `downcase'. | |||
| 79 | Actually, any name of a function which takes a string as an argument and | 79 | Actually, any name of a function which takes a string as an argument and |
| 80 | returns another string is acceptable. | 80 | returns another string is acceptable. |
| 81 | 81 | ||
| 82 | Note that if `eldoc-documentation-function' is non-nil, this variable | 82 | Note that this variable has no effect, unless |
| 83 | has no effect, unless the function handles it explicitly." | 83 | `eldoc-documentation-function' handles it explicitly." |
| 84 | :type '(radio (function-item upcase) | 84 | :type '(radio (function-item upcase) |
| 85 | (function-item downcase) | 85 | (function-item downcase) |
| 86 | function) | 86 | function) |
| @@ -102,8 +102,8 @@ If value is nil, messages are always truncated to fit in a single line of | |||
| 102 | display in the echo area. Function or variable symbol name may be | 102 | display in the echo area. Function or variable symbol name may be |
| 103 | truncated to make more of the arglist or documentation string visible. | 103 | truncated to make more of the arglist or documentation string visible. |
| 104 | 104 | ||
| 105 | Note that if `eldoc-documentation-function' is non-nil, this variable | 105 | Note that this variable has no effect, unless |
| 106 | has no effect, unless the function handles it explicitly." | 106 | `eldoc-documentation-function' handles it explicitly." |
| 107 | :type '(radio (const :tag "Always" t) | 107 | :type '(radio (const :tag "Always" t) |
| 108 | (const :tag "Never" nil) | 108 | (const :tag "Never" nil) |
| 109 | (const :tag "Yes, but truncate symbol names if it will\ | 109 | (const :tag "Yes, but truncate symbol names if it will\ |
| @@ -186,7 +186,7 @@ expression point is on." | |||
| 186 | :group 'eldoc :lighter eldoc-minor-mode-string | 186 | :group 'eldoc :lighter eldoc-minor-mode-string |
| 187 | (setq eldoc-last-message nil) | 187 | (setq eldoc-last-message nil) |
| 188 | (cond | 188 | (cond |
| 189 | ((not eldoc-documentation-function) | 189 | ((memq eldoc-documentation-function '(nil ignore)) |
| 190 | (message "There is no ElDoc support in this buffer") | 190 | (message "There is no ElDoc support in this buffer") |
| 191 | (setq eldoc-mode nil)) | 191 | (setq eldoc-mode nil)) |
| 192 | (eldoc-mode | 192 | (eldoc-mode |
| @@ -225,7 +225,9 @@ expression point is on." | |||
| 225 | eldoc-idle-delay t | 225 | eldoc-idle-delay t |
| 226 | (lambda () | 226 | (lambda () |
| 227 | (when (or eldoc-mode | 227 | (when (or eldoc-mode |
| 228 | (and global-eldoc-mode eldoc-documentation-function)) | 228 | (and global-eldoc-mode |
| 229 | (not (memq eldoc-documentation-function | ||
| 230 | '(nil ignore))))) | ||
| 229 | (eldoc-print-current-symbol-info)))))) | 231 | (eldoc-print-current-symbol-info)))))) |
| 230 | 232 | ||
| 231 | ;; If user has changed the idle delay, update the timer. | 233 | ;; If user has changed the idle delay, update the timer. |
| @@ -321,7 +323,7 @@ Otherwise work like `message'." | |||
| 321 | 323 | ||
| 322 | 324 | ||
| 323 | ;;;###autoload | 325 | ;;;###autoload |
| 324 | (defvar eldoc-documentation-function nil | 326 | (defvar eldoc-documentation-function #'ignore |
| 325 | "Function to call to return doc string. | 327 | "Function to call to return doc string. |
| 326 | The function of no args should return a one-line string for displaying | 328 | The function of no args should return a one-line string for displaying |
| 327 | doc about a function etc. appropriate to the context around point. | 329 | doc about a function etc. appropriate to the context around point. |