diff options
| author | Glenn Morris | 2008-02-08 07:59:31 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-02-08 07:59:31 +0000 |
| commit | 3d0c2a29efd216c8161897a745d7e5e9e4297466 (patch) | |
| tree | 236fe979028858508f28c4f05789b34525154cb3 | |
| parent | 507f2b9152447e865ad00f3c978bdb74f76f1ab2 (diff) | |
| download | emacs-3d0c2a29efd216c8161897a745d7e5e9e4297466.tar.gz emacs-3d0c2a29efd216c8161897a745d7e5e9e4297466.zip | |
(custom-theme-set-variables): Sort symbols that are
dependencies before symbols that depend on them.
(custom-enabled-themes): Set after custom-theme-directory.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/custom.el | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 85d32ad2f15..6b5790b2010 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -11,6 +11,10 @@ | |||
| 11 | 11 | ||
| 12 | 2008-02-08 Glenn Morris <rgm@gnu.org> | 12 | 2008-02-08 Glenn Morris <rgm@gnu.org> |
| 13 | 13 | ||
| 14 | * custom.el (custom-theme-set-variables): Sort symbols that are | ||
| 15 | dependencies before symbols that depend on them. | ||
| 16 | (custom-enabled-themes): Set after custom-theme-directory. | ||
| 17 | |||
| 14 | * pcmpl-unix.el (top-level): Move provide statement to end. | 18 | * pcmpl-unix.el (top-level): Move provide statement to end. |
| 15 | (pcmpl-unix-group-file, pcmpl-unix-passwd-file): Remove leading | 19 | (pcmpl-unix-group-file, pcmpl-unix-passwd-file): Remove leading |
| 16 | `*' from doc-string. Allow to be nil. | 20 | `*' from doc-string. Allow to be nil. |
diff --git a/lisp/custom.el b/lisp/custom.el index 7466913eb9a..c45ba22c507 100644 --- a/lisp/custom.el +++ b/lisp/custom.el | |||
| @@ -913,6 +913,8 @@ in SYMBOL's list property `theme-value' \(using `custom-push-theme')." | |||
| 913 | (error "Circular custom dependency between `%s' and `%s'" | 913 | (error "Circular custom dependency between `%s' and `%s'" |
| 914 | sym1 sym2)) | 914 | sym1 sym2)) |
| 915 | (2-then-1 nil) | 915 | (2-then-1 nil) |
| 916 | ;; 1 is a dependency of 2, so needs to be set first. | ||
| 917 | (1-then-2) | ||
| 916 | ;; Put minor modes and symbols with :require last. | 918 | ;; Put minor modes and symbols with :require last. |
| 917 | ;; Putting minor modes last ensures that the mode | 919 | ;; Putting minor modes last ensures that the mode |
| 918 | ;; function will see other customized values rather | 920 | ;; function will see other customized values rather |
| @@ -1104,6 +1106,7 @@ This does not include the `user' theme, which is set by Customize, | |||
| 1104 | and always takes precedence over other Custom Themes." | 1106 | and always takes precedence over other Custom Themes." |
| 1105 | :group 'customize | 1107 | :group 'customize |
| 1106 | :type '(repeat symbol) | 1108 | :type '(repeat symbol) |
| 1109 | :set-after '(custom-theme-directory) ; so we can find the themes | ||
| 1107 | :set (lambda (symbol themes) | 1110 | :set (lambda (symbol themes) |
| 1108 | ;; Avoid an infinite loop when custom-enabled-themes is | 1111 | ;; Avoid an infinite loop when custom-enabled-themes is |
| 1109 | ;; defined in a theme (e.g. `user'). Enabling the theme sets | 1112 | ;; defined in a theme (e.g. `user'). Enabling the theme sets |