Function: internal-lisp-face-p

internal-lisp-face-p is a function defined in xfaces.c.

Signature

(internal-lisp-face-p FACE &optional FRAME)

Documentation

Return non-nil if FACE names a face.

FACE should be a symbol or string. If optional second argument FRAME is non-nil, check for the existence of a frame-local face with name FACE on that frame. Otherwise check for the existence of a global face.

Source Code

// Defined in /usr/src/emacs/src/xfaces.c
{
  Lisp_Object lface;

  face = resolve_face_name (face, true);

  if (!NILP (frame))
    {
      CHECK_LIVE_FRAME (frame);
      lface = lface_from_face_name (XFRAME (frame), face, false);
    }
  else
    lface = lface_from_face_name (NULL, face, false);

  return lface;
}