From: Julien Danjou Date: Tue, 5 Oct 2010 07:50:08 +0000 (+0000) Subject: gnus-util.el (gnus-emacs-completing-read, gnus-iswitchb-completing-read): Use autoloa... X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~46^2~173 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=50cb700cf1e8e62261f4c1cdbdabd24a3c7aafac;p=emacs.git gnus-util.el (gnus-emacs-completing-read, gnus-iswitchb-completing-read): Use autoload rather than require. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index f378310b2b9..9b7832b5cfb 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -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 --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 414f1c45440..5fda600348c 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -1611,16 +1611,17 @@ SPEC is a predicate specifier that contains stuff like `or', `and', (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