aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2002-04-25 15:39:32 +0000
committerMiles Bader2002-04-25 15:39:32 +0000
commite16a803772f2f31b4dc7736730086c9f596a54e0 (patch)
tree1b2a3840a1ca3146d31d0f0cd1fdff638b5bbb4f
parent4d3eda1c87540f170eb5a6afb1ef03cb972b81af (diff)
downloademacs-e16a803772f2f31b4dc7736730086c9f596a54e0.tar.gz
emacs-e16a803772f2f31b4dc7736730086c9f596a54e0.zip
(customize-face, customize-face-other-window):
Use default instead of initial-input for suggested face.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/cus-edit.el26
2 files changed, 21 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 348ae701550..5d8cdb66090 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-04-26 Miles Bader <miles@gnu.org>
2
3 * cus-edit.el (customize-face, customize-face-other-window):
4 Use default instead of initial-input for suggested face.
5
12002-04-25 Gerd Moellmann <gerd@gnu.org> 62002-04-25 Gerd Moellmann <gerd@gnu.org>
2 7
3 * cus-edit.el (customize-face-other-window, customize-face): 8 * cus-edit.el (customize-face-other-window, customize-face):
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 797d0d5b04c..9fcf1f4ee50 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1040,11 +1040,14 @@ If SYMBOL is nil, customize all faces.
1040Interactively, when point is on text which has a face specified, 1040Interactively, when point is on text which has a face specified,
1041suggest to customized that face, if it's customizable." 1041suggest to customized that face, if it's customizable."
1042 (interactive 1042 (interactive
1043 (list (completing-read "Customize face (default all): " 1043 (list
1044 obarray 'custom-facep t 1044 (let ((face (get-char-property (point) 'face)))
1045 (let ((face (get-char-property (point) 'face))) 1045 (if (and face (symbolp face))
1046 (when (and face (symbolp face)) 1046 (completing-read (format "Customize face (default `%s'): "
1047 (symbol-name face)))))) 1047 (symbol-name face))
1048 obarray 'custom-facep t nil nil (symbol-name face))
1049 (completing-read "Customize face (default all): "
1050 obarray 'custom-facep t)))))
1048 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol)))) 1051 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol))))
1049 (custom-buffer-create (custom-sort-items 1052 (custom-buffer-create (custom-sort-items
1050 (mapcar (lambda (symbol) 1053 (mapcar (lambda (symbol)
@@ -1067,11 +1070,14 @@ suggest to customized that face, if it's customizable."
1067Interactively, when point is on text which has a face specified, 1070Interactively, when point is on text which has a face specified,
1068suggest to customized that face, if it's customizable." 1071suggest to customized that face, if it's customizable."
1069 (interactive 1072 (interactive
1070 (list (completing-read "Customize face: " 1073 (list
1071 obarray 'custom-facep t 1074 (let ((face (get-char-property (point) 'face)))
1072 (let ((face (get-char-property (point) 'face))) 1075 (if (and face (symbolp face))
1073 (when (and face (symbolp face)) 1076 (completing-read (format "Customize face (default `%s'): "
1074 (symbol-name face)))))) 1077 (symbol-name face))
1078 obarray 'custom-facep t nil nil (symbol-name face))
1079 (completing-read "Customize face (default all): "
1080 obarray 'custom-facep t)))))
1075 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol)))) 1081 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol))))
1076 () 1082 ()
1077 (if (stringp symbol) 1083 (if (stringp symbol)