aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-04-26 22:33:33 +0000
committerRichard M. Stallman2002-04-26 22:33:33 +0000
commit501d8923ae2cdec4ef50f050bb66d3715ba2a8f6 (patch)
tree509feb89b97cad2d51f77aceb1c0864095ffb8fc
parentcdd50deacfaa8073807a9b77a1426957d95f4ff7 (diff)
downloademacs-501d8923ae2cdec4ef50f050bb66d3715ba2a8f6.tar.gz
emacs-501d8923ae2cdec4ef50f050bb66d3715ba2a8f6.zip
(customize-face-other-window): Make it work similarly.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/cus-edit.el33
2 files changed, 29 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 885c8c92a82..92399745975 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,16 @@
12002-04-26 Richard M. Stallman <rms@gnu.org> 12002-04-26 Richard M. Stallman <rms@gnu.org>
2 2
3 * cus-edit.el (customize-face): Use read-face-name
4 and handle multiple faces.
5 (customize-face-other-window): Make it work similarly.
6
7 * faces.el (read-face-name): New defaulting features.
8 New args STRING-DESCRIBING-DEFAULT and MULTIPLE.
9 (list-faces-display): Use the face, not its name string,
10 as arg when running customize-face.
11 Put a `read-face-name' prop on the entire line.
12 (describe-face): Handle multiple faces via read-face-name.
13
3 * textmodes/tex-mode.el (tex-start-tex): Fix previous change. 14 * textmodes/tex-mode.el (tex-start-tex): Fix previous change.
4 15
52002-04-26 Sam Steingold <sds@gnu.org> 162002-04-26 Sam Steingold <sds@gnu.org>
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index bbc3f2b8ad2..ba0758b6781 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1065,22 +1065,25 @@ suggest to customized that face, if it's customizable."
1065Interactively, when point is on text which has a face specified, 1065Interactively, when point is on text which has a face specified,
1066suggest to customized that face, if it's customizable." 1066suggest to customized that face, if it's customizable."
1067 (interactive 1067 (interactive
1068 (list 1068 (list (read-face-name "Customize face" "all faces" t)))
1069 (let ((face (get-char-property (point) 'face))) 1069 (if (member face '(nil ""))
1070 (if (and face (symbolp face)) 1070 (setq face (face-list)))
1071 (completing-read (format "Customize face (default `%s'): " face) 1071 (if (and (listp face) (null (cdr face)))
1072 obarray 'custom-facep t nil nil (symbol-name face)) 1072 (setq face (car face)))
1073 (completing-read "Customize face (default all): " 1073 (if (listp face)
1074 obarray 'custom-facep t))))) 1074 (custom-buffer-create-other-window
1075 (if (or (null symbol) (and (stringp symbol) (zerop (length symbol)))) 1075 (custom-sort-items
1076 () 1076 (mapcar (lambda (s)
1077 (if (stringp symbol) 1077 (list s 'custom-face))
1078 (setq symbol (intern symbol))) 1078 face)
1079 (unless (symbolp symbol) 1079 t nil)
1080 (error "Should be a symbol %S" symbol)) 1080 "*Customize Faces*")
1081 (unless (facep face)
1082 (error "Invalid face %S"))
1081 (custom-buffer-create-other-window 1083 (custom-buffer-create-other-window
1082 (list (list symbol 'custom-face)) 1084 (list (list face 'custom-face))
1083 (format "*Customize Face: %s*" (custom-unlispify-tag-name symbol))))) 1085 (format "*Customize Face: %s*"
1086 (custom-unlispify-tag-name face)))))
1084 1087
1085;;;###autoload 1088;;;###autoload
1086(defun customize-customized () 1089(defun customize-customized ()