]> git.eshelyaron.com Git - emacs.git/commitdiff
Clarify documentation of ':inherit' face attribute
authorEli Zaretskii <eliz@gnu.org>
Sat, 29 Jul 2017 06:57:51 +0000 (09:57 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Jul 2017 06:57:51 +0000 (09:57 +0300)
* doc/lispref/display.texi (Face Attributes): Document the special
treatment of 'unspecified' in the ':inherit' attribute.

doc/lispref/display.texi

index f5c73e55a4f8cb072de6d043d3f3ae51e15e2b61..2ed848adf371f8c6dfe6eb6774d94248250da656 100644 (file)
@@ -2423,7 +2423,9 @@ the values of the @code{:family}, @code{:foundry}, @code{:width},
 The name of a face from which to inherit attributes, or a list of face
 names.  Attributes from inherited faces are merged into the face like
 an underlying face would be, with higher priority than underlying
-faces (@pxref{Displaying Faces}).  If a list of faces is used,
+faces (@pxref{Displaying Faces}).  If the face to inherit from is
+@code{unspecified}, it is treated the same as @code{nil}, since Emacs
+never merges @code{:inherit} attributes.  If a list of faces is used,
 attributes from faces earlier in the list override those from later
 faces.
 @end table