diff options
| author | Daniel Colascione | 2018-06-16 15:42:56 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2018-06-16 15:44:23 -0700 |
| commit | aabaa9f8c8b79df44887392fcaa199e17b016afd (patch) | |
| tree | 7c7f15543866bad5acaa5ca9ce49877bfb5740fb /etc | |
| parent | 6021e1db92e355fbf5c66765fb0bc4658a80180a (diff) | |
| download | emacs-aabaa9f8c8b79df44887392fcaa199e17b016afd.tar.gz emacs-aabaa9f8c8b79df44887392fcaa199e17b016afd.zip | |
Apply non-user themes only when asked
Theme settings now generally aren't actually applied until a call to
`enable-theme-, either one made explicitly or implicitly through
`load-theme' with NO-ENABLE nil. This change has the effect of not
applying theme changes just because we load a lisp file containing a
theme specification. The previous behavior is preserved for the
special case of the `user' theme, which is frequently used for
ad-hoc customization.
* lisp/cus-face.el (custom-theme-set-faces): Call
`custom--should-apply-setting' to decide whether to apply
a setting.
* lisp/custom.el (custom--should-apply-setting): New function.
(custom--inhibit-theme-enable): Add `apply-only-user' option;
default to it.
(custom-push-theme, custom-theme-set-variables): Call
`custom--should-apply-setting' to decide whether to apply
a setting.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -518,6 +518,15 @@ names" in the Tramp manual for full documentation of these facilities. | |||
| 518 | 518 | ||
| 519 | * Incompatible Lisp Changes in Emacs 27.1 | 519 | * Incompatible Lisp Changes in Emacs 27.1 |
| 520 | 520 | ||
| 521 | +++ | ||
| 522 | ** Theme settings generally aren't actually applied until a call to | ||
| 523 | `enable-theme-, either one made explicitly or implicitly through | ||
| 524 | `load-theme' with NO-ENABLE nil. This change has the effect of not | ||
| 525 | applying theme changes just because we load a lisp file containing a | ||
| 526 | theme specification. The previous behavior is preserved for the | ||
| 527 | special case of the `user' theme, which is frequently used for | ||
| 528 | ad-hoc customization. | ||
| 529 | |||
| 521 | ** The 'repetitions' argument of 'benchmark-run' can now also be a variable. | 530 | ** The 'repetitions' argument of 'benchmark-run' can now also be a variable. |
| 522 | ** The FILENAME argument to 'file-name-base' is now mandatory and no | 531 | ** The FILENAME argument to 'file-name-base' is now mandatory and no |
| 523 | longer defaults to 'buffer-file-name'. | 532 | longer defaults to 'buffer-file-name'. |