]> git.eshelyaron.com Git - emacs.git/commitdiff
(custom-theme-set-variables): Sort symbols that are
authorGlenn Morris <rgm@gnu.org>
Fri, 8 Feb 2008 07:59:31 +0000 (07:59 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 8 Feb 2008 07:59:31 +0000 (07:59 +0000)
dependencies before symbols that depend on them.
(custom-enabled-themes): Set after custom-theme-directory.

lisp/ChangeLog
lisp/custom.el

index 85d32ad2f15b94f4a84634a9d856aaceaa274819..6b5790b20103b525f408e523b6fa55b228e676d5 100644 (file)
 
 2008-02-08  Glenn Morris  <rgm@gnu.org>
 
+       * custom.el (custom-theme-set-variables): Sort symbols that are
+       dependencies before symbols that depend on them.
+       (custom-enabled-themes): Set after custom-theme-directory.
+
        * pcmpl-unix.el (top-level): Move provide statement to end.
        (pcmpl-unix-group-file, pcmpl-unix-passwd-file): Remove leading
        `*' from doc-string.  Allow to be nil.
index 7466913eb9a052d962caa9e6c043fbf43b60dcf3..c45ba22c507fa30f2e33bc4d9d76a2a9cb896d27 100644 (file)
@@ -913,6 +913,8 @@ in SYMBOL's list property `theme-value' \(using `custom-push-theme')."
                         (error "Circular custom dependency between `%s' and `%s'"
                                sym1 sym2))
                        (2-then-1 nil)
+                       ;; 1 is a dependency of 2, so needs to be set first.
+                       (1-then-2)
                        ;; Put minor modes and symbols with :require last.
                        ;; Putting minor modes last ensures that the mode
                        ;; function will see other customized values rather
@@ -1104,6 +1106,7 @@ This does not include the `user' theme, which is set by Customize,
 and always takes precedence over other Custom Themes."
   :group 'customize
   :type  '(repeat symbol)
+  :set-after '(custom-theme-directory)  ; so we can find the themes
   :set (lambda (symbol themes)
         ;; Avoid an infinite loop when custom-enabled-themes is
         ;; defined in a theme (e.g. `user').  Enabling the theme sets