# HG changeset patch # User Katsumi Yamaoka # Date 1286265008 0 # Node ID 22b487462b5a994d97bbfd421ff4771482e9e1f9 # Parent cd2496a17cf2fc5dba59349e65a5935800446db0 gnus-util.el (gnus-emacs-completing-read, gnus-iswitchb-completing-read): Use autoload rather than require. diff -r cd2496a17cf2 -r 22b487462b5a lisp/gnus/ChangeLog --- 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 + + * gnus-util.el (gnus-emacs-completing-read) + (gnus-iswitchb-completing-read): Use autoload rather than require. + 2010-10-05 Katsumi Yamaoka * gnus-util.el (gnus-completing-read-function): Exclude diff -r cd2496a17cf2 -r 22b487462b5a lisp/gnus/gnus-util.el --- 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