comparison lispref/display.texi @ 77360:467b5b7572bd

(Attribute Functions): Fix example for face-attribute-relative-p.
author Richard M. Stallman <rms@gnu.org>
date Sat, 21 Apr 2007 08:57:30 +0000
parents 4d7a5d9bbe76
children 170b9bea2267 e6fdae9180d4
comparison
equal deleted inserted replaced
77359:d57bf0ca865e 77360:467b5b7572bd
2142 For @code{:height}, floating point values are also relative. 2142 For @code{:height}, floating point values are also relative.
2143 2143
2144 For example: 2144 For example:
2145 2145
2146 @example 2146 @example
2147 (read-face-name "Describe face" "= `default' face" t) 2147 (face-attribute-relative-p :height 2.0)
2148 @result{} t
2148 @end example 2149 @end example
2149
2150 prompts with @samp{Describe face (default = `default' face): }.
2151 @end defun 2150 @end defun
2152 2151
2153 @defun merge-face-attribute attribute value1 value2 2152 @defun merge-face-attribute attribute value1 value2
2154 If @var{value1} is a relative value for the face attribute 2153 If @var{value1} is a relative value for the face attribute
2155 @var{attribute}, returns it merged with the underlying value 2154 @var{attribute}, returns it merged with the underlying value