Mercurial > emacs
changeset 110773:22b487462b5a
gnus-util.el (gnus-emacs-completing-read, gnus-iswitchb-completing-read): Use autoload rather than require.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Tue, 05 Oct 2010 07:50:08 +0000 |
parents | cd2496a17cf2 |
children | 276ecc27ad6b |
files | lisp/gnus/ChangeLog lisp/gnus/gnus-util.el |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog Tue Oct 05 06:36:32 2010 +0000 +++ b/lisp/gnus/ChangeLog Tue Oct 05 07:50:08 2010 +0000 @@ -1,3 +1,8 @@ +2010-10-05 Julien Danjou <julien@danjou.info> + + * gnus-util.el (gnus-emacs-completing-read) + (gnus-iswitchb-completing-read): Use autoload rather than require. + 2010-10-05 Katsumi Yamaoka <yamaoka@jpl.org> * gnus-util.el (gnus-completing-read-function): Exclude
--- a/lisp/gnus/gnus-util.el Tue Oct 05 06:36:32 2010 +0000 +++ b/lisp/gnus/gnus-util.el Tue Oct 05 07:50:08 2010 +0000 @@ -1611,16 +1611,17 @@ (mapcar 'list collection) nil require-match initial-input history def))) +(autoload 'ido-completing-read "ido") (defun gnus-ido-completing-read (prompt collection &optional require-match initial-input history def) "Call `ido-completing-read-function'." - (require 'ido) (ido-completing-read prompt collection nil require-match initial-input history def)) + +(autoload 'iswitchb-read-buffer "iswitchb") (defun gnus-iswitchb-completing-read (prompt collection &optional require-match initial-input history def) "`iswitchb' based completing-read function." - (require 'iswitchb) (let ((iswitchb-make-buflist-hook (lambda () (setq iswitchb-temp-buflist