Mercurial > emacs
comparison lispref/display.texi @ 71643:e712aec3ce09
(Attribute Functions): Add examples for face-attribute-relative-p.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 05 Jul 2006 17:05:41 +0000 |
parents | 3184a667d8db |
children | 1c3e611b4833 138ce2701550 |
comparison
equal
deleted
inserted
replaced
71642:fa9d190c602e | 71643:e712aec3ce09 |
---|---|
2114 with older Emacs versions, you can use the following functions to set | 2114 with older Emacs versions, you can use the following functions to set |
2115 and examine the face attributes which existed in those versions. | 2115 and examine the face attributes which existed in those versions. |
2116 | 2116 |
2117 @tindex face-attribute-relative-p | 2117 @tindex face-attribute-relative-p |
2118 @defun face-attribute-relative-p attribute value | 2118 @defun face-attribute-relative-p attribute value |
2119 This function returns non-@code{nil} if @var{value}, when used as | 2119 This function returns non-@code{nil} if @var{value}, when used as the |
2120 the value of the face attribute @var{attribute}, is relative (that is, | 2120 value of the face attribute @var{attribute}, is relative. This means |
2121 if it modifies an underlying or inherited value of @var{attribute}). | 2121 it would modify, rather than completely override, any value that comes |
2122 from a subsequent face in the face list or that is inherited from | |
2123 another face. | |
2124 | |
2125 @code{unspecified} is a relative value for all attributes. | |
2126 For @code{:height}, floating point values are also relative. | |
2127 | |
2128 For example: | |
2129 | |
2130 @example | |
2131 (read-face-name "Describe face" "= `default' face" t) | |
2132 @end example | |
2133 | |
2134 prompts with @samp{Describe face (default = `default' face): }. | |
2122 @end defun | 2135 @end defun |
2123 | 2136 |
2124 @tindex merge-face-attribute | 2137 @tindex merge-face-attribute |
2125 @defun merge-face-attribute attribute value1 value2 | 2138 @defun merge-face-attribute attribute value1 value2 |
2126 If @var{value1} is a relative value for the face attribute | 2139 If @var{value1} is a relative value for the face attribute |