unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* workings and docstring of internal-lisp-face-equal-p
@ 2004-05-13  8:06 Juanma Barranquero
  0 siblings, 0 replies; only message in thread
From: Juanma Barranquero @ 2004-05-13  8:06 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-13  8:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-13  8:06 workings and docstring of internal-lisp-face-equal-p Juanma Barranquero

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).