aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/faces.el5
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 @@
12007-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
12007-06-05 Michael Albinus <michael.albinus@gmx.de> 62007-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.
225If FACE is a face-alias, return the ID of the target face.
225The optional argument FRAME is ignored, since the internal face ID 226The optional argument FRAME is ignored, since the internal face ID
226of a face name is the same for all frames." 227of 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.