From: Drew Adams <drew.adams@oracle.com>
To: 17950@debbugs.gnu.org
Subject: bug#17950: 24.4.50; REGRESSION: `read-file-name' from a menu (mouse) treats "~/" as installation dir
Date: Sat, 5 Jul 2014 14:29:24 -0700 (PDT) [thread overview]
Message-ID: <a4e125d2-d0a9-472f-a8e5-dda0eeb7a486@default> (raw)
emacs -Q
(defun foo (file)
(interactive (list (read-file-name "Foo: " "~/")))
(message "File is `%s'" file))
(define-key menu-bar-file-menu [foo] '(menu-item "FOOOO" foo))
(expand-file-name "~/") ; correctly returns my home directory, as in
previous Emacs versions.
And `M-x foo' correctly uses `~/' as the directory.
But invoking the same command `foo' from the menu (item `FOOOO') uses
the Emacs installation directory instead.
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-06-28 on ODIEONE
Bzr revision: 117431 rgm@gnu.org-20140628015517-eku6hj8mpgcvfnso
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
next reply other threads:[~2014-07-05 21:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-05 21:29 Drew Adams [this message]
2014-07-06 14:25 ` bug#17950: 24.4.50; REGRESSION: `read-file-name' from a menu (mouse) treats "~/" as installation dir Eli Zaretskii
[not found] <<a4e125d2-d0a9-472f-a8e5-dda0eeb7a486@default>
[not found] ` <<83d2dief8e.fsf@gnu.org>
2014-07-06 15:10 ` Drew Adams
2014-07-06 15:56 ` Eli Zaretskii
2014-07-07 15:13 ` Eli Zaretskii
2014-07-07 16:39 ` Stefan Monnier
2014-07-12 9:28 ` Eli Zaretskii
2014-07-06 19:44 ` Eli Zaretskii
[not found] ` <<a01720bc-d3f4-408c-9068-c8fd00ac0fc2@default>
[not found] ` <<83a98meb0w.fsf@gnu.org>
2014-07-06 16:05 ` Drew Adams
2014-07-06 19:14 ` Eli Zaretskii
[not found] ` <<6c30925f-66d0-470a-b1db-0f8200e39bbe@default>
[not found] ` <<838uo6e1v9.fsf@gnu.org>
2014-07-06 23:00 ` Drew Adams
2014-07-07 2:38 ` Eli Zaretskii
[not found] ` <<83zjglcice.fsf@gnu.org>
2014-07-07 16:23 ` Drew Adams
[not found] ` <<837g3qe0hm.fsf@gnu.org>
2014-07-06 22:57 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a4e125d2-d0a9-472f-a8e5-dda0eeb7a486@default \
--to=drew.adams@oracle.com \
--cc=17950@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).