Mercurial > emacs
comparison doc/lispref/display.texi @ 98972:8860f1bf41c3
(Attribute Functions): Document `face-all-attributes'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Tue, 21 Oct 2008 12:14:44 +0000 |
parents | c5da883d1e87 |
children | e4a7c2a7c2eb |
comparison
equal
deleted
inserted
replaced
98971:52f8c8d92f96 | 98972:8860f1bf41c3 |
---|---|
2215 (face-attribute-relative-p :height 2.0) | 2215 (face-attribute-relative-p :height 2.0) |
2216 @result{} t | 2216 @result{} t |
2217 @end example | 2217 @end example |
2218 @end defun | 2218 @end defun |
2219 | 2219 |
2220 @defun face-all-attributes face &optional frame | |
2221 This function returns an alist of attributes of @var{face}. The | |
2222 elements of the result are name-value pairs of the form | |
2223 @w{@code{(@var{attr-name} . @var{attr-value})}}. Optional argument | |
2224 @var{frame} specifies the frame whose definition of @var{face} to | |
2225 return; if omitted or @code{nil}, the returned value describes the | |
2226 default attributes of @var{face} for newly created frames. | |
2227 @end defun | |
2228 | |
2220 @defun merge-face-attribute attribute value1 value2 | 2229 @defun merge-face-attribute attribute value1 value2 |
2221 If @var{value1} is a relative value for the face attribute | 2230 If @var{value1} is a relative value for the face attribute |
2222 @var{attribute}, returns it merged with the underlying value | 2231 @var{attribute}, returns it merged with the underlying value |
2223 @var{value2}; otherwise, if @var{value1} is an absolute value for the | 2232 @var{value2}; otherwise, if @var{value1} is an absolute value for the |
2224 face attribute @var{attribute}, returns @var{value1} unchanged. | 2233 face attribute @var{attribute}, returns @var{value1} unchanged. |