aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2012-03-21 15:02:13 +0800
committerChong Yidong2012-03-21 15:02:13 +0800
commitfb5b8aca9928223c3fef042f1de4b50cd08fde43 (patch)
treeb1da6f261d64e95a4bbdf0566157c3919185adb2 /src
parentdc9924b8bd30e0f3f43b552070f6cac5c11942f7 (diff)
downloademacs-fb5b8aca9928223c3fef042f1de4b50cd08fde43.tar.gz
emacs-fb5b8aca9928223c3fef042f1de4b50cd08fde43.zip
Updates to Display chapter of Lisp manual.
* doc/lispref/display.texi (The Echo Area): Add xref to Output Streams. (Displaying Messages): Improve doc of message. (Echo Area Customization, Invisible Text): Copyedits. (Invisible Text): Mention that spec comparison is done with eq. (Width): Improve doc of char-width. (Faces): Recommend using symbol instead of string for face name. Minor clarifications. (Defining Faces): Copyedits. Update face example. (Attribute Functions): Mark set-face-foreground etc as commands. (Face Remapping): Mention text-scale-adjust. Clarify face-remapping-alist and related docs. (Face Functions): Don't document make-face or copy-face. * lisp/faces.el (make-face, make-empty-face, copy-face): * lisp/face-remap.el (face-remap-add-relative, face-remap-set-base): Doc fixes. * src/xfaces.c (Vface_remapping_alist): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xfaces.c36
2 files changed, 23 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4f32309562b..7a97859ba63 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-03-21 Chong Yidong <cyd@gnu.org>
2
3 * xfaces.c (Vface_remapping_alist): Doc fix.
4
12012-03-20 Eli Zaretskii <eliz@gnu.org> 52012-03-20 Eli Zaretskii <eliz@gnu.org>
2 6
3 * w32proc.c (Fw32_set_console_codepage) 7 * w32proc.c (Fw32_set_console_codepage)
diff --git a/src/xfaces.c b/src/xfaces.c
index bcb04188aeb..476fb1e0366 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6599,20 +6599,22 @@ ignore. */);
6599 doc: /* Alist of face remappings. 6599 doc: /* Alist of face remappings.
6600Each element is of the form: 6600Each element is of the form:
6601 6601
6602 (FACE REPLACEMENT...), 6602 (FACE . REPLACEMENT),
6603 6603
6604which causes display of the face FACE to use REPLACEMENT... instead. 6604which causes display of the face FACE to use REPLACEMENT instead.
6605REPLACEMENT... is interpreted the same way as the value of a `face' 6605REPLACEMENT is a face specification, i.e. one of the following:
6606text property: it may be (1) A face name, (2) A list of face names,
6607(3) A property-list of face attribute/value pairs, or (4) A list of
6608face names or lists containing face attribute/value pairs.
6609 6606
6610Multiple entries in REPLACEMENT... are merged together to form the final 6607 (1) a face name
6611result, with faces or attributes earlier in the list taking precedence 6608 (2) a property list of attribute/value pairs, or
6612over those that are later. 6609 (3) a list in which each element has the form of (1) or (2).
6613 6610
6614Face-name remapping cycles are suppressed; recursive references use the 6611List values for REPLACEMENT are merged to form the final face
6615underlying face instead of the remapped face. So a remapping of the form: 6612specification, with earlier entries taking precedence, in the same as
6613as in the `face' text property.
6614
6615Face-name remapping cycles are suppressed; recursive references use
6616the underlying face instead of the remapped face. So a remapping of
6617the form:
6616 6618
6617 (FACE EXTRA-FACE... FACE) 6619 (FACE EXTRA-FACE... FACE)
6618 6620
@@ -6620,13 +6622,13 @@ or:
6620 6622
6621 (FACE (FACE-ATTR VAL ...) FACE) 6623 (FACE (FACE-ATTR VAL ...) FACE)
6622 6624
6623will cause EXTRA-FACE... or (FACE-ATTR VAL ...) to be _merged_ with the 6625causes EXTRA-FACE... or (FACE-ATTR VAL ...) to be _merged_ with the
6624existing definition of FACE. Note that for the default face, this isn't 6626existing definition of FACE. Note that this isn't necessary for the
6625necessary, as every face inherits from the default face. 6627default face, since every face inherits from the default face.
6626 6628
6627Making this variable buffer-local is a good way to allow buffer-specific 6629If this variable is made buffer-local, the face remapping takes effect
6628face definitions. For instance, the mode my-mode could define a face 6630only in that buffer. For instance, the mode my-mode could define a
6629`my-mode-default', and then in the mode setup function, do: 6631face `my-mode-default', and then in the mode setup function, do:
6630 6632
6631 (set (make-local-variable 'face-remapping-alist) 6633 (set (make-local-variable 'face-remapping-alist)
6632 '((default my-mode-default)))). 6634 '((default my-mode-default)))).