Function: ido-make-choice-list

ido-make-choice-list is a byte-compiled function defined in ido.el.gz.

Signature

(ido-make-choice-list DEFAULT)

Documentation

Return the current list of choices.

If DEFAULT is non-nil, and corresponds to an element of choices, it is put to the start of the list.

Source Code

;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-make-choice-list (default)
  "Return the current list of choices.
If DEFAULT is non-nil, and corresponds to an element of choices,
it is put to the start of the list."
  (let ((ido-temp-list ido-choice-list))
    (if default
	(progn
	  (setq ido-temp-list
		(delete default ido-temp-list))
	  (setq ido-temp-list
		(cons default ido-temp-list))))
    ; (run-hooks 'ido-make-choice-list-hook)
    ido-temp-list))