diff options
| author | Chong Yidong | 2005-11-18 02:51:12 +0000 |
|---|---|---|
| committer | Chong Yidong | 2005-11-18 02:51:12 +0000 |
| commit | ce8d4e00b726cbc3fa9debcc84f19f752cf81dca (patch) | |
| tree | 4467302c4dc8ce5902e7cf9643c3dfbf2928c790 /lispref | |
| parent | f1a5d0e203d5f2ac10c8d8f8119ed4690153d530 (diff) | |
| download | emacs-ce8d4e00b726cbc3fa9debcc84f19f752cf81dca.tar.gz emacs-ce8d4e00b726cbc3fa9debcc84f19f752cf81dca.zip | |
mention :ignore-defface
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | lispref/display.texi | 13 |
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 @@ | |||
| 1 | 2005-11-17 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * display.texi (Attribute Functions): Mention :ignore-defface. | ||
| 4 | |||
| 1 | 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2005-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 | |||
| 1859 | next face gets a chance. However, the @code{default} face must | 1859 | next face gets a chance. However, the @code{default} face must |
| 1860 | specify all attributes. | 1860 | specify all attributes. |
| 1861 | 1861 | ||
| 1862 | Any attribute can have the value @code{:ignore-defface}. The effect | ||
| 1863 | of this is identical to @code{unspecified}. It exists because of an | ||
| 1864 | technical 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 |
| 1863 | displays---if your display cannot handle a certain attribute, the | 1868 | displays---if your display cannot handle a certain attribute, the |
| 1864 | attribute is ignored. (The attributes @code{:family}, @code{:width}, | 1869 | attribute is ignored. (The attributes @code{:family}, @code{:width}, |
| @@ -2051,6 +2056,14 @@ This function sets one or more attributes of face @var{face} | |||
| 2051 | for frame @var{frame}. If @var{frame} is @code{nil}, it sets | 2056 | for frame @var{frame}. If @var{frame} is @code{nil}, it sets |
| 2052 | the attribute for all frames, and the defaults for new frames. | 2057 | the attribute for all frames, and the defaults for new frames. |
| 2053 | 2058 | ||
| 2059 | Unless you know what you're doing, don't set an attribute to | ||
| 2060 | @code{unspecified}. This is ambiguous---it is unclear whether it | ||
| 2061 | means to unspecify the value stored in the frame-local copies of the | ||
| 2062 | face (which means reverting to the original face spec), or the value | ||
| 2063 | in the face spec itself. What you probably want is to set the | ||
| 2064 | attribute to @code{:ignore-defface}. This forces the attribute value | ||
| 2065 | to be acquired from some other face during face merging. | ||
| 2066 | |||
| 2054 | The extra arguments @var{arguments} specify the attributes to set, and | 2067 | The extra arguments @var{arguments} specify the attributes to set, and |
| 2055 | the values for them. They should consist of alternating attribute names | 2068 | the 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. |