aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2005-06-08 12:00:46 +0000
committerKim F. Storm <[email protected]>2005-06-08 12:00:46 +0000
commit89a28f0b2430ca690bb2ef9395cc4dea35a2dc87 (patch)
treeb5eea01de213d59ac990ae5f5ed54858af7fff68
parentf8820a55245f544b181acb5eb4af520b6bfbcc27 (diff)
(ido-read-file-name): Fallback to read-file-name on C-f
also when reading directory name.
-rw-r--r--lisp/ido.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 47372afec5..4ac9546de6 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)))