diff lisp/emacs-lisp/autoload.el @ 71874:e727167b07e4

(make-autoload): Remove special handling of minor modes, redundant with the custom-autoload line above.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 13 Jul 2006 18:13:06 +0000
parents 29150c5d541b
children e768c05d6e71
line wrap: on
line diff
--- a/lisp/emacs-lisp/autoload.el	Thu Jul 13 14:45:10 2006 +0000
+++ b/lisp/emacs-lisp/autoload.el	Thu Jul 13 18:13:06 2006 +0000
@@ -124,17 +124,7 @@
 	    )
 	`(progn
 	   (defvar ,varname ,init ,doc)
-	   (custom-autoload ',varname ,file)
-           ;; The use of :require in a defcustom can be annoying, especially
-           ;; when defcustoms are moved from one file to another between
-           ;; releases because the :require arg gets placed in the user's
-           ;; .emacs.  In order for autoloaded minor modes not to need the
-           ;; use of :require, we arrange to store their :setter.
-           ,(let ((setter (condition-case nil
-                              (cadr (memq :set form))
-                            (error nil))))
-              (if (equal setter ''custom-set-minor-mode)
-                  `(put ',varname 'custom-set 'custom-set-minor-mode))))))
+	   (custom-autoload ',varname ,file))))
 
      ((eq car 'defgroup)
       ;; In Emacs this is normally handled separately by cus-dep.el, but for