]> code.delx.au - gnu-emacs/blobdiff - lisp/faces.el
Comint, term, and compile now set EMACS
[gnu-emacs] / lisp / faces.el
index d612461239e9b18e94da31638cfcea21f689c5ae..612bd1677bbf86d12a11a5f01980a03f7c769ed6 100644 (file)
@@ -1,6 +1,6 @@
 ;;; faces.el --- Lisp faces
 
-;; Copyright (C) 1992-1996, 1998-2015 Free Software Foundation, Inc.
+;; Copyright (C) 1992-1996, 1998-2016 Free Software Foundation, Inc.
 
 ;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: internal
@@ -276,7 +276,7 @@ If FRAME is omitted or nil, use the selected frame."
 (defun face-list-p (face-or-list)
   "True if FACE-OR-LIST is a list of faces.
 Return nil if FACE-OR-LIST is a non-nil atom, or a cons cell whose car
-is either 'foreground-color, 'background-color, or a keyword."
+is either `foreground-color', `background-color', or a keyword."
   ;; The logic of merge_face_ref (xfaces.c) is recreated here.
   (and (listp face-or-list)
        (not (memq (car face-or-list)
@@ -1971,9 +1971,7 @@ unnamed faces (e.g, `foreground-color')."
                         (get-char-property (point) 'font-lock-face))
                    (get-char-property (point) 'face)))
         (found nil))
-    ;; The attribute might be a face, a list of faces, or a list of
-    ;; attributes that make a face.  Normalize it to a list of faces.
-    (dolist (face (if (and (listp faces) (facep (car faces)))
+    (dolist (face (if (face-list-p faces)
                       faces
                     (list faces)))
       (cond (found)