aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorChong Yidong2005-11-18 02:51:12 +0000
committerChong Yidong2005-11-18 02:51:12 +0000
commitce8d4e00b726cbc3fa9debcc84f19f752cf81dca (patch)
tree4467302c4dc8ce5902e7cf9643c3dfbf2928c790 /lispref
parentf1a5d0e203d5f2ac10c8d8f8119ed4690153d530 (diff)
downloademacs-ce8d4e00b726cbc3fa9debcc84f19f752cf81dca.tar.gz
emacs-ce8d4e00b726cbc3fa9debcc84f19f752cf81dca.zip
mention :ignore-defface
Diffstat (limited to 'lispref')
-rw-r--r--lispref/ChangeLog4
-rw-r--r--lispref/display.texi13
2 files changed, 17 insertions, 0 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index d8014b27613..3e07a51a007 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,7 @@
12005-11-17 Chong Yidong <cyd@stupidchicken.com>
2
3 * display.texi (Attribute Functions): Mention :ignore-defface.
4
12005-11-16 Stefan Monnier <monnier@iro.umontreal.ca> 52005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * modes.texi (Minor Mode Conventions): Use custom-set-minor-mode. 7 * modes.texi (Minor Mode Conventions): Use custom-set-minor-mode.
diff --git a/lispref/display.texi b/lispref/display.texi
index 75a64924516..00d9313aa24 100644
--- a/lispref/display.texi
+++ b/lispref/display.texi
@@ -1859,6 +1859,11 @@ the first face fails to specify a particular attribute, that means the
1859next face gets a chance. However, the @code{default} face must 1859next face gets a chance. However, the @code{default} face must
1860specify all attributes. 1860specify all attributes.
1861 1861
1862 Any attribute can have the value @code{:ignore-defface}. The effect
1863of this is identical to @code{unspecified}. It exists because of an
1864technical ambiguity in giving attributes the value @code{unspecified}.
1865@xref{Attribute Functions}.
1866
1862 Some of these font attributes are meaningful only on certain kinds of 1867 Some of these font attributes are meaningful only on certain kinds of
1863displays---if your display cannot handle a certain attribute, the 1868displays---if your display cannot handle a certain attribute, the
1864attribute is ignored. (The attributes @code{:family}, @code{:width}, 1869attribute is ignored. (The attributes @code{:family}, @code{:width},
@@ -2051,6 +2056,14 @@ This function sets one or more attributes of face @var{face}
2051for frame @var{frame}. If @var{frame} is @code{nil}, it sets 2056for frame @var{frame}. If @var{frame} is @code{nil}, it sets
2052the attribute for all frames, and the defaults for new frames. 2057the attribute for all frames, and the defaults for new frames.
2053 2058
2059Unless you know what you're doing, don't set an attribute to
2060@code{unspecified}. This is ambiguous---it is unclear whether it
2061means to unspecify the value stored in the frame-local copies of the
2062face (which means reverting to the original face spec), or the value
2063in the face spec itself. What you probably want is to set the
2064attribute to @code{:ignore-defface}. This forces the attribute value
2065to be acquired from some other face during face merging.
2066
2054The extra arguments @var{arguments} specify the attributes to set, and 2067The extra arguments @var{arguments} specify the attributes to set, and
2055the values for them. They should consist of alternating attribute names 2068the values for them. They should consist of alternating attribute names
2056(such as @code{:family} or @code{:underline}) and corresponding values. 2069(such as @code{:family} or @code{:underline}) and corresponding values.