diff options
| author | Richard M. Stallman | 2004-12-31 15:21:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-12-31 15:21:47 +0000 |
| commit | 1bd59f82e73f9c00b3de0420b9b50a0d8f13edd5 (patch) | |
| tree | 2e8b5d674117fd3b1c29dc056b610823b1e99566 | |
| parent | d020fce006f84fb944879d7b2326c0c8c6c24811 (diff) | |
| download | emacs-1bd59f82e73f9c00b3de0420b9b50a0d8f13edd5.tar.gz emacs-1bd59f82e73f9c00b3de0420b9b50a0d8f13edd5.zip | |
(read-face-name): Don't treat an attribute spec as a list of faces.
| -rw-r--r-- | lisp/faces.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index d2ae90805f2..86fda8506d4 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -854,12 +854,15 @@ Otherwise, return a single face." | |||
| 854 | (get-char-property (point) 'face))) | 854 | (get-char-property (point) 'face))) |
| 855 | faces) | 855 | faces) |
| 856 | ;; Make a list of the named faces that the `face' property uses. | 856 | ;; Make a list of the named faces that the `face' property uses. |
| 857 | (if (listp faceprop) | 857 | (if (and (listp faceprop) |
| 858 | ;; Don't treat an attribute spec as a list of faces. | ||
| 859 | (not (keywordp (car faceprop))) | ||
| 860 | (not (memq (car faceprop) '(foreground-color background-color)))) | ||
| 858 | (dolist (f faceprop) | 861 | (dolist (f faceprop) |
| 859 | (if (symbolp f) | 862 | (if (symbolp f) |
| 860 | (push f faces))) | 863 | (push f faces))) |
| 861 | (if (symbolp faceprop) | 864 | (if (symbolp faceprop) |
| 862 | (setq faces (list faceprop)))) | 865 | (push faceprop faces))) |
| 863 | ;; If there are none, try to get a face name from the buffer. | 866 | ;; If there are none, try to get a face name from the buffer. |
| 864 | (if (and (null faces) | 867 | (if (and (null faces) |
| 865 | (memq (intern-soft (thing-at-point 'symbol)) (face-list))) | 868 | (memq (intern-soft (thing-at-point 'symbol)) (face-list))) |