aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-14 07:33:28 +0000
committerRichard M. Stallman1997-04-14 07:33:28 +0000
commita326c090b534152d0da3fb82644fb104e1e593e8 (patch)
tree73b4c4d22c37f75d30868a2f65bb154aea59f1b6
parentb092a1345b850909a53f63373c4c1d18b641b243 (diff)
downloademacs-a326c090b534152d0da3fb82644fb104e1e593e8.tar.gz
emacs-a326c090b534152d0da3fb82644fb104e1e593e8.zip
Add defgroup; use defcustom for user vars.
-rw-r--r--lisp/emacs-lisp/eldoc.el30
1 files changed, 21 insertions, 9 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index c3c9431060a..00617d3c981 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -7,7 +7,7 @@
7;; Keywords: extensions 7;; Keywords: extensions
8;; Created: 1995-10-06 8;; Created: 1995-10-06
9 9
10;; $Id: eldoc.el,v 1.10 1997/02/19 10:24:26 friedman Exp $ 10;; $Id: eldoc.el,v 1.11 1997/03/27 10:44:56 friedman Exp rms $
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
13 13
@@ -54,8 +54,12 @@
54(or (featurep 'timer) 54(or (featurep 'timer)
55 (load "timer" t)) 55 (load "timer" t))
56 56
57(defgroup eldoc nil
58 "Show function arglist or variable docstring in echo area."
59 :group 'extensions)
60
57;;;###autoload 61;;;###autoload
58(defvar eldoc-mode nil 62(defcustom eldoc-mode nil
59 "*If non-nil, show the defined parameters for the elisp function near point. 63 "*If non-nil, show the defined parameters for the elisp function near point.
60 64
61For the emacs lisp function at the beginning of the sexp which point is 65For the emacs lisp function at the beginning of the sexp which point is
@@ -67,18 +71,24 @@ from the documentation string if possible.
67If point is over a documented variable, print that variable's docstring 71If point is over a documented variable, print that variable's docstring
68instead. 72instead.
69 73
70This variable is buffer-local.") 74This variable is buffer-local."
75 :type 'boolean
76 :group 'eldoc)
71(make-variable-buffer-local 'eldoc-mode) 77(make-variable-buffer-local 'eldoc-mode)
72 78
73(defvar eldoc-idle-delay 0.50 79(defcustom eldoc-idle-delay 0.50
74 "*Number of seconds of idle time to wait before printing. 80 "*Number of seconds of idle time to wait before printing.
75If user input arrives before this interval of time has elapsed after the 81If user input arrives before this interval of time has elapsed after the
76last input, no documentation will be printed. 82last input, no documentation will be printed.
77 83
78If this variable is set to 0, no idle time is required.") 84If this variable is set to 0, no idle time is required."
85 :type 'number
86 :group 'eldoc)
79 87
80(defvar eldoc-minor-mode-string " ElDoc" 88(defcustom eldoc-minor-mode-string " ElDoc"
81 "*String to display in mode line when Eldoc Mode is enabled.") 89 "*String to display in mode line when Eldoc Mode is enabled."
90 :type 'string
91 :group 'eldoc)
82 92
83;; Put this minor mode on the global minor-mode-alist. 93;; Put this minor mode on the global minor-mode-alist.
84(or (assq 'eldoc-mode (default-value 'minor-mode-alist)) 94(or (assq 'eldoc-mode (default-value 'minor-mode-alist))
@@ -86,11 +96,13 @@ If this variable is set to 0, no idle time is required.")
86 (append (default-value 'minor-mode-alist) 96 (append (default-value 'minor-mode-alist)
87 '((eldoc-mode eldoc-minor-mode-string))))) 97 '((eldoc-mode eldoc-minor-mode-string)))))
88 98
89(defvar eldoc-argument-case 'upcase 99(defcustom eldoc-argument-case 'upcase
90 "Case to display argument names of functions, as a symbol. 100 "Case to display argument names of functions, as a symbol.
91This has two preferred values: `upcase' or `downcase'. 101This has two preferred values: `upcase' or `downcase'.
92Actually, any name of a function which takes a string as an argument and 102Actually, any name of a function which takes a string as an argument and
93returns another string is acceptable.") 103returns another string is acceptable."
104 :type '(choice (const upcase) (const downcase))
105 :group 'eldoc)
94 106
95;; No user options below here. 107;; No user options below here.
96 108