aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-12 19:31:00 +0000
committerRichard M. Stallman1997-04-12 19:31:00 +0000
commit9e5b444e89808cf2b2fac7457722fb0cbe22f210 (patch)
tree7d8f05e23752e01b1a79300f04a9834a6158384f
parentabbc1a7ac93b8116f0d7c42af3a8ac1c0cab70f6 (diff)
downloademacs-9e5b444e89808cf2b2fac7457722fb0cbe22f210.tar.gz
emacs-9e5b444e89808cf2b2fac7457722fb0cbe22f210.zip
Add defgroup; use defcustom for user vars.
-rw-r--r--lisp/emacs-lisp/elp.el43
-rw-r--r--lisp/rsz-mini.el37
2 files changed, 56 insertions, 24 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el
index d6bac0697a6..e5da5158b19 100644
--- a/lisp/emacs-lisp/elp.el
+++ b/lisp/emacs-lisp/elp.el
@@ -142,15 +142,23 @@
142;; start user configuration variables 142;; start user configuration variables
143;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 143;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
144 144
145(defvar elp-function-list nil 145(defgroup elp nil
146 "*List of function to profile. 146 "Emacs Lisp Profiler"
147Used by the command `elp-instrument-list'.") 147 :group 'lisp)
148 148
149(defvar elp-reset-after-results t 149(defcustom elp-function-list nil
150 "*List of functions to profile.
151Used by the command `elp-instrument-list'."
152 :type '(repeat function)
153 :group 'elp)
154
155(defcustom elp-reset-after-results t
150 "*Non-nil means reset all profiling info after results are displayed. 156 "*Non-nil means reset all profiling info after results are displayed.
151Results are displayed with the `elp-results' command.") 157Results are displayed with the `elp-results' command."
158 :type 'boolean
159 :group 'elp)
152 160
153(defvar elp-sort-by-function 'elp-sort-by-total-time 161(defcustom elp-sort-by-function 'elp-sort-by-total-time
154 "*Non-nil specifies elp results sorting function. 162 "*Non-nil specifies elp results sorting function.
155These functions are currently available: 163These functions are currently available:
156 164
@@ -163,21 +171,30 @@ interface specified by the PRED argument for the `sort' defun. Each
163\"element of LIST\" is really a 4 element vector where element 0 is 171\"element of LIST\" is really a 4 element vector where element 0 is
164the call count, element 1 is the total time spent in the function, 172the call count, element 1 is the total time spent in the function,
165element 2 is the average time spent in the function, and element 3 is 173element 2 is the average time spent in the function, and element 3 is
166the symbol's name string.") 174the symbol's name string."
175 :type 'function
176 :group 'elp)
167 177
168(defvar elp-report-limit 1 178(defcustom elp-report-limit 1
169 "*Prevents some functions from being displayed in the results buffer. 179 "*Prevents some functions from being displayed in the results buffer.
170If a number, no function that has been called fewer than that number 180If a number, no function that has been called fewer than that number
171of times will be displayed in the output buffer. If nil, all 181of times will be displayed in the output buffer. If nil, all
172functions will be displayed.") 182functions will be displayed."
183 :type '(choice integer
184 (const :tag "All" nil))
185 :group 'elp)
173 186
174(defvar elp-use-standard-output nil 187(defcustom elp-use-standard-output nil
175 "*Non-nil says to output to `standard-output' instead of a buffer.") 188 "*Non-nil says to output to `standard-output' instead of a buffer."
189 :type 'boolean
190 :group 'elp)
176 191
177(defvar elp-recycle-buffers-p t 192(defcustom elp-recycle-buffers-p t
178 "*Nil says to not recycle the `elp-results-buffer'. 193 "*Nil says to not recycle the `elp-results-buffer'.
179In other words, a new unique buffer is create every time you run 194In other words, a new unique buffer is create every time you run
180\\[elp-results].") 195\\[elp-results]."
196 :type 'boolean
197 :group 'elp)
181 198
182 199
183;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/lisp/rsz-mini.el b/lisp/rsz-mini.el
index da5f4b478ba..7f3313a7286 100644
--- a/lisp/rsz-mini.el
+++ b/lisp/rsz-mini.el
@@ -55,40 +55,55 @@
55;;; Code: 55;;; Code:
56 56
57 57
58(defgroup resize-minibuffer nil
59 "Dynamically resize minibuffer to display entire contents"
60 :group 'frames)
61
62
58;;;###autoload 63;;;###autoload
59(defvar resize-minibuffer-mode nil 64(defcustom resize-minibuffer-mode nil
60 "*If non-`nil', resize the minibuffer so its entire contents are visible.") 65 "*If non-`nil', resize the minibuffer so its entire contents are visible."
66 :type 'boolean
67 :group 'resize-minibuffer)
61 68
62;;;###autoload 69;;;###autoload
63(defvar resize-minibuffer-window-max-height nil 70(defcustom resize-minibuffer-window-max-height nil
64 "*Maximum size the minibuffer window is allowed to become. 71 "*Maximum size the minibuffer window is allowed to become.
65If less than 1 or not a number, the limit is the height of the frame in 72If less than 1 or not a number, the limit is the height of the frame in
66which the active minibuffer window resides.") 73which the active minibuffer window resides."
74 :type '(choice (const nil) integer)
75 :group 'resize-minibuffer)
67 76
68;;;###autoload 77;;;###autoload
69(defvar resize-minibuffer-window-exactly t 78(defcustom resize-minibuffer-window-exactly t
70 "*Allow making minibuffer exactly the size to display all its contents. 79 "*Allow making minibuffer exactly the size to display all its contents.
71If `nil', the minibuffer window can temporarily increase in size but 80If `nil', the minibuffer window can temporarily increase in size but
72never get smaller while it is active. Any other value allows exact 81never get smaller while it is active. Any other value allows exact
73resizing.") 82resizing."
83 :type 'boolean
84 :group 'resize-minibuffer)
74 85
75;;;###autoload 86;;;###autoload
76(defvar resize-minibuffer-frame nil 87(defcustom resize-minibuffer-frame nil
77 "*Allow changing the frame height of minibuffer frames. 88 "*Allow changing the frame height of minibuffer frames.
78If non-`nil' and the active minibuffer is the sole window in its frame, 89If non-`nil' and the active minibuffer is the sole window in its frame,
79allow changing the frame height.") 90allow changing the frame height."
91 :type 'boolean
92 :group 'resize-minibuffer)
80 93
81;;;###autoload 94;;;###autoload
82(defvar resize-minibuffer-frame-max-height nil 95(defcustom resize-minibuffer-frame-max-height nil
83 "*Maximum size the minibuffer frame is allowed to become. 96 "*Maximum size the minibuffer frame is allowed to become.
84If less than 1 or not a number, there is no limit.") 97If less than 1 or not a number, there is no limit.")
85 98
86;;;###autoload 99;;;###autoload
87(defvar resize-minibuffer-frame-exactly t 100(defcustom resize-minibuffer-frame-exactly t
88 "*Allow making minibuffer frame exactly the size to display all its contents. 101 "*Allow making minibuffer frame exactly the size to display all its contents.
89If `nil', the minibuffer frame can temporarily increase in size but 102If `nil', the minibuffer frame can temporarily increase in size but
90never get smaller while it is active. Any other value allows exact 103never get smaller while it is active. Any other value allows exact
91resizing.") 104resizing."
105 :type 'boolean
106 :group 'resize-minibuffer)
92 107
93;; Variable used to store the height of the minibuffer frame 108;; Variable used to store the height of the minibuffer frame
94;; on entry, so it can be restored on exit. It is made local before it is 109;; on entry, so it can be restored on exit. It is made local before it is