From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17950: 24.4.50; REGRESSION: `read-file-name' from a menu (mouse) treats "~/" as installation dir Date: Sun, 06 Jul 2014 18:56:31 +0300 Message-ID: <83a98meb0w.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1404662259 6651 80.91.229.3 (6 Jul 2014 15:57:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2014 15:57:39 +0000 (UTC) Cc: 17950@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 06 17:57:32 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X3ooc-000749-Ku for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Jul 2014 17:57:22 +0200 Original-Received: from localhost ([::1]:46351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3ooc-0004rX-7p for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Jul 2014 11:57:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3ooO-0004q9-5w for bug-gnu-emacs@gnu.org; Sun, 06 Jul 2014 11:57:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3ooJ-0003Zt-5V for bug-gnu-emacs@gnu.org; Sun, 06 Jul 2014 11:57:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3ooJ-0003Zp-2Y for bug-gnu-emacs@gnu.org; Sun, 06 Jul 2014 11:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X3ooI-0000ji-8m for bug-gnu-emacs@gnu.org; Sun, 06 Jul 2014 11:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Jul 2014 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17950-submit@debbugs.gnu.org id=B17950.14046622122808 (code B ref 17950); Sun, 06 Jul 2014 15:57:02 +0000 Original-Received: (at 17950) by debbugs.gnu.org; 6 Jul 2014 15:56:52 +0000 Original-Received: from localhost ([127.0.0.1]:45074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3oo7-0000jE-9P for submit@debbugs.gnu.org; Sun, 06 Jul 2014 11:56:51 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:37082) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3oo3-0000ir-De for 17950@debbugs.gnu.org; Sun, 06 Jul 2014 11:56:49 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N8A00C00S83K800@a-mtaout21.012.net.il> for 17950@debbugs.gnu.org; Sun, 06 Jul 2014 18:56:40 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N8A00CQTSAFJD20@a-mtaout21.012.net.il>; Sun, 06 Jul 2014 18:56:40 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91243 Archived-At: > Date: Sun, 6 Jul 2014 08:10:35 -0700 (PDT) > From: Drew Adams > Cc: 17950@debbugs.gnu.org > > I invoked emacs -Q from a Windows shortcut with `Target': > Z:\path\to\runemacs.exe -Q --debug-init > and with `Start in' set to its default: z:\path\to\Emacs\bin > > I then used *scratch* to evaluate the recipe code. > I have env var HOME defined, also. And Emacs recognizes "~/" correctly > (apart from the bug). > > When I check `default-directory' it is "Z:\\path\\to\\bin/" (dunno > why there is a forward slash at the end but the others are backslashes). > If I change `Start in' then `default-directory' changes to reflect it, > correctly. But the dir used by the menu item is still the (same) wrong > one. Repeating this, everything I see is the same as you, except that the file selection dialog still shows my home directory. > However, it seems that the directory used for the file selection box > is not related to `Start in'. It seems to be the something like a > dir used in a different or a previous Emacs session (?). Not sure > about that, but it definitely comes up with a directory that is > unrelated to either my HOME or the directory in `Start in'. Could be a Windows 7 thing (I'm testing on XP here). I think it remembers the last directory you were in, or something. I'll try on Windows 7 when I can.