aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-11 01:05:17 +0000
committerRichard M. Stallman2005-07-11 01:05:17 +0000
commitd2dafb85a5468d81d357f1969525d6b60581b704 (patch)
treee862f30ea86f5e7068de8883aa4e81bef88982ba
parent46ce5febbd8abb72c2c14f7fce8f54564420ae7b (diff)
downloademacs-d2dafb85a5468d81d357f1969525d6b60581b704.tar.gz
emacs-d2dafb85a5468d81d357f1969525d6b60581b704.zip
Fix previous change.
-rw-r--r--lisp/custom.el14
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index be65c865f06..b0c4877d5c8 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -983,10 +983,16 @@ Every theme X has a property `provide-theme' whose value is \"X-theme\".
983;; settings of enabled themes that apply to it. 983;; settings of enabled themes that apply to it.
984;; The property value is a list of settings, each with the form 984;; The property value is a list of settings, each with the form
985;; (THEME MODE VALUE). THEME, MODE and VALUE are as above. 985;; (THEME MODE VALUE). THEME, MODE and VALUE are as above.
986;; Each of these lists is ordered by decreasing theme precedence.
987;; Thus, the first element is always the one that is in effect.
986 988
987;; When a theme is disabled, its settings are removed from the 989;; Disabling a theme removes its settings from the `theme-value' and
988;; `theme-value' and `theme-face' properties, but the 990;; `theme-face' properties, but the theme's own `theme-settings'
989;; theme's own `theme-settings' property remains unchanged. 991;; property remains unchanged.
992
993;; Loading a theme implicitly enables it. Enabling a theme adds its
994;; settings to the symbols' `theme-value' and `theme-face' properties,
995;; or moves them to the front of those lists if they're already present.
990 996
991(defvar custom-loaded-themes nil 997(defvar custom-loaded-themes nil
992 "Custom themes that have been loaded.") 998 "Custom themes that have been loaded.")
@@ -1101,7 +1107,7 @@ If it is already enabled, just give it highest precedence (after `user')."
1101 (if (eq prop 'theme-value) 1107 (if (eq prop 'theme-value)
1102 (custom-theme-recalc-variable symbol) 1108 (custom-theme-recalc-variable symbol)
1103 (custom-theme-recalc-face symbol))))) 1109 (custom-theme-recalc-face symbol)))))
1104 (push theme custom-enabled-themes) 1110 (push theme (delq theme custom-enabled-themes))
1105 ;; `user' must always be the highest-precedence enabled theme. 1111 ;; `user' must always be the highest-precedence enabled theme.
1106 (unless (eq theme 'user) 1112 (unless (eq theme 'user)
1107 (custom-enable-theme 'user))) 1113 (custom-enable-theme 'user)))