changeset 106366:b78c33f367a0

Andreas Politz <politza at fh-trier.de> (tiny change) (ido-file-internal): Handle filenames at point that do not have a directory part. (Bug#5049)
author Glenn Morris <rgm@gnu.org>
date Wed, 02 Dec 2009 03:00:41 +0000
parents 06698b91c779
children 1168a9885b5d
files lisp/ChangeLog lisp/ido.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <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)
--- 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))))))