]> git.eshelyaron.com Git - emacs.git/commitdiff
Andreas Politz <politza at fh-trier.de> (tiny change)
authorGlenn Morris <rgm@gnu.org>
Wed, 2 Dec 2009 03:00:41 +0000 (03:00 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 2 Dec 2009 03:00:41 +0000 (03:00 +0000)
(ido-file-internal): Handle filenames at point that do not have a
directory part.  (Bug#5049)

lisp/ChangeLog
lisp/ido.el

index 0fe7ef21efc5910326e3cc46f4c5403feb9f0e6a..6b9349a2fbd01dc998a7870885cd00ba02cdd7f0 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-02  Andreas Politz  <politza@fh-trier.de>  (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  <lekktu@gmail.com>
 
        * mpc.el (mpc-intersection, mpc-host, mpc-songs-playlist)
index 7317540db32126e7529a06a981e651b1624cfb29..ded7cbbfb4de275c1775e7884bd7b4ed0d86b4e4 100644 (file)
@@ -2288,7 +2288,7 @@ If cursor is not at the end of the user input, move to end of input."
                              (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))))))