From: Kim F. Storm Date: Wed, 8 Jun 2005 12:00:46 +0000 (+0000) Subject: (ido-read-file-name): Fallback to read-file-name on C-f X-Git-Tag: emacs-pretest-22.0.90~9211 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=89a28f0b2430ca690bb2ef9395cc4dea35a2dc87;p=emacs.git (ido-read-file-name): Fallback to read-file-name on C-f also when reading directory name. --- diff --git a/lisp/ido.el b/lisp/ido.el index 47372afec52..4ac9546de64 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -4193,7 +4193,9 @@ See `read-file-name' for additional parameters." (eq (get this-command 'ido) 'dir) (memq this-command ido-read-file-name-as-directory-commands)) (setq filename - (ido-read-directory-name prompt dir default-filename mustmatch initial))) + (ido-read-directory-name prompt dir default-filename mustmatch initial)) + (if (eq ido-exit 'fallback) + (setq filename 'fallback))) ((and (not (eq (get this-command 'ido) 'ignore)) (not (memq this-command ido-read-file-name-non-ido)) (or (null predicate) (eq predicate 'file-exists-p)))