aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2009-01-16 03:24:54 +0000
committerGlenn Morris2009-01-16 03:24:54 +0000
commit133ea5b2b2f5ffd21ee9aa218fcd6ac5ff315a81 (patch)
tree86ba68f207e9b18252944682ea7141742b2631e6 /lisp
parentdbc76957a9d78257d0661d36adef4afdb471f12b (diff)
downloademacs-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/ChangeLog12
-rw-r--r--lisp/emacs-lisp/eldoc.el34
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 @@
12009-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
12009-01-16 Kevin Ryde <user42@zip.com.au> 132009-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.
59If user input arrives before this interval of time has elapsed after the 59If user input arrives before this interval of time has elapsed after the
60last input, no documentation will be printed. 60last 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.
74This has two preferred values: `upcase' or `downcase'. 74This has two preferred values: `upcase' or `downcase'.
75Actually, any name of a function which takes a string as an argument and 75Actually, any name of a function which takes a string as an argument and
76returns another string is acceptable." 76returns another string is acceptable.
77
78Note that if `eldoc-documentation-function' is non-nil, this variable
79has 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.
84If value is t, never attempt to truncate messages; complete symbol name 87If value is t, never attempt to truncate messages; complete symbol name
85and function arglist or 1-line variable documentation will be displayed 88and function arglist or 1-line variable documentation will be displayed
86even if echo area must be resized to fit. 89even if echo area must be resized to fit.
@@ -92,7 +95,10 @@ former case.
92 95
93If value is nil, messages are always truncated to fit in a single line of 96If value is nil, messages are always truncated to fit in a single line of
94display in the echo area. Function or variable symbol name may be 97display in the echo area. Function or variable symbol name may be
95truncated to make more of the arglist or documentation string visible." 98truncated to make more of the arglist or documentation string visible.
99
100Note that if `eldoc-documentation-function' is non-nil, this variable
101has 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.
111Note that if `eldoc-documentation-function' is non-nil, this face
112has 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.
111as an obarray.
112It should probably never be necessary to do so, but if you 119It should probably never be necessary to do so, but if you
113choose to increase the number of buckets, you must do so before loading 120choose to increase the number of buckets, you must do so before loading
114this file since the obarray is initialized at load time. 121this 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.
120Eldoc does not try to print function arglists, etc. after just any command, 127Eldoc does not try to print function arglists, etc., after just any command,
121because some commands print their own messages in the echo area and these 128because some commands print their own messages in the echo area and these
122functions would instantly overwrite them. But `self-insert-command' as well 129functions would instantly overwrite them. But `self-insert-command' as well
123as most motion commands are good candidates. 130as 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.
241Typically doc is returned if point is on a function-like name or in its 248Typically doc is returned if point is on a function-like name or in its
242arg list. 249arg list.
243 250
251The result is used as is, so the function must explicitly handle
252the variables `eldoc-argument-case' and `eldoc-echo-area-use-multiline-p',
253and the face `eldoc-highlight-function-argument', if they are to have any
254effect.
255
244This variable is expected to be made buffer-local by modes (other than 256This variable is expected to be made buffer-local by modes (other than
245Emacs Lisp mode) that support Eldoc.") 257Emacs 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
276former calls `eldoc-argument-case'; the latter gives the 288former calls `eldoc-argument-case'; the latter gives the
277function name `font-lock-function-name-face', and optionally 289function name `font-lock-function-name-face', and optionally
278highlights argument number INDEX. " 290highlights 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))