From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#7602: 23.2; default-directory not updated after ido-write-file Date: Sat, 22 Jan 2011 14:40:05 -0500 Message-ID: <8739okzq0a.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295728687 22415 80.91.229.12 (22 Jan 2011 20:38:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 Jan 2011 20:38:07 +0000 (UTC) Cc: 7602@debbugs.gnu.org To: Dave Abrahams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 22 21:38:01 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PgkDe-0005Is-4U for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jan 2011 21:38:00 +0100 Original-Received: from localhost ([127.0.0.1]:41231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgkDb-0007w7-VO for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jan 2011 15:37:56 -0500 Original-Received: from [140.186.70.92] (port=51438 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgjaK-0001rs-8P for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2011 14:59:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgjYI-0001o3-6Q for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2011 14:57:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgjYI-0001nz-50 for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2011 14:55:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PgjCo-0000hx-Bq; Sat, 22 Jan 2011 14:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jan 2011 19:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7602 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7602-submit@debbugs.gnu.org id=B7602.12957247392671 (code B ref 7602); Sat, 22 Jan 2011 19:33:02 +0000 Original-Received: (at 7602) by debbugs.gnu.org; 22 Jan 2011 19:32:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PgjC6-0000h2-Gv for submit@debbugs.gnu.org; Sat, 22 Jan 2011 14:32:18 -0500 Original-Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PgjC3-0000gp-PO for 7602@debbugs.gnu.org; Sat, 22 Jan 2011 14:32:16 -0500 Original-Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p0MJe96G004071 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 22 Jan 2011 14:40:09 -0500 Original-Received: by furball (Postfix, from userid 1000) id EBB861611FB; Sat, 22 Jan 2011 14:40:05 -0500 (EST) In-Reply-To: (Dave Abrahams's message of "Thu, 09 Dec 2010 18:46:54 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 22 Jan 2011 14:33:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43541 Archived-At: Dave Abrahams 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.