(ido-find-file-in-dir): Use `file-name-as-directory'.
This commit is contained in:
parent
15bdd7a08f
commit
8eb17675b9
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
2007-06-20 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* ido.el (ido-find-file-in-dir): Don't signal an error for
|
||||
empty directories.
|
||||
|
||||
* add-log.el (change-log-mode): Set `show-trailing-whitespace'.
|
||||
|
||||
* desktop.el (desktop-read): Run `desktop-not-loaded-hook' in the
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue