Function: ido-initiate-auto-merge
ido-initiate-auto-merge is a byte-compiled function defined in
ido.el.gz.
Signature
(ido-initiate-auto-merge BUFFER)
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
;;; XEmacs hack for showing default buffer
;; The first time we enter the minibuffer, Emacs puts up the default
;; buffer to switch to, but XEmacs doesn't -- presumably there is a
;; subtle difference in the two versions of post-command-hook. The
;; default is shown for both whenever we delete all of our text
;; though, indicating its just a problem the first time we enter the
;; function. To solve this, we use another entry hook for emacs to
;; show the default the first time we enter the minibuffer.
;;; ICOMPLETE TYPE CODE
(defun ido-initiate-auto-merge (buffer)
(ido-trace "\n*merge timeout*" buffer)
(setq ido-auto-merge-timer nil)
(when (and (buffer-live-p buffer)
(ido-active)
(boundp 'ido-eoinput) ido-eoinput)
(let ((contents (buffer-substring-no-properties (minibuffer-prompt-end) ido-eoinput)))
(ido-trace "request merge")
(setq ido-use-merged-list 'auto
ido-text-init contents
ido-rotate-temp t
ido-exit 'refresh)
(with-current-buffer buffer
(ido-tidy))
(throw 'ido contents))))