diff options
| author | Richard M. Stallman | 2002-04-26 22:33:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-04-26 22:33:33 +0000 |
| commit | 501d8923ae2cdec4ef50f050bb66d3715ba2a8f6 (patch) | |
| tree | 509feb89b97cad2d51f77aceb1c0864095ffb8fc /lisp/cus-edit.el | |
| parent | cdd50deacfaa8073807a9b77a1426957d95f4ff7 (diff) | |
| download | emacs-501d8923ae2cdec4ef50f050bb66d3715ba2a8f6.tar.gz emacs-501d8923ae2cdec4ef50f050bb66d3715ba2a8f6.zip | |
(customize-face-other-window): Make it work similarly.
Diffstat (limited to 'lisp/cus-edit.el')
| -rw-r--r-- | lisp/cus-edit.el | 33 |
1 files changed, 18 insertions, 15 deletions
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." | |||
| 1065 | Interactively, when point is on text which has a face specified, | 1065 | Interactively, when point is on text which has a face specified, |
| 1066 | suggest to customized that face, if it's customizable." | 1066 | suggest 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 () |