diff options
| author | Chong Yidong | 2012-11-25 12:50:20 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-11-25 12:50:20 +0800 |
| commit | 1c4f115d4c4eb1aa71c25d21e8bdec2f8da97700 (patch) | |
| tree | 8fb4e906b3cc5455ab45383267eac3c49da5ef44 /etc | |
| parent | 61d841dd15f1f9921e23d93e8a0c282fe568aed1 (diff) | |
| download | emacs-1c4f115d4c4eb1aa71c25d21e8bdec2f8da97700.tar.gz emacs-1c4f115d4c4eb1aa71c25d21e8bdec2f8da97700.zip | |
Revamp face-spec-set to be more analogous to setq for faces.
* lisp/faces.el (face-spec-set): Change the third arg to specify
whether this function is being called via defface, customize, or a
third party. Set the appropriate symbol properties. Clear the
override spec if setting via Custom. Initialize face if necessary.
(face-spec-recalc): Allow theme faces to completely replace the
defface spec, in the same way as custom faces (Bug#8454).
* lisp/cus-edit.el (custom-face-set, custom-face-mark-to-save)
(custom-face-reset-saved, custom-face-mark-to-reset-standard):
Simplify by using the new arg to face-spec-set.
* lisp/cus-face.el (custom-declare-face): Move face initialization to
face-spec-set.
(custom-theme-set-faces): Don't initialize the face name here, as
that is now done in face-spec-set.
* lisp/emacs-lisp/lisp-mode.el (eval-defun-1): When evaluating defface,
reset face-override-spec too, and use custom-declare-face.
Fixes: debbugs:4988
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -84,6 +84,16 @@ spurious warnings about an unused var. | |||
| 84 | 84 | ||
| 85 | * Lisp changes in Emacs 24.4 | 85 | * Lisp changes in Emacs 24.4 |
| 86 | 86 | ||
| 87 | ** Face changes | ||
| 88 | |||
| 89 | *** The `face-spec-set' is now analogous to `setq' for face specs. | ||
| 90 | Its third arg now accepts values specifying exactly which face spec to | ||
| 91 | set (defface, custom, or user spec), and it directly sets the relevant | ||
| 92 | property using the supplied face spec. | ||
| 93 | |||
| 94 | *** Face specs set via Custom themes now replace the `defface' spec | ||
| 95 | rather than inheriting from it (as do face specs set via Customize). | ||
| 96 | |||
| 87 | ** time-to-seconds is not obsolete any more. | 97 | ** time-to-seconds is not obsolete any more. |
| 88 | ** New function special-form-p. | 98 | ** New function special-form-p. |
| 89 | ** Docstrings can be made dynamic by adding a `dynamic-docstring-function' | 99 | ** Docstrings can be made dynamic by adding a `dynamic-docstring-function' |