(make-autoload): Remove special handling of
minor modes, redundant with the custom-autoload line above.
This commit is contained in:
parent
e17833bc7d
commit
02dcdad34e
2 changed files with 9 additions and 15 deletions
|
@ -124,17 +124,7 @@ or macro definition or a defcustom)."
|
|||
)
|
||||
`(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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue