diff options
| author | Glenn Morris | 2009-01-16 03:24:54 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-01-16 03:24:54 +0000 |
| commit | 133ea5b2b2f5ffd21ee9aa218fcd6ac5ff315a81 (patch) | |
| tree | 86ba68f207e9b18252944682ea7141742b2631e6 /lisp | |
| parent | dbc76957a9d78257d0661d36adef4afdb471f12b (diff) | |
| download | emacs-133ea5b2b2f5ffd21ee9aa218fcd6ac5ff315a81.tar.gz emacs-133ea5b2b2f5ffd21ee9aa218fcd6ac5ff315a81.zip | |
Remove leading `*' from defcustoms.
(eldoc-argument-case, eldoc-echo-area-use-multiline-p)
(eldoc-highlight-function-argument): Doc fix - mention effect of
eldoc-documentation-function.
(eldoc-message-commands-table-size, eldoc-message-commands)
(eldoc-current-idle-delay, eldoc-get-fnsym-args-string): Doc fix.
(eldoc-documentation-function): Mention effect on user options.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eldoc.el | 34 |
2 files changed, 35 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index da963a00bae..6409eac3242 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2009-01-16 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/eldoc.el: Remove leading `*' from defcustoms. | ||
| 4 | (eldoc-argument-case, eldoc-echo-area-use-multiline-p) | ||
| 5 | (eldoc-highlight-function-argument): Doc fix - mention effect of | ||
| 6 | eldoc-documentation-function. | ||
| 7 | (eldoc-message-commands-table-size, eldoc-message-commands) | ||
| 8 | (eldoc-current-idle-delay, eldoc-get-fnsym-args-string): Doc fix. | ||
| 9 | (eldoc-documentation-function): Mention effect on user options. | ||
| 10 | |||
| 11 | * emacs-lisp/copyright.el (copyright-update): Doc fix. | ||
| 12 | |||
| 1 | 2009-01-16 Kevin Ryde <user42@zip.com.au> | 13 | 2009-01-16 Kevin Ryde <user42@zip.com.au> |
| 2 | 14 | ||
| 3 | * tar-mode.el (tar-rename-entry): Only test the magic string, without | 15 | * tar-mode.el (tar-rename-entry): Only test the magic string, without |
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 80d326705dd..38318826c22 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el | |||
| @@ -55,7 +55,7 @@ | |||
| 55 | :group 'extensions) | 55 | :group 'extensions) |
| 56 | 56 | ||
| 57 | (defcustom eldoc-idle-delay 0.50 | 57 | (defcustom eldoc-idle-delay 0.50 |
| 58 | "*Number of seconds of idle time to wait before printing. | 58 | "Number of seconds of idle time to wait before printing. |
| 59 | If user input arrives before this interval of time has elapsed after the | 59 | If user input arrives before this interval of time has elapsed after the |
| 60 | last input, no documentation will be printed. | 60 | last input, no documentation will be printed. |
| 61 | 61 | ||
| @@ -65,7 +65,7 @@ If this variable is set to 0, no idle time is required." | |||
| 65 | 65 | ||
| 66 | ;;;###autoload | 66 | ;;;###autoload |
| 67 | (defcustom eldoc-minor-mode-string " ElDoc" | 67 | (defcustom eldoc-minor-mode-string " ElDoc" |
| 68 | "*String to display in mode line when Eldoc Mode is enabled; nil for none." | 68 | "String to display in mode line when Eldoc Mode is enabled; nil for none." |
| 69 | :type '(choice string (const :tag "None" nil)) | 69 | :type '(choice string (const :tag "None" nil)) |
| 70 | :group 'eldoc) | 70 | :group 'eldoc) |
| 71 | 71 | ||
| @@ -73,14 +73,17 @@ If this variable is set to 0, no idle time is required." | |||
| 73 | "Case to display argument names of functions, as a symbol. | 73 | "Case to display argument names of functions, as a symbol. |
| 74 | This has two preferred values: `upcase' or `downcase'. | 74 | This has two preferred values: `upcase' or `downcase'. |
| 75 | Actually, any name of a function which takes a string as an argument and | 75 | Actually, any name of a function which takes a string as an argument and |
| 76 | returns another string is acceptable." | 76 | returns another string is acceptable. |
| 77 | |||
| 78 | Note that if `eldoc-documentation-function' is non-nil, this variable | ||
| 79 | has no effect, unless the function handles it explicitly." | ||
| 77 | :type '(radio (function-item upcase) | 80 | :type '(radio (function-item upcase) |
| 78 | (function-item downcase) | 81 | (function-item downcase) |
| 79 | function) | 82 | function) |
| 80 | :group 'eldoc) | 83 | :group 'eldoc) |
| 81 | 84 | ||
| 82 | (defcustom eldoc-echo-area-use-multiline-p 'truncate-sym-name-if-fit | 85 | (defcustom eldoc-echo-area-use-multiline-p 'truncate-sym-name-if-fit |
| 83 | "*Allow long eldoc messages to resize echo area display. | 86 | "Allow long ElDoc messages to resize echo area display. |
| 84 | If value is t, never attempt to truncate messages; complete symbol name | 87 | If value is t, never attempt to truncate messages; complete symbol name |
| 85 | and function arglist or 1-line variable documentation will be displayed | 88 | and function arglist or 1-line variable documentation will be displayed |
| 86 | even if echo area must be resized to fit. | 89 | even if echo area must be resized to fit. |
| @@ -92,7 +95,10 @@ former case. | |||
| 92 | 95 | ||
| 93 | If value is nil, messages are always truncated to fit in a single line of | 96 | If value is nil, messages are always truncated to fit in a single line of |
| 94 | display in the echo area. Function or variable symbol name may be | 97 | display in the echo area. Function or variable symbol name may be |
| 95 | truncated to make more of the arglist or documentation string visible." | 98 | truncated to make more of the arglist or documentation string visible. |
| 99 | |||
| 100 | Note that if `eldoc-documentation-function' is non-nil, this variable | ||
| 101 | has no effect, unless the function handles it explicitly." | ||
| 96 | :type '(radio (const :tag "Always" t) | 102 | :type '(radio (const :tag "Always" t) |
| 97 | (const :tag "Never" nil) | 103 | (const :tag "Never" nil) |
| 98 | (const :tag "Yes, but truncate symbol names if it will\ | 104 | (const :tag "Yes, but truncate symbol names if it will\ |
| @@ -101,14 +107,15 @@ truncated to make more of the arglist or documentation string visible." | |||
| 101 | 107 | ||
| 102 | (defface eldoc-highlight-function-argument | 108 | (defface eldoc-highlight-function-argument |
| 103 | '((t (:inherit bold))) | 109 | '((t (:inherit bold))) |
| 104 | "Face used for the argument at point in a function's argument list." | 110 | "Face used for the argument at point in a function's argument list. |
| 111 | Note that if `eldoc-documentation-function' is non-nil, this face | ||
| 112 | has no effect, unless the function handles it explicitly." | ||
| 105 | :group 'eldoc) | 113 | :group 'eldoc) |
| 106 | 114 | ||
| 107 | ;;; No user options below here. | 115 | ;;; No user options below here. |
| 108 | 116 | ||
| 109 | (defvar eldoc-message-commands-table-size 31 | 117 | (defvar eldoc-message-commands-table-size 31 |
| 110 | "This is used by `eldoc-add-command' to initialize `eldoc-message-commands' | 118 | "Used by `eldoc-add-command' to initialize `eldoc-message-commands' obarray. |
| 111 | as an obarray. | ||
| 112 | It should probably never be necessary to do so, but if you | 119 | It should probably never be necessary to do so, but if you |
| 113 | choose to increase the number of buckets, you must do so before loading | 120 | choose to increase the number of buckets, you must do so before loading |
| 114 | this file since the obarray is initialized at load time. | 121 | this file since the obarray is initialized at load time. |
| @@ -117,7 +124,7 @@ Remember to keep it a prime number to improve hash performance.") | |||
| 117 | (defconst eldoc-message-commands | 124 | (defconst eldoc-message-commands |
| 118 | (make-vector eldoc-message-commands-table-size 0) | 125 | (make-vector eldoc-message-commands-table-size 0) |
| 119 | "Commands after which it is appropriate to print in the echo area. | 126 | "Commands after which it is appropriate to print in the echo area. |
| 120 | Eldoc does not try to print function arglists, etc. after just any command, | 127 | Eldoc does not try to print function arglists, etc., after just any command, |
| 121 | because some commands print their own messages in the echo area and these | 128 | because some commands print their own messages in the echo area and these |
| 122 | functions would instantly overwrite them. But `self-insert-command' as well | 129 | functions would instantly overwrite them. But `self-insert-command' as well |
| 123 | as most motion commands are good candidates. | 130 | as most motion commands are good candidates. |
| @@ -132,7 +139,7 @@ directly. Instead, use `eldoc-add-command' and `eldoc-remove-command'.") | |||
| 132 | 2 - 'function if function args, 'variable if variable documentation.") | 139 | 2 - 'function if function args, 'variable if variable documentation.") |
| 133 | (defvar eldoc-last-message nil) | 140 | (defvar eldoc-last-message nil) |
| 134 | 141 | ||
| 135 | (defvar eldoc-timer nil "eldoc's timer object.") | 142 | (defvar eldoc-timer nil "ElDoc's timer object.") |
| 136 | 143 | ||
| 137 | (defvar eldoc-current-idle-delay eldoc-idle-delay | 144 | (defvar eldoc-current-idle-delay eldoc-idle-delay |
| 138 | "Idle time delay currently in use by timer. | 145 | "Idle time delay currently in use by timer. |
| @@ -241,6 +248,11 @@ It should return nil if there's no doc appropriate for the context. | |||
| 241 | Typically doc is returned if point is on a function-like name or in its | 248 | Typically doc is returned if point is on a function-like name or in its |
| 242 | arg list. | 249 | arg list. |
| 243 | 250 | ||
| 251 | The result is used as is, so the function must explicitly handle | ||
| 252 | the variables `eldoc-argument-case' and `eldoc-echo-area-use-multiline-p', | ||
| 253 | and the face `eldoc-highlight-function-argument', if they are to have any | ||
| 254 | effect. | ||
| 255 | |||
| 244 | This variable is expected to be made buffer-local by modes (other than | 256 | This variable is expected to be made buffer-local by modes (other than |
| 245 | Emacs Lisp mode) that support Eldoc.") | 257 | Emacs Lisp mode) that support Eldoc.") |
| 246 | 258 | ||
| @@ -275,7 +287,7 @@ or elsewhere, return a 1-line docstring. Calls the functions | |||
| 275 | `eldoc-highlight-function-argument' to format the result. The | 287 | `eldoc-highlight-function-argument' to format the result. The |
| 276 | former calls `eldoc-argument-case'; the latter gives the | 288 | former calls `eldoc-argument-case'; the latter gives the |
| 277 | function name `font-lock-function-name-face', and optionally | 289 | function name `font-lock-function-name-face', and optionally |
| 278 | highlights argument number INDEX. " | 290 | highlights argument number INDEX." |
| 279 | (let (args doc) | 291 | (let (args doc) |
| 280 | (cond ((not (and sym (symbolp sym) (fboundp sym)))) | 292 | (cond ((not (and sym (symbolp sym) (fboundp sym)))) |
| 281 | ((and (eq sym (aref eldoc-last-data 0)) | 293 | ((and (eq sym (aref eldoc-last-data 0)) |