]> git.eshelyaron.com Git - emacs.git/commit
Decouple require-theme from load-theme
authorBasil L. Contovounesios <contovob@tcd.ie>
Tue, 2 Mar 2021 14:35:50 +0000 (14:35 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Thu, 4 Mar 2021 15:40:35 +0000 (15:40 +0000)
commit8e759d60cc234d4beb471dbb46f91d8ca3a20066
tree812b6f56f6d5c1b14e83223f875fbaf58a076fcc
parent358c6c9b95a5fd77edb1538f5fec5021a03de94a
Decouple require-theme from load-theme

* lisp/custom.el (require-theme): Refashion after 'require', as a
function for loading only named features.  Do not call
load-theme (bug#45068).
* etc/NEWS: Update its announcement accordingly.
* doc/lispref/customize.texi (Custom Themes): Document it.

* etc/themes/modus-operandi-theme.el:
* etc/themes/modus-vivendi-theme.el: Remove redundant calls to
'provide'.

* test/lisp/custom-tests.el (custom-tests--with-temp-dir): New
macro.
(custom-theme--load-path): Use it.
(custom-tests-require-theme): New test.
doc/lispref/customize.texi
etc/NEWS
etc/themes/modus-operandi-theme.el
etc/themes/modus-vivendi-theme.el
lisp/custom.el
test/lisp/custom-tests.el