aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-05 15:06:25 +0000
committerRichard M. Stallman1997-05-05 15:06:25 +0000
commit30e19aee8562bfd1370098f1af95e100c964da30 (patch)
tree296158f585642e486a5928f5dc5f1ee6b2b36437
parent9d325ebf0d4ff46c16515abcfb17310b246b4b86 (diff)
downloademacs-30e19aee8562bfd1370098f1af95e100c964da30.tar.gz
emacs-30e19aee8562bfd1370098f1af95e100c964da30.zip
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 @@
29;;; Code: 29;;; Code:
30 30
31;; Note that this variable is used by non-lisp modes too. 31;; Note that this variable is used by non-lisp modes too.
32(defvar defun-prompt-regexp nil 32(defcustom defun-prompt-regexp nil
33 "*Non-nil => regexp to ignore, before the character that starts a defun. 33 "*Non-nil => regexp to ignore, before the character that starts a defun.
34This is only necessary if the opening paren or brace is not in column 0. 34This is only necessary if the opening paren or brace is not in column 0.
35See `beginning-of-defun'.") 35See `beginning-of-defun'."
36 :type 'boolean
37 :group 'lisp)
36(make-variable-buffer-local 'defun-prompt-regexp) 38(make-variable-buffer-local 'defun-prompt-regexp)
37 39
38(defvar parens-require-spaces t 40(defcustom parens-require-spaces t
39 "Non-nil => `insert-parentheses' should insert whitespace as needed.") 41 "Non-nil => `insert-parentheses' should insert whitespace as needed."
42 :type 'boolean
43 :group 'lisp)
40 44
41(defun forward-sexp (&optional arg) 45(defun forward-sexp (&optional arg)
42 "Move forward across one balanced expression (sexp). 46 "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 @@
1;;; frame.el --- multi-frame management independent of window systems. 1;;; frame.el --- multi-frame management independent of window systems.
2 2
3;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc.
4 4
5;; Maintainer: FSF 5;; Maintainer: FSF
6;; Keywords: internal 6;; Keywords: internal
@@ -72,7 +72,7 @@ These supersede the values given in `default-frame-alist'.")
72 (function (lambda () 72 (function (lambda ()
73 (make-frame pop-up-frame-alist)))) 73 (make-frame pop-up-frame-alist))))
74 74
75(defvar special-display-frame-alist 75(defcustom special-display-frame-alist
76 '((height . 14) (width . 80) (unsplittable . t)) 76 '((height . 14) (width . 80) (unsplittable . t))
77 "*Alist of frame parameters used when creating special frames. 77 "*Alist of frame parameters used when creating special frames.
78Special frames are used for buffers whose names are in 78Special frames are used for buffers whose names are in
@@ -80,7 +80,11 @@ Special frames are used for buffers whose names are in
80one of the regular expressions in `special-display-regexps'. 80one of the regular expressions in `special-display-regexps'.
81This variable can be set in your init file, like this: 81This variable can be set in your init file, like this:
82 (setq special-display-frame-alist '((width . 80) (height . 20))) 82 (setq special-display-frame-alist '((width . 80) (height . 20)))
83These supersede the values given in `default-frame-alist'.") 83These supersede the values given in `default-frame-alist'."
84 :type '(repeat (cons :format "%v"
85 (symbol :tag "Parameter")
86 (sexp :tag "Value")))
87 :group 'frames)
84 88
85;; Display BUFFER in its own frame, reusing an existing window if any. 89;; Display BUFFER in its own frame, reusing an existing window if any.
86;; Return the window chosen. 90;; Return the window chosen.
@@ -675,8 +679,11 @@ that is beyond the control of Emacs and this command has no effect on it."
675 (modify-frame-parameters (selected-frame) 679 (modify-frame-parameters (selected-frame)
676 (list (cons 'auto-lower (> arg 0))))) 680 (list (cons 'auto-lower (> arg 0)))))
677 681
678(defvar scroll-bar-side 'left 682(defcustom scroll-bar-side 'left
679 "*Specify which side scroll bars should be on. Value is `left' or `right'.") 683 "*Specify which side scroll bars should be on. Value is `left' or `right'."
684 :type '(choice (const left)
685 (const right))
686 :group 'frames)
680 687
681(defun toggle-scroll-bar (arg) 688(defun toggle-scroll-bar (arg)
682 "Toggle whether or not the selected frame has vertical scroll bars. 689 "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 @@
28 28
29;;; User options: 29;;; User options:
30 30
31(defvar buffers-menu-max-size 10 31(defcustom buffers-menu-max-size 10
32 "*Maximum number of entries which may appear on the Buffers menu. 32 "*Maximum number of entries which may appear on the Buffers menu.
33If this is 10, then only the ten most-recently-selected buffers are shown. 33If this is 10, then only the ten most-recently-selected buffers are shown.
34If this is nil, then all buffers are shown. 34If this is nil, then all buffers are shown.
35A large number or nil slows down menu responsiveness.") 35A large number or nil slows down menu responsiveness."
36 :type '(choice integer
37 (const :tag "All" nil))
38 :group 'mouse)
36 39
37;; Don't clobber an existing menu-bar keymap, to preserve any menu-bar key 40;; Don't clobber an existing menu-bar keymap, to preserve any menu-bar key
38;; definitions made in loaddefs.el. 41;; definitions made in loaddefs.el.
@@ -422,8 +425,10 @@ Do the same for the keys of the same name."
422 pending-undo-list) 425 pending-undo-list)
423 buffer-undo-list))) 426 buffer-undo-list)))
424 427
425(defvar yank-menu-length 20 428(defcustom yank-menu-length 20
426 "*Maximum length to display in the yank-menu.") 429 "*Maximum length to display in the yank-menu."
430 :type 'integer
431 :group 'mouse)
427 432
428(defun menu-bar-update-yank-menu (string old) 433(defun menu-bar-update-yank-menu (string old)
429 (let ((front (car (cdr yank-menu))) 434 (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."
142 'nomini))) 142 'nomini)))
143 143
144;;; I think this should be the default; I think people will prefer it--rms. 144;;; I think this should be the default; I think people will prefer it--rms.
145(defvar split-window-keep-point t 145(defcustom split-window-keep-point t
146 "*If non-nil, split windows keeps the original point in both children. 146 "*If non-nil, split windows keeps the original point in both children.
147This is often more convenient for editing. 147This is often more convenient for editing.
148If nil, adjust point in each of the two windows to minimize redisplay. 148If nil, adjust point in each of the two windows to minimize redisplay.
149This is convenient on slow terminals, but point can move strangely.") 149This is convenient on slow terminals, but point can move strangely."
150 :type 'boolean
151 :group 'windows)
150 152
151(defun split-window-vertically (&optional arg) 153(defun split-window-vertically (&optional arg)
152 "Split current window into two windows, one above the other. 154 "Split current window into two windows, one above the other.