Function: ido-choose-completion-string
ido-choose-completion-string is a byte-compiled function defined in
ido.el.gz.
Signature
(ido-choose-completion-string CHOICE &rest IGNORED)
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-choose-completion-string (choice &rest _ignored)
(when (ido-active)
;; Insert the completion into the buffer where completion was requested.
(and ido-completion-buffer
(get-buffer ido-completion-buffer)
(kill-buffer ido-completion-buffer))
(cond
((ido-active t) ;; ido-use-merged-list
(setq ido-current-directory ""
ido-text choice
ido-exit 'done))
((not (ido-final-slash choice))
(setq ido-text choice
ido-exit 'done))
(t
(ido-set-current-directory ido-current-directory choice)
(setq ido-exit 'refresh)))
(exit-minibuffer)
t))