aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-11-15 12:36:02 +0000
committerDave Love1999-11-15 12:36:02 +0000
commit8d8ca350e75f1964f9a3454aa783726d02c0871b (patch)
tree49a020b7b8cba92e82ff3add2cdd7e7aa0e1da01
parentd7d20e6afc535b61e21657ed04666727c796e61a (diff)
downloademacs-8d8ca350e75f1964f9a3454aa783726d02c0871b.tar.gz
emacs-8d8ca350e75f1964f9a3454aa783726d02c0871b.zip
(customize-face, customize-face-other-window): Require match from
completing-read. (custom-buffer-done-function): Default to custom-bury-buffer, not bury-buffer.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/cus-edit.el16
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 49695b78452..2e7f66f59f3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
11999-11-15 Dave Love <fx@gnu.org>
2
3 * cus-edit.el (customize-face, customize-face-other-window):
4 Require match from completing-read.
5 (custom-buffer-done-function): Default to custom-bury-buffer, not
6 bury-buffer.
7
11999-11-15 Gerd Moellmann <gerd@gnu.org> 81999-11-15 Gerd Moellmann <gerd@gnu.org>
2 9
3 * hippie-exp.el: Use new backquote syntax. 10 * hippie-exp.el: Use new backquote syntax.
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 5f876b66dce..cb6e8282038 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1021,7 +1021,7 @@ Show the buffer in another window, but don't select it."
1021 "Customize SYMBOL, which should be a face name or nil. 1021 "Customize SYMBOL, which should be a face name or nil.
1022If SYMBOL is nil, customize all faces." 1022If SYMBOL is nil, customize all faces."
1023 (interactive (list (completing-read "Customize face: (default all) " 1023 (interactive (list (completing-read "Customize face: (default all) "
1024 obarray 'custom-facep))) 1024 obarray 'custom-facep t)))
1025 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol)))) 1025 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol))))
1026 (custom-buffer-create (custom-sort-items 1026 (custom-buffer-create (custom-sort-items
1027 (mapcar (lambda (symbol) 1027 (mapcar (lambda (symbol)
@@ -1041,7 +1041,7 @@ If SYMBOL is nil, customize all faces."
1041(defun customize-face-other-window (&optional symbol) 1041(defun customize-face-other-window (&optional symbol)
1042 "Show customization buffer for FACE in other window." 1042 "Show customization buffer for FACE in other window."
1043 (interactive (list (completing-read "Customize face: " 1043 (interactive (list (completing-read "Customize face: "
1044 obarray 'custom-facep))) 1044 obarray 'custom-facep t)))
1045 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol)))) 1045 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol))))
1046 () 1046 ()
1047 (if (stringp symbol) 1047 (if (stringp symbol)
@@ -1153,14 +1153,16 @@ links: groups have links to subgroups."
1153 (const links)) 1153 (const links))
1154 :group 'custom-buffer) 1154 :group 'custom-buffer)
1155 1155
1156;; If we pass BUFFER to `bury-buffer', the buffer isn't removed from
1157;; the window.
1156(defun custom-bury-buffer (buffer) 1158(defun custom-bury-buffer (buffer)
1157 (bury-buffer)) 1159 (bury-buffer))
1158 1160
1159(defcustom custom-buffer-done-function 'bury-buffer 1161(defcustom custom-buffer-done-function 'custom-bury-buffer
1160 "*Function called to remove a Custom buffer when the user is done with it. 1162 "*Function called to remove a Custom buffer when the user is done with it.
1161Called with one argument, the buffer to remove." 1163Called with one argument, the buffer to remove."
1162 :type '(choice (function-item custom-bury-buffer) 1164 :type '(choice (function-item :tag "Bury buffer" custom-bury-buffer)
1163 (function-item kill-buffer) 1165 (function-item :tag "Kill buffer" kill-buffer)
1164 (function :tag "Other")) 1166 (function :tag "Other"))
1165 :version "21.1" 1167 :version "21.1"
1166 :group 'custom-buffer) 1168 :group 'custom-buffer)
@@ -3546,7 +3548,7 @@ Leave point at the location of the call, or after the last expression."
3546 ':style 'toggle 3548 ':style 'toggle
3547 ':selected symbol))) 3549 ':selected symbol)))
3548 3550
3549;; Fixme: sort out use of :filter in Emacs 3551;; Fixme: sort out use of :filter in Emacs 21.
3550(if nil ; (string-match "XEmacs" emacs-version) 3552(if nil ; (string-match "XEmacs" emacs-version)
3551 ;; XEmacs can create menus dynamically. 3553 ;; XEmacs can create menus dynamically.
3552 (defun custom-group-menu-create (widget symbol) 3554 (defun custom-group-menu-create (widget symbol)
@@ -3596,7 +3598,7 @@ Otherwise the menu will be named `Customize'.
3596The format is suitable for use with `easy-menu-define'." 3598The format is suitable for use with `easy-menu-define'."
3597 (unless name 3599 (unless name
3598 (setq name "Customize")) 3600 (setq name "Customize"))
3599 ;; Fixme: sort out use of :filter in Emacs 3601 ;; Fixme: sort out use of :filter in Emacs 21.
3600 (if nil ;(string-match "XEmacs" emacs-version) 3602 (if nil ;(string-match "XEmacs" emacs-version)
3601 ;; We can delay it under XEmacs. 3603 ;; We can delay it under XEmacs.
3602 `(,name 3604 `(,name