aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2019-05-04 09:52:11 +0300
committerEli Zaretskii2019-05-04 09:52:11 +0300
commite93d651b492bdf4432d5ea8b885de93a171c8dd5 (patch)
tree484369d583e71afba0ff49e3306909101f70eb53 /src
parentb5376e0ebd7b62f00c1b64aef87cd8d96cfbc71a (diff)
downloademacs-e93d651b492bdf4432d5ea8b885de93a171c8dd5.tar.gz
emacs-e93d651b492bdf4432d5ea8b885de93a171c8dd5.zip
; * src/xfaces.c (merge_face_ref): Improve commentary.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 7e04c0e9953..5c2414b7b0e 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -2265,11 +2265,12 @@ filter_face_ref (Lisp_Object face_ref,
2265} 2265}
2266 2266
2267/* Merge face attributes from the lisp `face reference' FACE_REF on 2267/* Merge face attributes from the lisp `face reference' FACE_REF on
2268 frame F into the face attribute vector TO. If ERR_MSGS, 2268 frame F into the face attribute vector TO as appropriate for
2269 problems with FACE_REF cause an error message to be shown. Return 2269 window W; W is used only for filtering face specs. If ERR_MSGS
2270 true if no errors occurred (regardless of the value of ERR_MSGS). 2270 is non-zero, problems with FACE_REF cause an error message to be
2271 Use NAMED_MERGE_POINTS to detect loops in face inheritance or 2271 shown. Return true if no errors occurred (regardless of the value
2272 list structure; it may be 0 for most callers. 2272 of ERR_MSGS). Use NAMED_MERGE_POINTS to detect loops in face
2273 inheritance or list structure; it may be 0 for most callers.
2273 2274
2274 FACE_REF may be a single face specification or a list of such 2275 FACE_REF may be a single face specification or a list of such
2275 specifications. Each face specification can be: 2276 specifications. Each face specification can be:
@@ -2286,9 +2287,10 @@ filter_face_ref (Lisp_Object face_ref,
2286 2287
2287 4. Conses of the form 2288 4. Conses of the form
2288 (:filtered (:window PARAMETER VALUE) FACE-SPECIFICATION), 2289 (:filtered (:window PARAMETER VALUE) FACE-SPECIFICATION),
2289 which applies FACE-SPECIFICATION only if the 2290 which applies FACE-SPECIFICATION only if the given face attributes
2290 given face attributes are being evaluated in the context of a 2291 are being evaluated in the context of a window with a parameter
2291 window with a parameter named PARAMETER being EQ VALUE. 2292 named PARAMETER being EQ VALUE. In this case, W specifies the window
2293 for which the filtered face spec is to be evaluated.
2292 2294
2293 5. nil, which means to merge nothing. 2295 5. nil, which means to merge nothing.
2294 2296