summaryrefslogtreecommitdiff
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
parentb31b14dd74aecd9af550a2245b6601950f603c10 (diff)
downloademacs-daf53c9e4f4b4695a5623bd05b2fca3701977765.tar.gz
Use defcustom.
-rw-r--r--lisp/emacs-lisp/lisp.el12
-rw-r--r--lisp/frame.el17
-rw-r--r--lisp/menu-bar.el13
-rw-r--r--lisp/window.el6
4 files changed, 33 insertions, 15 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el
index 767c96e620b..995e327ee9b 100644
--- a/lisp/emacs-lisp/lisp.el
+++ b/lisp/emacs-lisp/lisp.el
@@ -29,14 +29,18 @@
;;; Code:
;; Note that this variable is used by non-lisp modes too.
-(defvar defun-prompt-regexp nil
+(defcustom defun-prompt-regexp nil
"*Non-nil => regexp to ignore, before the character that starts a defun.
This is only necessary if the opening paren or brace is not in column 0.
-See `beginning-of-defun'.")
+See `beginning-of-defun'."
+ :type 'boolean
+ :group 'lisp)
(make-variable-buffer-local 'defun-prompt-regexp)
-(defvar parens-require-spaces t
- "Non-nil => `insert-parentheses' should insert whitespace as needed.")
+(defcustom parens-require-spaces t
+ "Non-nil => `insert-parentheses' should insert whitespace as needed."
+ :type 'boolean
+ :group 'lisp)
(defun forward-sexp (&optional arg)
"Move forward across one balanced expression (sexp).
diff --git a/lisp/frame.el b/lisp/frame.el
index b08fdc2c4b5..abda506b8a2 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1,6 +1,6 @@
;;; frame.el --- multi-frame management independent of window systems.
-;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+;; Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: internal
@@ -72,7 +72,7 @@ These supersede the values given in `default-frame-alist'.")
(function (lambda ()
(make-frame pop-up-frame-alist))))
-(defvar special-display-frame-alist
+(defcustom special-display-frame-alist
'((height . 14) (width . 80) (unsplittable . t))
"*Alist of frame parameters used when creating special frames.
Special frames are used for buffers whose names are in
@@ -80,7 +80,11 @@ Special frames are used for buffers whose names are in
one of the regular expressions in `special-display-regexps'.
This variable can be set in your init file, like this:
(setq special-display-frame-alist '((width . 80) (height . 20)))
-These supersede the values given in `default-frame-alist'.")
+These supersede the values given in `default-frame-alist'."
+ :type '(repeat (cons :format "%v"
+ (symbol :tag "Parameter")
+ (sexp :tag "Value")))
+ :group 'frames)
;; Display BUFFER in its own frame, reusing an existing window if any.
;; Return the window chosen.
@@ -675,8 +679,11 @@ that is beyond the control of Emacs and this command has no effect on it."
(modify-frame-parameters (selected-frame)
(list (cons 'auto-lower (> arg 0)))))
-(defvar scroll-bar-side 'left
- "*Specify which side scroll bars should be on. Value is `left' or `right'.")
+(defcustom scroll-bar-side 'left
+ "*Specify which side scroll bars should be on. Value is `left' or `right'."
+ :type '(choice (const left)
+ (const right))
+ :group 'frames)
(defun toggle-scroll-bar (arg)
"Toggle whether or not the selected frame has vertical scroll bars.
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)))
diff --git a/lisp/window.el b/lisp/window.el
index 0b55ccbe9a3..5be9f870b9d 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -142,11 +142,13 @@ even if it is inactive."
'nomini)))
;;; I think this should be the default; I think people will prefer it--rms.
-(defvar split-window-keep-point t
+(defcustom split-window-keep-point t
"*If non-nil, split windows keeps the original point in both children.
This is often more convenient for editing.
If nil, adjust point in each of the two windows to minimize redisplay.
-This is convenient on slow terminals, but point can move strangely.")
+This is convenient on slow terminals, but point can move strangely."
+ :type 'boolean
+ :group 'windows)
(defun split-window-vertically (&optional arg)
"Split current window into two windows, one above the other.