mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 07:01:11 -08:00
(face-id): If the argument is a face alias, return the ID of the target face.
This commit is contained in:
parent
65fddb7472
commit
b2d5aa4656
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2007-06-05 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* faces.el (face-id): If the argument is a face alias,
|
||||
return the ID of the target face.
|
||||
|
||||
2007-06-05 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* net/socks.el (top): Remove unnecessary copyright line.
|
||||
|
|
|
|||
|
|
@ -222,11 +222,12 @@ Value is FACE."
|
|||
|
||||
(defun face-id (face &optional frame)
|
||||
"Return the internal ID of face with name FACE.
|
||||
If FACE is a face-alias, return the ID of the target face.
|
||||
The optional argument FRAME is ignored, since the internal face ID
|
||||
of a face name is the same for all frames."
|
||||
(check-face face)
|
||||
(get face 'face))
|
||||
|
||||
(or (get face 'face)
|
||||
(face-id (get face 'face-alias))))
|
||||
|
||||
(defun face-equal (face1 face2 &optional frame)
|
||||
"Non-nil if faces FACE1 and FACE2 are equal.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue