Mercurial > emacs
diff etc/NEWS @ 112164:afa244de82cd
Load themes using `load', querying if theme file not known safe.
* custom.el (custom-safe-theme-files): New defcustom.
(custom-theme-load-confirm): New function.
(load-theme): Load theme using `load', confirming with
custom-theme-load-confirm if necessary.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 08 Jan 2011 14:19:55 -0500 |
parents | b30a0deacfdf |
children | 2b3091d14255 |
line wrap: on
line diff
--- a/etc/NEWS Sat Jan 08 14:17:23 2011 -0500 +++ b/etc/NEWS Sat Jan 08 14:19:55 2011 -0500 @@ -219,6 +219,10 @@ is to search in `custom-theme-directory', followed by a built-in theme directory named "themes/" in `data-directory'. +*** New option `custom-safe-theme-files' lists known-safe theme files. +If a theme is not in this list, Emacs queries before loading it. +The default value treats all themes included in Emacs as safe. + ** The user option `remote-file-name-inhibit-cache' controls whether the remote file-name cache is used for read access.