From 89a28f0b2430ca690bb2ef9395cc4dea35a2dc87 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 8 Jun 2005 12:00:46 +0000 Subject: [PATCH] (ido-read-file-name): Fallback to read-file-name on C-f also when reading directory name. --- lisp/ido.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))) -- 2.39.5