diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2007-06-20 15:19:37 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2007-06-20 15:19:37 +0000 |
commit | 72a75b41db354b0846da2c728d3c09f48fb24fc8 (patch) | |
tree | 18e39825c68f0083f33c1e88e592d272226b4012 /lisp/ido.el | |
parent | 43e9fc935faa1120a5b973bbc2a021c20401e782 (diff) | |
download | emacs-72a75b41db354b0846da2c728d3c09f48fb24fc8.tar.gz |
(ido-find-file-in-dir): Don't signal an error for empty directories.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r-- | lisp/ido.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 5a7be3e5ae6..0808075b495 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -3994,8 +3994,7 @@ For details of keybindings, see `ido-switch-buffer'." (defun ido-find-file-in-dir (dir) "Switch to another file starting from DIR." (interactive "DDir: ") - (if (not (equal (substring dir -1) "/")) - (setq dir (concat dir "/"))) + (setq dir (file-name-as-directory dir)) (ido-file-internal ido-default-file-method nil dir nil nil nil 'ignore)) ;;;###autoload |