emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

workings and docstring of internal-lisp-face-equal-p


From: Juanma Barranquero
Subject: workings and docstring of internal-lisp-face-equal-p
Date: Thu, 13 May 2004 10:06:25 +0200

Documentation for internal-lisp-face-equal-p has this bit:

 If the optional argument FRAME is given, report on face FACE in that frame.
 If FRAME is t, report on the defaults for face FACE (for new frames).
 If FRAME is omitted or nil, use the selected frame.  */)

but the arguments are FACE1 and FACE2, not FACE.  This seems like a c&p
bug, because the docstring is almost identical to the one for
`internal-lisp-face-empty-p'.

The code is a bit weird.  What is the frame_or_selected_frame call for,
other than perhaps checking the passed frame wich CHECK_LIVE_FRAME? The
resulting struct frame * f is not used, because the function is passing
NULL to lface_from_face_name, so in fact what is doing is comparing the
defaults of FACE1 and FACE2 for new frames...

                                                                Juanma






reply via email to

[Prev in Thread] Current Thread [Next in Thread]