]> code.delx.au - gnu-emacs/blob - lisp/emacs-lisp/eldoc.el
Replace refs to obsolete alias `turn-on-eldoc-mode' with `eldoc-mode'
[gnu-emacs] / lisp / emacs-lisp / eldoc.el
1 ;;; eldoc.el --- show function arglist or variable docstring in echo area -*- lexical-binding: t; -*-
2
3 ;; Copyright (C) 1996-2014 Free Software Foundation, Inc.
4
5 ;; Author: Noah Friedman <friedman@splode.com>
6 ;; Maintainer: friedman@splode.com
7 ;; Keywords: extensions
8 ;; Created: 1995-10-06
9
10 ;; This file is part of GNU Emacs.
11
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
16
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24
25 ;;; Commentary:
26
27 ;; This program was inspired by the behavior of the "mouse documentation
28 ;; window" on many Lisp Machine systems; as you type a function's symbol
29 ;; name as part of a sexp, it will print the argument list for that
30 ;; function. Behavior is not identical; for example, you need not actually
31 ;; type the function name, you need only move point around in a sexp that
32 ;; calls it. Also, if point is over a documented variable, it will print
33 ;; the one-line documentation for that variable instead, to remind you of
34 ;; that variable's meaning.
35
36 ;; One useful way to enable this minor mode is to put the following in your
37 ;; .emacs:
38 ;;
39 ;; (add-hook 'emacs-lisp-mode-hook 'eldoc-mode)
40 ;; (add-hook 'lisp-interaction-mode-hook 'eldoc-mode)
41 ;; (add-hook 'ielm-mode-hook 'eldoc-mode)
42
43 ;; Major modes for other languages may use ElDoc by defining an
44 ;; appropriate function as the buffer-local value of
45 ;; `eldoc-documentation-function'.
46
47 ;;; Code:
48
49 (require 'help-fns) ;For fundoc-usage handling functions.
50
51 (defgroup eldoc nil
52 "Show function arglist or variable docstring in echo area."
53 :group 'lisp
54 :group 'extensions)
55
56 (defcustom eldoc-idle-delay 0.50
57 "Number of seconds of idle time to wait before printing.
58 If user input arrives before this interval of time has elapsed after the
59 last input, no documentation will be printed.
60
61 If this variable is set to 0, no idle time is required."
62 :type 'number
63 :group 'eldoc)
64
65 (defcustom eldoc-print-after-edit nil
66 "If non-nil eldoc info is only shown when editing.
67 Changing the value requires toggling `eldoc-mode'."
68 :type 'boolean
69 :group 'eldoc)
70
71 ;;;###autoload
72 (defcustom eldoc-minor-mode-string (purecopy " ElDoc")
73 "String to display in mode line when ElDoc Mode is enabled; nil for none."
74 :type '(choice string (const :tag "None" nil))
75 :group 'eldoc)
76
77 (defcustom eldoc-argument-case 'upcase
78 "Case to display argument names of functions, as a symbol.
79 This has two preferred values: `upcase' or `downcase'.
80 Actually, any name of a function which takes a string as an argument and
81 returns another string is acceptable.
82
83 Note that if `eldoc-documentation-function' is non-nil, this variable
84 has no effect, unless the function handles it explicitly."
85 :type '(radio (function-item upcase)
86 (function-item downcase)
87 function)
88 :group 'eldoc)
89
90 (defcustom eldoc-echo-area-use-multiline-p 'truncate-sym-name-if-fit
91 "Allow long ElDoc messages to resize echo area display.
92 If value is t, never attempt to truncate messages; complete symbol name
93 and function arglist or 1-line variable documentation will be displayed
94 even if echo area must be resized to fit.
95
96 If value is any non-nil value other than t, symbol name may be truncated
97 if it will enable the function arglist or documentation string to fit on a
98 single line without resizing window. Otherwise, behavior is just like
99 former case.
100
101 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
103 truncated to make more of the arglist or documentation string visible.
104
105 Note that if `eldoc-documentation-function' is non-nil, this variable
106 has no effect, unless the function handles it explicitly."
107 :type '(radio (const :tag "Always" t)
108 (const :tag "Never" nil)
109 (const :tag "Yes, but truncate symbol names if it will\
110 enable argument list to fit on one line" truncate-sym-name-if-fit))
111 :group 'eldoc)
112
113 (defface eldoc-highlight-function-argument
114 '((t (:inherit bold)))
115 "Face used for the argument at point in a function's argument list.
116 Note that if `eldoc-documentation-function' is non-nil, this face
117 has no effect, unless the function handles it explicitly."
118 :group 'eldoc)
119
120 ;;; No user options below here.
121
122 (defvar eldoc-message-commands-table-size 31
123 "Used by `eldoc-add-command' to initialize `eldoc-message-commands' obarray.
124 It should probably never be necessary to do so, but if you
125 choose to increase the number of buckets, you must do so before loading
126 this file since the obarray is initialized at load time.
127 Remember to keep it a prime number to improve hash performance.")
128
129 (defconst eldoc-message-commands
130 (make-vector eldoc-message-commands-table-size 0)
131 "Commands after which it is appropriate to print in the echo area.
132 ElDoc does not try to print function arglists, etc., after just any command,
133 because some commands print their own messages in the echo area and these
134 functions would instantly overwrite them. But `self-insert-command' as well
135 as most motion commands are good candidates.
136 This variable contains an obarray of symbols; do not manipulate it
137 directly. Instead, use `eldoc-add-command' and `eldoc-remove-command'.")
138
139 ;; Not a constant.
140 (defconst eldoc-last-data (make-vector 3 nil)
141 "Bookkeeping; elements are as follows:
142 0 - contains the last symbol read from the buffer.
143 1 - contains the string last displayed in the echo area for variables,
144 or argument string for functions.
145 2 - 'function if function args, 'variable if variable documentation.")
146
147 (defvar eldoc-last-message nil)
148
149 (defvar eldoc-timer nil "ElDoc's timer object.")
150
151 (defvar eldoc-current-idle-delay eldoc-idle-delay
152 "Idle time delay currently in use by timer.
153 This is used to determine if `eldoc-idle-delay' is changed by the user.")
154
155 (defvar eldoc-message-function #'eldoc-minibuffer-message
156 "The function used by `eldoc-message' to display messages.
157 It should receive the same arguments as `message'.")
158
159 (defun eldoc-edit-message-commands ()
160 (let ((cmds (make-vector 31 0))
161 (re (regexp-opt '("delete" "insert" "edit" "electric" "newline"))))
162 (mapatoms (lambda (s)
163 (and (commandp s)
164 (string-match-p re (symbol-name s))
165 (intern (symbol-name s) cmds)))
166 obarray)
167 cmds))
168
169 \f
170 ;;;###autoload
171 (define-minor-mode eldoc-mode
172 "Toggle echo area display of Lisp objects at point (ElDoc mode).
173 With a prefix argument ARG, enable ElDoc mode if ARG is positive,
174 and disable it otherwise. If called from Lisp, enable ElDoc mode
175 if ARG is omitted or nil.
176
177 ElDoc mode is a buffer-local minor mode. When enabled, the echo
178 area displays information about a function or variable in the
179 text where point is. If point is on a documented variable, it
180 displays the first line of that variable's doc string. Otherwise
181 it displays the argument list of the function called in the
182 expression point is on."
183 :group 'eldoc :lighter eldoc-minor-mode-string
184 (setq eldoc-last-message nil)
185 (if eldoc-mode
186 (progn
187 (when eldoc-print-after-edit
188 (setq-local eldoc-message-commands (eldoc-edit-message-commands)))
189 (add-hook 'post-command-hook 'eldoc-schedule-timer nil t)
190 (add-hook 'pre-command-hook 'eldoc-pre-command-refresh-echo-area nil t))
191 (kill-local-variable 'eldoc-message-commands)
192 (remove-hook 'post-command-hook 'eldoc-schedule-timer t)
193 (remove-hook 'pre-command-hook 'eldoc-pre-command-refresh-echo-area t)))
194
195 ;;;###autoload
196 (define-obsolete-function-alias 'turn-on-eldoc-mode 'eldoc-mode "24.4")
197
198 \f
199 (defun eldoc-schedule-timer ()
200 (or (and eldoc-timer
201 (memq eldoc-timer timer-idle-list))
202 (setq eldoc-timer
203 (run-with-idle-timer
204 eldoc-idle-delay t
205 (lambda () (and eldoc-mode (eldoc-print-current-symbol-info))))))
206
207 ;; If user has changed the idle delay, update the timer.
208 (cond ((not (= eldoc-idle-delay eldoc-current-idle-delay))
209 (setq eldoc-current-idle-delay eldoc-idle-delay)
210 (timer-set-idle-time eldoc-timer eldoc-idle-delay t))))
211
212 (defvar eldoc-mode-line-string nil)
213 (put 'eldoc-mode-line-string 'risky-local-variable t)
214
215 (defun eldoc-minibuffer-message (format-string &rest args)
216 "Display messages in the mode-line when in the minibuffer.
217 Otherwise work like `message'."
218 (if (minibufferp)
219 (progn
220 (add-hook 'minibuffer-exit-hook
221 (lambda () (setq eldoc-mode-line-string nil))
222 nil t)
223 (with-current-buffer
224 (window-buffer
225 (or (window-in-direction 'above (minibuffer-window))
226 (minibuffer-selected-window)
227 (get-largest-window)))
228 (unless (and (listp mode-line-format)
229 (assq 'eldoc-mode-line-string mode-line-format))
230 (setq mode-line-format
231 (list "" '(eldoc-mode-line-string
232 (" " eldoc-mode-line-string " "))
233 mode-line-format)))
234 (setq eldoc-mode-line-string
235 (when (stringp format-string)
236 (apply 'format format-string args)))
237 (force-mode-line-update)))
238 (apply 'message format-string args)))
239
240 (defun eldoc-message (&rest args)
241 (let ((omessage eldoc-last-message))
242 (setq eldoc-last-message
243 (cond ((eq (car args) eldoc-last-message) eldoc-last-message)
244 ((null (car args)) nil)
245 ;; If only one arg, no formatting to do, so put it in
246 ;; eldoc-last-message so eq test above might succeed on
247 ;; subsequent calls.
248 ((null (cdr args)) (car args))
249 (t (apply 'format args))))
250 ;; In emacs 19.29 and later, and XEmacs 19.13 and later, all messages
251 ;; are recorded in a log. Do not put eldoc messages in that log since
252 ;; they are Legion.
253 ;; Emacs way of preventing log messages.
254 (let ((message-log-max nil))
255 (cond (eldoc-last-message
256 (funcall eldoc-message-function "%s" eldoc-last-message))
257 (omessage (funcall eldoc-message-function nil)))))
258 eldoc-last-message)
259
260 (defun eldoc--message-command-p (command)
261 (and (symbolp command)
262 (intern-soft (symbol-name command) eldoc-message-commands)))
263
264 ;; This function goes on pre-command-hook for XEmacs or when using idle
265 ;; timers in Emacs. Motion commands clear the echo area for some reason,
266 ;; which make eldoc messages flicker or disappear just before motion
267 ;; begins. This function reprints the last eldoc message immediately
268 ;; before the next command executes, which does away with the flicker.
269 ;; This doesn't seem to be required for Emacs 19.28 and earlier.
270 (defun eldoc-pre-command-refresh-echo-area ()
271 (and eldoc-last-message
272 (not (minibufferp)) ;We don't use the echo area when in minibuffer.
273 (if (and (eldoc-display-message-no-interference-p)
274 (eldoc--message-command-p this-command))
275 (eldoc-message eldoc-last-message)
276 ;; No need to call eldoc-message since the echo area will be cleared
277 ;; for us, but do note that the last-message will be gone.
278 (setq eldoc-last-message nil))))
279
280 ;; Decide whether now is a good time to display a message.
281 (defun eldoc-display-message-p ()
282 (and (eldoc-display-message-no-interference-p)
283 ;; If this-command is non-nil while running via an idle
284 ;; timer, we're still in the middle of executing a command,
285 ;; e.g. a query-replace where it would be annoying to
286 ;; overwrite the echo area.
287 (not this-command)
288 (eldoc--message-command-p last-command)))
289
290
291 ;; Check various conditions about the current environment that might make
292 ;; it undesirable to print eldoc messages right this instant.
293 (defun eldoc-display-message-no-interference-p ()
294 (not (or executing-kbd-macro (bound-and-true-p edebug-active))))
295
296 \f
297 ;;;###autoload
298 (defvar eldoc-documentation-function nil
299 "If non-nil, function to call to return doc string.
300 The function of no args should return a one-line string for displaying
301 doc about a function etc. appropriate to the context around point.
302 It should return nil if there's no doc appropriate for the context.
303 Typically doc is returned if point is on a function-like name or in its
304 arg list.
305
306 The result is used as is, so the function must explicitly handle
307 the variables `eldoc-argument-case' and `eldoc-echo-area-use-multiline-p',
308 and the face `eldoc-highlight-function-argument', if they are to have any
309 effect.
310
311 This variable is expected to be made buffer-local by modes (other than
312 Emacs Lisp mode) that support ElDoc.")
313
314 (defun eldoc-print-current-symbol-info ()
315 ;; This is run from post-command-hook or some idle timer thing,
316 ;; so we need to be careful that errors aren't ignored.
317 (with-demoted-errors "eldoc error: %s"
318 (and (or (eldoc-display-message-p)
319 ;; Erase the last message if we won't display a new one.
320 (when eldoc-last-message
321 (eldoc-message nil)
322 nil))
323 (if eldoc-documentation-function
324 (eldoc-message (funcall eldoc-documentation-function))
325 (let* ((current-symbol (eldoc-current-symbol))
326 (current-fnsym (eldoc-fnsym-in-current-sexp))
327 (doc (cond
328 ((null current-fnsym)
329 nil)
330 ((eq current-symbol (car current-fnsym))
331 (or (apply 'eldoc-get-fnsym-args-string
332 current-fnsym)
333 (eldoc-get-var-docstring current-symbol)))
334 (t
335 (or (eldoc-get-var-docstring current-symbol)
336 (apply 'eldoc-get-fnsym-args-string
337 current-fnsym))))))
338 (eldoc-message doc))))))
339
340 (defun eldoc-get-fnsym-args-string (sym &optional index)
341 "Return a string containing the parameter list of the function SYM.
342 If SYM is a subr and no arglist is obtainable from the docstring
343 or elsewhere, return a 1-line docstring. Calls the functions
344 `eldoc-function-argstring-format' and
345 `eldoc-highlight-function-argument' to format the result. The
346 former calls `eldoc-argument-case'; the latter gives the
347 function name `font-lock-function-name-face', and optionally
348 highlights argument number INDEX."
349 (let (args doc advertised)
350 (cond ((not (and sym (symbolp sym) (fboundp sym))))
351 ((and (eq sym (aref eldoc-last-data 0))
352 (eq 'function (aref eldoc-last-data 2)))
353 (setq doc (aref eldoc-last-data 1)))
354 ((listp (setq advertised (gethash (indirect-function sym)
355 advertised-signature-table t)))
356 (setq args advertised))
357 ((setq doc (help-split-fundoc (documentation sym t) sym))
358 (setq args (car doc))
359 ;; Remove any enclosing (), since e-function-argstring adds them.
360 (string-match "\\`[^ )]* ?" args)
361 (setq args (substring args (match-end 0)))
362 (if (string-match-p ")\\'" args)
363 (setq args (substring args 0 -1))))
364 (t
365 (setq args (help-function-arglist sym))))
366 (if args
367 ;; Stringify, and store before highlighting, downcasing, etc.
368 ;; FIXME should truncate before storing.
369 (eldoc-last-data-store sym (setq args (eldoc-function-argstring args))
370 'function)
371 (setq args doc)) ; use stored value
372 ;; Change case, highlight, truncate.
373 (if args
374 (eldoc-highlight-function-argument
375 sym (eldoc-function-argstring-format args) index))))
376
377 (defun eldoc-highlight-function-argument (sym args index)
378 "Highlight argument INDEX in ARGS list for function SYM.
379 In the absence of INDEX, just call `eldoc-docstring-format-sym-doc'."
380 (let ((start nil)
381 (end 0)
382 (argument-face 'eldoc-highlight-function-argument))
383 ;; Find the current argument in the argument string. We need to
384 ;; handle `&rest' and informal `...' properly.
385 ;;
386 ;; FIXME: What to do with optional arguments, like in
387 ;; (defun NAME ARGLIST [DOCSTRING] BODY...) case?
388 ;; The problem is there is no robust way to determine if
389 ;; the current argument is indeed a docstring.
390 (while (and index (>= index 1))
391 (if (string-match "[^ ()]+" args end)
392 (progn
393 (setq start (match-beginning 0)
394 end (match-end 0))
395 (let ((argument (match-string 0 args)))
396 (cond ((string= argument "&rest")
397 ;; All the rest arguments are the same.
398 (setq index 1))
399 ((string= argument "&optional"))
400 ((string-match-p "\\.\\.\\.$" argument)
401 (setq index 0))
402 (t
403 (setq index (1- index))))))
404 (setq end (length args)
405 start (1- end)
406 argument-face 'font-lock-warning-face
407 index 0)))
408 (let ((doc args))
409 (when start
410 (setq doc (copy-sequence args))
411 (add-text-properties start end (list 'face argument-face) doc))
412 (setq doc (eldoc-docstring-format-sym-doc
413 sym doc (if (functionp sym) 'font-lock-function-name-face
414 'font-lock-keyword-face)))
415 doc)))
416
417 ;; Return a string containing a brief (one-line) documentation string for
418 ;; the variable.
419 (defun eldoc-get-var-docstring (sym)
420 (when sym
421 (cond ((and (eq sym (aref eldoc-last-data 0))
422 (eq 'variable (aref eldoc-last-data 2)))
423 (aref eldoc-last-data 1))
424 (t
425 (let ((doc (documentation-property sym 'variable-documentation t)))
426 (cond (doc
427 (setq doc (eldoc-docstring-format-sym-doc
428 sym (eldoc-docstring-first-line doc)
429 'font-lock-variable-name-face))
430 (eldoc-last-data-store sym doc 'variable)))
431 doc)))))
432
433 (defun eldoc-last-data-store (symbol doc type)
434 (aset eldoc-last-data 0 symbol)
435 (aset eldoc-last-data 1 doc)
436 (aset eldoc-last-data 2 type))
437
438 ;; Note that any leading `*' in the docstring (which indicates the variable
439 ;; is a user option) is removed.
440 (defun eldoc-docstring-first-line (doc)
441 (and (stringp doc)
442 (substitute-command-keys
443 (save-match-data
444 ;; Don't use "^" in the regexp below since it may match
445 ;; anywhere in the doc-string.
446 (let ((start (if (string-match "\\`\\*" doc) (match-end 0) 0)))
447 (cond ((string-match "\n" doc)
448 (substring doc start (match-beginning 0)))
449 ((zerop start) doc)
450 (t (substring doc start))))))))
451
452 ;; If the entire line cannot fit in the echo area, the symbol name may be
453 ;; truncated or eliminated entirely from the output to make room for the
454 ;; description.
455 (defun eldoc-docstring-format-sym-doc (sym doc face)
456 (save-match-data
457 (let* ((name (symbol-name sym))
458 (ea-multi eldoc-echo-area-use-multiline-p)
459 ;; Subtract 1 from window width since emacs will not write
460 ;; any chars to the last column, or in later versions, will
461 ;; cause a wraparound and resize of the echo area.
462 (ea-width (1- (window-width (minibuffer-window))))
463 (strip (- (+ (length name) (length ": ") (length doc)) ea-width)))
464 (cond ((or (<= strip 0)
465 (eq ea-multi t)
466 (and ea-multi (> (length doc) ea-width)))
467 (format "%s: %s" (propertize name 'face face) doc))
468 ((> (length doc) ea-width)
469 (substring (format "%s" doc) 0 ea-width))
470 ((>= strip (length name))
471 (format "%s" doc))
472 (t
473 ;; Show the end of the partial symbol name, rather
474 ;; than the beginning, since the former is more likely
475 ;; to be unique given package namespace conventions.
476 (setq name (substring name strip))
477 (format "%s: %s" (propertize name 'face face) doc))))))
478
479 \f
480 ;; Return a list of current function name and argument index.
481 (defun eldoc-fnsym-in-current-sexp ()
482 (save-excursion
483 (let ((argument-index (1- (eldoc-beginning-of-sexp))))
484 ;; If we are at the beginning of function name, this will be -1.
485 (when (< argument-index 0)
486 (setq argument-index 0))
487 ;; Don't do anything if current word is inside a string.
488 (if (= (or (char-after (1- (point))) 0) ?\")
489 nil
490 (list (eldoc-current-symbol) argument-index)))))
491
492 ;; Move to the beginning of current sexp. Return the number of nested
493 ;; sexp the point was over or after.
494 (defun eldoc-beginning-of-sexp ()
495 (let ((parse-sexp-ignore-comments t)
496 (num-skipped-sexps 0))
497 (condition-case _
498 (progn
499 ;; First account for the case the point is directly over a
500 ;; beginning of a nested sexp.
501 (condition-case _
502 (let ((p (point)))
503 (forward-sexp -1)
504 (forward-sexp 1)
505 (when (< (point) p)
506 (setq num-skipped-sexps 1)))
507 (error))
508 (while
509 (let ((p (point)))
510 (forward-sexp -1)
511 (when (< (point) p)
512 (setq num-skipped-sexps (1+ num-skipped-sexps))))))
513 (error))
514 num-skipped-sexps))
515
516 ;; returns nil unless current word is an interned symbol.
517 (defun eldoc-current-symbol ()
518 (let ((c (char-after (point))))
519 (and c
520 (memq (char-syntax c) '(?w ?_))
521 (intern-soft (current-word)))))
522
523 ;; Do indirect function resolution if possible.
524 (defun eldoc-symbol-function (fsym)
525 (let ((defn (symbol-function fsym)))
526 (and (symbolp defn)
527 (condition-case _
528 (setq defn (indirect-function fsym))
529 (error (setq defn nil))))
530 defn))
531
532 (defun eldoc-function-argstring (arglist)
533 "Return ARGLIST as a string enclosed by ().
534 ARGLIST is either a string, or a list of strings or symbols."
535 (cond ((stringp arglist))
536 ((not (listp arglist))
537 (setq arglist nil))
538 ((symbolp (car arglist))
539 (setq arglist
540 (mapconcat (lambda (s) (symbol-name s))
541 arglist " ")))
542 ((stringp (car arglist))
543 (setq arglist
544 (mapconcat (lambda (s) s)
545 arglist " "))))
546 (if arglist
547 (format "(%s)" arglist)))
548
549 (defun eldoc-function-argstring-format (argstring)
550 "Apply `eldoc-argument-case' to each word in ARGSTRING.
551 The words \"&rest\", \"&optional\" are returned unchanged."
552 (mapconcat (lambda (s)
553 (if (string-match-p "\\`(?&\\(?:optional\\|rest\\))?\\'" s)
554 s
555 (funcall eldoc-argument-case s)))
556 (split-string argstring) " "))
557
558 \f
559 ;; When point is in a sexp, the function args are not reprinted in the echo
560 ;; area after every possible interactive command because some of them print
561 ;; their own messages in the echo area; the eldoc functions would instantly
562 ;; overwrite them unless it is more restrained.
563 ;; These functions do display-command table management.
564
565 (defun eldoc-add-command (&rest cmds)
566 (dolist (name cmds)
567 (and (symbolp name)
568 (setq name (symbol-name name)))
569 (set (intern name eldoc-message-commands) t)))
570
571 (defun eldoc-add-command-completions (&rest names)
572 (dolist (name names)
573 (apply 'eldoc-add-command (all-completions name obarray 'commandp))))
574
575 (defun eldoc-remove-command (&rest cmds)
576 (dolist (name cmds)
577 (and (symbolp name)
578 (setq name (symbol-name name)))
579 (unintern name eldoc-message-commands)))
580
581 (defun eldoc-remove-command-completions (&rest names)
582 (dolist (name names)
583 (apply 'eldoc-remove-command
584 (all-completions name eldoc-message-commands))))
585
586 \f
587 ;; Prime the command list.
588 (eldoc-add-command-completions
589 "backward-" "beginning-of-" "delete-other-windows" "delete-window"
590 "down-list" "end-of-" "exchange-point-and-mark" "forward-" "goto-"
591 "handle-select-window" "indent-for-tab-command" "left-" "mark-page"
592 "mark-paragraph" "mouse-set-point" "move-" "move-beginning-of-"
593 "move-end-of-" "next-" "other-window" "pop-global-mark" "previous-"
594 "recenter" "right-" "scroll-" "self-insert-command" "split-window-"
595 "up-list")
596
597 (provide 'eldoc)
598
599 ;;; eldoc.el ends here