+1999-11-15 Dave Love <fx@gnu.org>
+
+ * cus-edit.el (customize-face, customize-face-other-window):
+ Require match from completing-read.
+ (custom-buffer-done-function): Default to custom-bury-buffer, not
+ bury-buffer.
+
1999-11-15 Gerd Moellmann <gerd@gnu.org>
* hippie-exp.el: Use new backquote syntax.
"Customize SYMBOL, which should be a face name or nil.
If SYMBOL is nil, customize all faces."
(interactive (list (completing-read "Customize face: (default all) "
- obarray 'custom-facep)))
+ obarray 'custom-facep t)))
(if (or (null symbol) (and (stringp symbol) (zerop (length symbol))))
(custom-buffer-create (custom-sort-items
(mapcar (lambda (symbol)
(defun customize-face-other-window (&optional symbol)
"Show customization buffer for FACE in other window."
(interactive (list (completing-read "Customize face: "
- obarray 'custom-facep)))
+ obarray 'custom-facep t)))
(if (or (null symbol) (and (stringp symbol) (zerop (length symbol))))
()
(if (stringp symbol)
(const links))
:group 'custom-buffer)
+;; If we pass BUFFER to `bury-buffer', the buffer isn't removed from
+;; the window.
(defun custom-bury-buffer (buffer)
(bury-buffer))
-(defcustom custom-buffer-done-function 'bury-buffer
+(defcustom custom-buffer-done-function 'custom-bury-buffer
"*Function called to remove a Custom buffer when the user is done with it.
Called with one argument, the buffer to remove."
- :type '(choice (function-item custom-bury-buffer)
- (function-item kill-buffer)
+ :type '(choice (function-item :tag "Bury buffer" custom-bury-buffer)
+ (function-item :tag "Kill buffer" kill-buffer)
(function :tag "Other"))
:version "21.1"
:group 'custom-buffer)
':style 'toggle
':selected symbol)))
-;; Fixme: sort out use of :filter in Emacs
+;; Fixme: sort out use of :filter in Emacs 21.
(if nil ; (string-match "XEmacs" emacs-version)
;; XEmacs can create menus dynamically.
(defun custom-group-menu-create (widget symbol)
The format is suitable for use with `easy-menu-define'."
(unless name
(setq name "Customize"))
- ;; Fixme: sort out use of :filter in Emacs
+ ;; Fixme: sort out use of :filter in Emacs 21.
(if nil ;(string-match "XEmacs" emacs-version)
;; We can delay it under XEmacs.
`(,name