aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-08-02 10:11:57 +0000
committerGerd Moellmann2001-08-02 10:11:57 +0000
commitcb3f945fa83c3559eccd040d377f41596b1efe5e (patch)
treebadde1b8a161de3b23426d91863c17c1ed3be7f2
parentfbc7f2a625431d82d0898de4b350e02034eeb9a3 (diff)
downloademacs-cb3f945fa83c3559eccd040d377f41596b1efe5e.tar.gz
emacs-cb3f945fa83c3559eccd040d377f41596b1efe5e.zip
(custom-set-variables): Set options with :require
clauses last.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/custom.el11
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 88cb2175940..854d1722cef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12001-08-02 Gerd Moellmann <gerd@gnu.org> 12001-08-02 Gerd Moellmann <gerd@gnu.org>
2 2
3 * custom.el (custom-set-variables): Set options with :require
4 clauses last.
5
3 * custom.el (defcustom): Doc fix. 6 * custom.el (defcustom): Doc fix.
4 7
5 * Makefile.in (TAGS, TAGS-LISP): Exclude loaddefs.el. 8 * Makefile.in (TAGS, TAGS-LISP): Exclude loaddefs.el.
diff --git a/lisp/custom.el b/lisp/custom.el
index ef083ebb238..8231fd9ab0f 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -442,7 +442,16 @@ COMMENT is a comment string about SYMBOL."
442 (error "Circular custom dependency between `%s' and `%s'" 442 (error "Circular custom dependency between `%s' and `%s'"
443 sym1 sym2)) 443 sym1 sym2))
444 (1-then-2 t) 444 (1-then-2 t)
445 (t nil)))))) 445 (2-then-1 nil)
446 ;; Put symbols with :require last. The macro
447 ;; define-minor-mode generates a defcustom
448 ;; with a :require and a :set, where the
449 ;; setter function calls the mode function.
450 ;; Putting symbols with :require last ensures
451 ;; that the mode function will see other
452 ;; customized values rather than default
453 ;; values.
454 (t (get sym2 'custom-requests)))))))
446 (while args 455 (while args
447 (let ((entry (car args))) 456 (let ((entry (car args)))
448 (if (listp entry) 457 (if (listp entry)