changeset 38657:040e14876399

(custom-set-variables): Set options with :require clauses last.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 02 Aug 2001 10:11:34 +0000
parents eb395a6ad334
children 4b7681b9a9f8
files lisp/custom.el
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/custom.el	Thu Aug 02 09:04:45 2001 +0000
+++ b/lisp/custom.el	Thu Aug 02 10:11:34 2001 +0000
@@ -442,7 +442,16 @@
 			 (error "Circular custom dependency between `%s' and `%s'"
 				sym1 sym2))
 			(1-then-2 t)
-			(t nil))))))
+			(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 (get sym2 'custom-requests)))))))
   (while args
     (let ((entry (car args)))
       (if (listp entry)