diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/faces.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3b4b72e31cc..d3ae809deda 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-06-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * faces.el (face-id): If the argument is a face alias, | ||
| 4 | return the ID of the target face. | ||
| 5 | |||
| 1 | 2007-06-05 Michael Albinus <michael.albinus@gmx.de> | 6 | 2007-06-05 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/socks.el (top): Remove unnecessary copyright line. | 8 | * net/socks.el (top): Remove unnecessary copyright line. |
diff --git a/lisp/faces.el b/lisp/faces.el index a8c92ab9a75..048dae039ad 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -222,11 +222,12 @@ Value is FACE." | |||
| 222 | 222 | ||
| 223 | (defun face-id (face &optional frame) | 223 | (defun face-id (face &optional frame) |
| 224 | "Return the internal ID of face with name FACE. | 224 | "Return the internal ID of face with name FACE. |
| 225 | If FACE is a face-alias, return the ID of the target face. | ||
| 225 | The optional argument FRAME is ignored, since the internal face ID | 226 | The optional argument FRAME is ignored, since the internal face ID |
| 226 | of a face name is the same for all frames." | 227 | of a face name is the same for all frames." |
| 227 | (check-face face) | 228 | (check-face face) |
| 228 | (get face 'face)) | 229 | (or (get face 'face) |
| 229 | 230 | (face-id (get face 'face-alias)))) | |
| 230 | 231 | ||
| 231 | (defun face-equal (face1 face2 &optional frame) | 232 | (defun face-equal (face1 face2 &optional frame) |
| 232 | "Non-nil if faces FACE1 and FACE2 are equal. | 233 | "Non-nil if faces FACE1 and FACE2 are equal. |