Show
Ignore:
Timestamp:
09/09/06 16:30:10 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/custom.el

    r4131 r4161  
    875875in SYMBOL's list property `theme-value' \(using `custom-push-theme')." 
    876876  (custom-check-theme theme) 
     877  
     878  ;; Process all the needed autoloads before anything else, so that the 
     879  ;; subsequent code has all the info it needs (e.g. which var corresponds 
     880  ;; to a minor mode), regardless of the ordering of the variables. 
     881  (dolist (entry args) 
     882    (let* ((symbol (indirect-variable (nth 0 entry)))) 
     883      (unless (or (get symbol 'standard-value) 
     884                  (memq (get symbol 'custom-autoload) '(nil noset))) 
     885        ;; This symbol needs to be autoloaded, even just for a `set'. 
     886        (custom-load-symbol symbol)))) 
     887  
     888  ;; Move minor modes and variables with explicit requires to the end. 
    877889  (setq args 
    878890        (sort args 
     
    905917              (put symbol 'custom-requests requests) 
    906918              (mapc 'require requests)) 
    907             (unless (or (get symbol 'standard-value) 
    908                         (memq (get symbol 'custom-autoload) '(nil noset))) 
    909               ;; This symbol needs to be autoloaded, even just for a `set'. 
    910               (custom-load-symbol symbol)) 
    911919            (setq set (or (get symbol 'custom-set) 'custom-set-default)) 
    912920            (put symbol 'saved-value (list value))