# HG changeset patch # User Stefan Monnier # Date 1133366680 0 # Node ID 23fa76e60a61f8c87bec44cafd267d65a0f735b8 # Parent 9c628f17433cfc8d9e95ec250dae336edde92ad9 (make-autoload): Handle defgroup specially. diff -r 9c628f17433c -r 23fa76e60a61 lisp/ChangeLog --- a/lisp/ChangeLog Wed Nov 30 15:52:50 2005 +0000 +++ b/lisp/ChangeLog Wed Nov 30 16:04:40 2005 +0000 @@ -1,5 +1,7 @@ 2005-11-30 Stefan Monnier + * emacs-lisp/autoload.el (make-autoload): Handle defgroup specially. + * help-fns.el (help-argument-name): Don't autoload. It's useless and triggers a bug in cus-dep.el causing ldefs-boot to be re-loaded when customizing the `help' group. diff -r 9c628f17433c -r 23fa76e60a61 lisp/emacs-lisp/autoload.el --- a/lisp/emacs-lisp/autoload.el Wed Nov 30 15:52:50 2005 +0000 +++ b/lisp/emacs-lisp/autoload.el Wed Nov 30 16:04:40 2005 +0000 @@ -135,6 +135,15 @@ (if (equal setter ''custom-set-minor-mode) `(put ',varname 'custom-set 'custom-set-minor-mode)))))) + ((eq car 'defgroup) + ;; In Emacs this is normally handled separately by cus-dep.el, but for + ;; third party packages, it can be convenient to explicitly autoload + ;; a group. + (let ((groupname (nth 1 form))) + `(let ((loads (get ',groupname 'custom-loads))) + (if (member ',file loads) nil + (put ',groupname 'custom-loads (cons ',file loads)))))) + ;; nil here indicates that this is not a special autoload form. (t nil))))