eldoc.el 21 KB

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