Function: gnus-iswitchb-completing-read
gnus-iswitchb-completing-read is a byte-compiled function defined in
gnus-util.el.gz.
Signature
(gnus-iswitchb-completing-read PROMPT COLLECTION &optional REQUIRE-MATCH INITIAL-INPUT HISTORY DEF)
Documentation
iswitchb based completing-read function.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-util.el.gz
(defun gnus-iswitchb-completing-read (prompt collection &optional require-match
initial-input history def)
"`iswitchb' based completing-read function."
;; Make sure iswitchb is loaded before we let-bind its variables.
;; If it is loaded inside the let, variables can become unbound afterwards.
(require 'iswitchb)
(let ((iswitchb-make-buflist-hook
(lambda ()
(setq iswitchb-temp-buflist
(let ((choices (append
(when initial-input (list initial-input))
(symbol-value history) collection))
filtered-choices)
(dolist (x choices)
(setq filtered-choices (cl-adjoin x filtered-choices)))
(nreverse filtered-choices))))))
(unwind-protect
(progn
(or iswitchb-mode
(add-hook 'minibuffer-setup-hook #'iswitchb-minibuffer-setup))
(iswitchb-read-buffer prompt def require-match))
(or iswitchb-mode
(remove-hook 'minibuffer-setup-hook #'iswitchb-minibuffer-setup)))))