Function: ido-prev-match-dir
ido-prev-match-dir is an interactive and byte-compiled function
defined in ido.el.gz.
Signature
(ido-prev-match-dir)
Documentation
Find previous directory in match list.
If work directories have been merged, cycle through directories for first matching file.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-prev-match-dir ()
"Find previous directory in match list.
If work directories have been merged, cycle through directories
for first matching file."
(interactive)
(if ido-use-merged-list
(if ido-matches
(let* ((elt (car ido-matches))
(dirs (cdr elt)))
(when (> (length dirs) 1)
(setcdr elt (ido-chop dirs (car (last dirs)))))
(setq ido-rescan nil)))
(let* ((cnt (length ido-matches))
(i (1- cnt)))
(while (and (> i 0) (not (ido-final-slash (nth i ido-matches))))
(setq i (1- i)))
(if (> i 0)
(setq ido-cur-list (ido-chop ido-cur-list (nth i ido-matches)))))))