summaryrefslogtreecommitdiff
path: root/lisp/menu-bar.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-05-05 15:06:25 +0000
committerRichard M. Stallman <rms@gnu.org>1997-05-05 15:06:25 +0000
commitdaf53c9e4f4b4695a5623bd05b2fca3701977765 (patch)
tree2dd46b7d0a6fe47580af6466ab81577e6d262bb0 /lisp/menu-bar.el
parentb31b14dd74aecd9af550a2245b6601950f603c10 (diff)
downloademacs-daf53c9e4f4b4695a5623bd05b2fca3701977765.tar.gz
Use defcustom.
Diffstat (limited to 'lisp/menu-bar.el')
-rw-r--r--lisp/menu-bar.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 7a13cb6936d..fb8e07c428c 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -28,11 +28,14 @@
;;; User options:
-(defvar buffers-menu-max-size 10
+(defcustom buffers-menu-max-size 10
"*Maximum number of entries which may appear on the Buffers menu.
If this is 10, then only the ten most-recently-selected buffers are shown.
If this is nil, then all buffers are shown.
-A large number or nil slows down menu responsiveness.")
+A large number or nil slows down menu responsiveness."
+ :type '(choice integer
+ (const :tag "All" nil))
+ :group 'mouse)
;; Don't clobber an existing menu-bar keymap, to preserve any menu-bar key
;; definitions made in loaddefs.el.
@@ -422,8 +425,10 @@ Do the same for the keys of the same name."
pending-undo-list)
buffer-undo-list)))
-(defvar yank-menu-length 20
- "*Maximum length to display in the yank-menu.")
+(defcustom yank-menu-length 20
+ "*Maximum length to display in the yank-menu."
+ :type 'integer
+ :group 'mouse)
(defun menu-bar-update-yank-menu (string old)
(let ((front (car (cdr yank-menu)))