diff options
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | lispref/display.texi | 13 |
3 files changed, 22 insertions, 0 deletions
| @@ -4935,6 +4935,11 @@ was inconsistent with the face behavior under X. | |||
| 4935 | *** `set-fontset-font', `fontset-info', `fontset-font' now operate on | 4935 | *** `set-fontset-font', `fontset-info', `fontset-font' now operate on |
| 4936 | the default fontset if the argument NAME is nil.. | 4936 | the default fontset if the argument NAME is nil.. |
| 4937 | 4937 | ||
| 4938 | +++ | ||
| 4939 | *** In `set-face-attribute', you can assign any attribute the value | ||
| 4940 | `:ignore-defface'. This forces the attribute value to be acquired | ||
| 4941 | from some other face during face merging. | ||
| 4942 | |||
| 4938 | ** Font-Lock changes: | 4943 | ** Font-Lock changes: |
| 4939 | 4944 | ||
| 4940 | +++ | 4945 | +++ |
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. |