aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2005-08-24 11:49:07 +0000
committerStefan Monnier <[email protected]>2005-08-24 11:49:07 +0000
commitb6790c3eec383718d9918c95e058581f75b1368d (patch)
tree9616869912c0a8fbbc241d9323f0459025d2ba53 /lisp
parent55b039c3f9c0ea5124a0b0a45e0f60014369bf8e (diff)
(custom-theme-set-variables): Sort minor modes last.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/custom.el16
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index 38b3355c2c..0831535f18 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -726,15 +726,13 @@ 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)
- ;; Put symbols with :require last. The macro
- ;; define-minor-mode generates a defcustom
- ;; with a :require and a :set, where the
- ;; setter function calls the mode function.
- ;; Putting symbols with :require last ensures
- ;; that the mode function will see other
- ;; customized values rather than default
- ;; values.
- (t (nth 3 a2)))))))
+ ;; Put minor modes and symbols with :require last.
+ ;; Putting minor modes last ensures that the mode
+ ;; function will see other customized values rather
+ ;; than default values.
+ (t (or (nth 3 a2)
+ (eq (get sym2 'custom-set)
+ 'custom-set-minor-mode))))))))
(while args
(let ((entry (car args)))
(if (listp entry)