bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7602: 23.2; default-directory not updated after ido-write-file


From: Chong Yidong
Subject: bug#7602: 23.2; default-directory not updated after ido-write-file
Date: Sat, 22 Jan 2011 14:40:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Dave Abrahams <dave@boostpro.com> writes:

> (progn
>     (ido-mode)
>     (mkdir "/tmp/foo")
>     (mkdir "/tmp/baz")
>     (shell-command "touch "/tmp/foo/bar")
>     (find-file "/tmp/foo/bar"))
>
> C-x C-f /tmp/foo/bar RET
> C-x C-w /tmp/baz/ RET
> M-S-: default-directory RET
>
> C-x C-f and note that the prompt default begins with /tmp/foo/, not
> /tmp/bar/

I'm not sure how to follow your recipe.  When I do C-x C-w, the ido
"Write file" prompt does not allow me to finish with /tmp/baz/, since
that is a directory.  Did you mean C-x C-w /tmp/baz/bar?  If that's the
case, after the C-x C-w default-directory is /tmp/baz, as expected.

Tested on both emacs 23.2 and trunk.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]