Function: iswitchb-exhibit
iswitchb-exhibit is a byte-compiled function defined in
iswitchb.el.gz.
Signature
(iswitchb-exhibit)
Documentation
Find matching buffers and display a list in the minibuffer.
Copied from icomplete-exhibit with two changes:
1. It prints a default buffer name when there is no text yet entered.
2. It calls my completion routine rather than the standard completion.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/iswitchb.el.gz
;;; ICOMPLETE TYPE CODE
(defun iswitchb-exhibit ()
"Find matching buffers and display a list in the minibuffer.
Copied from `icomplete-exhibit' with two changes:
1. It prints a default buffer name when there is no text yet entered.
2. It calls my completion routine rather than the standard completion."
(if iswitchb-use-mycompletion
(let ((contents (buffer-substring (minibuffer-prompt-end) (point-max)))
(buffer-undo-list t))
(save-excursion
(goto-char (point-max))
; Register the end of input, so we
; know where the extra stuff
; (match-status info) begins:
(if (not (boundp 'iswitchb-eoinput))
;; In case it got wiped out by major mode business:
(make-local-variable 'iswitchb-eoinput))
(setq iswitchb-eoinput (point))
;; Update the list of matches
(setq iswitchb-text contents)
(iswitchb-set-matches)
(setq iswitchb-rescan t)
(iswitchb-set-common-completion)
;; Insert the match-status information:
(insert (iswitchb-completions
contents))))))