]> code.delx.au - gnu-emacs/commit
* custom.el (custom-theme-load-path): Demote to defvar
authorArtur Malabarba <bruce.connor.am@gmail.com>
Fri, 16 Oct 2015 15:10:38 +0000 (16:10 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Fri, 16 Oct 2015 15:14:26 +0000 (16:14 +0100)
commit995b69918bddb58536b5d09d2127179314e1fffb
treee649d47e751bf7ed79e35fc54a2f891256df2783
parentce47ac81f6aaa347942fb7f7173b349bd1a231c1
* custom.el (custom-theme-load-path): Demote to defvar

`custom-theme-load-path' was a defcustom, but it shouldn't be for the
same reason that `load-path' shouldn't.  Setting it via the customize
interface is a trap for the user.

Installed themes commonly add themselves to this variable, which means
its value is not fit for being saved (it will permanently remember dirs
that don't exist anymore).

This is aggravated by the fact that Emacs always applies the `user'
theme on top of any theme that's loaded, since this will apply the old
variable value and remove any new directories that had been recently
added by themes themselves.

Not to mention, we already have `custom-theme-directory', which is safe
to customize.
lisp/custom.el