diff options
| author | Chong Yidong | 2005-11-18 02:25:24 +0000 |
|---|---|---|
| committer | Chong Yidong | 2005-11-18 02:25:24 +0000 |
| commit | fbe8d00750649d0df10023d0bebd06c9aec3248d (patch) | |
| tree | c6ef0c0094a771eddd860baac53a3c6f4e415913 | |
| parent | 2ff10663846ffc1b994504361767cf1435379026 (diff) | |
| download | emacs-fbe8d00750649d0df10023d0bebd06c9aec3248d.tar.gz emacs-fbe8d00750649d0df10023d0bebd06c9aec3248d.zip | |
* faces.el (face-attribute, set-face-attribute): Mention existence
of `:ignore-defface' setting in docstring.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/faces.el | 16 |
2 files changed, 16 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4f748d561cc..03ba7c9ed18 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-11-17 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * faces.el (face-attribute, set-face-attribute): Mention existence | ||
| 4 | of `:ignore-defface' setting in docstring. | ||
| 5 | |||
| 1 | 2005-11-17 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2005-11-17 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * simple.el (completion-setup-function): Fix last change. | 8 | * simple.el (completion-setup-function): Fix last change. |
diff --git a/lisp/faces.el b/lisp/faces.el index 85d8e882f22..a60805e4301 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -357,11 +357,12 @@ If the optional argument FRAME is given, report on face FACE in that frame. | |||
| 357 | If FRAME is t, report on the defaults for face FACE (for new frames). | 357 | If FRAME is t, report on the defaults for face FACE (for new frames). |
| 358 | If FRAME is omitted or nil, use the selected frame. | 358 | If FRAME is omitted or nil, use the selected frame. |
| 359 | 359 | ||
| 360 | If INHERIT is nil, only attributes directly defined by FACE are considered, | 360 | If INHERIT is nil, only attributes directly defined by FACE are |
| 361 | so the return value may be `unspecified', or a relative value. | 361 | considered, so the return value may be `unspecified', |
| 362 | `:ignore-defface', or a relative value. | ||
| 362 | If INHERIT is non-nil, FACE's definition of ATTRIBUTE is merged with the | 363 | If INHERIT is non-nil, FACE's definition of ATTRIBUTE is merged with the |
| 363 | faces specified by its `:inherit' attribute; however the return value | 364 | faces specified by its `:inherit' attribute; however the return value |
| 364 | may still be `unspecified' or relative. | 365 | may still be relative. |
| 365 | If INHERIT is a face or a list of faces, then the result is further merged | 366 | If INHERIT is a face or a list of faces, then the result is further merged |
| 366 | with that face (or faces), until it becomes specified and absolute. | 367 | with that face (or faces), until it becomes specified and absolute. |
| 367 | 368 | ||
| @@ -560,8 +561,13 @@ the default for new frames (this is done automatically each time an | |||
| 560 | attribute is changed on all frames). | 561 | attribute is changed on all frames). |
| 561 | 562 | ||
| 562 | ARGS must come in pairs ATTRIBUTE VALUE. ATTRIBUTE must be a valid | 563 | ARGS must come in pairs ATTRIBUTE VALUE. ATTRIBUTE must be a valid |
| 563 | face attribute name. All attributes can be set to `unspecified'; | 564 | face attribute name. |
| 564 | this fact is not further mentioned below. | 565 | |
| 566 | Unless you're certain you know what you're doing, don't set an | ||
| 567 | attribute to `unspecified' . To make a face ignore the attribute | ||
| 568 | given in the defface spec, assign it the value `:ignore-defface'. | ||
| 569 | You can do this for any attribute; this fact is not further | ||
| 570 | mentioned below. | ||
| 565 | 571 | ||
| 566 | The following attributes are recognized: | 572 | The following attributes are recognized: |
| 567 | 573 | ||