# HG changeset patch # User Glenn Morris # Date 1259722841 0 # Node ID b78c33f367a0d968dd0aca1e754344623238dff1 # Parent 06698b91c77901d907877e1f93fdd5a6c29e1153 Andreas Politz (tiny change) (ido-file-internal): Handle filenames at point that do not have a directory part. (Bug#5049) diff -r 06698b91c779 -r b78c33f367a0 lisp/ChangeLog --- a/lisp/ChangeLog Wed Dec 02 02:08:21 2009 +0000 +++ b/lisp/ChangeLog Wed Dec 02 03:00:41 2009 +0000 @@ -1,3 +1,8 @@ +2009-12-02 Andreas Politz (tiny change) + + * ido.el (ido-file-internal): Handle filenames at point that do + not have a directory part. (Bug#5049) + 2009-12-02 Juanma Barranquero * mpc.el (mpc-intersection, mpc-host, mpc-songs-playlist) diff -r 06698b91c779 -r b78c33f367a0 lisp/ido.el --- a/lisp/ido.el Wed Dec 02 02:08:21 2009 +0000 +++ b/lisp/ido.el Wed Dec 02 03:00:41 2009 +0000 @@ -2288,7 +2288,7 @@ (ffap-guesser) (ffap-string-at-point)))) (not (string-match "^http:/" fn)) - (setq d (file-name-directory fn)) + (setq d (file-name-directory (expand-file-name fn))) (file-directory-p d)) (setq ido-current-directory d) (setq initial (file-name-nondirectory fn))))))