From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 13033@debbugs.gnu.org
Subject: bug#13033: 24.3.50; regression: read-file-name-internal handles "~" wrong
Date: Fri, 30 Nov 2012 22:07:29 +0200 [thread overview]
Message-ID: <83mwxyua66.fsf@gnu.org> (raw)
In-Reply-To: <E4D077481CAD4E2BB8A6E48B4B58BD3B@us.oracle.com>
> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Fri, 30 Nov 2012 11:50:36 -0800
> Cc: 13033@debbugs.gnu.org
>
> > What does C-x C-f ~dradams/.emacs RET do? It should open
> > your ~/.emacs file.
>
> It does. Now. But it does not in older releases.
Which older releases? ~username/.emacs works for me on Windows in all
releases since 21.4.
> surprisingly, that text is also there in Emacs 23, even though this behavior
> seems new - it is not even in 24.2 (for Windows).
What happens in Emacs 24.2 for you? Are you talking about
C-x C-f ~dradams/.emacs RET
or about
(read-file-name-internal "~" 'file-exists-p nil)
?
> > An initial `~USER/' expands to USER's home directory.
>
> That's OK for an Emacs convention. I just was not aware of it. (And for MS
> Windows itself there is still no association between HOME and the user login
> name, AFAIK.
Emacs on Windows supports ~USER only when USER is the current user.
This support always worked in Emacs on Windows. ~USER for any other
username doesn't work on Windows, and never did.
(HOME is not recognized by MS-Windows itself, but HOMEDRIVE and
HOMEPATH are, and they change for each user as you'd expect.)
next prev parent reply other threads:[~2012-11-30 20:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 21:44 bug#13033: 24.3.50; regression: read-file-name-internal handles "~" wrong Drew Adams
2012-11-29 23:58 ` Juanma Barranquero
2012-11-30 13:12 ` Michael Heerdegen
2012-11-30 13:55 ` Eli Zaretskii
2012-12-01 10:13 ` Michael Heerdegen
2012-11-30 3:56 ` Stefan Monnier
2012-11-30 4:08 ` Drew Adams
2012-11-30 17:00 ` Stefan Monnier
2012-11-30 17:24 ` Drew Adams
2012-11-30 18:44 ` Stefan Monnier
2012-11-30 19:50 ` Drew Adams
2012-11-30 20:07 ` Eli Zaretskii [this message]
2012-11-30 21:09 ` Drew Adams
2012-12-01 7:46 ` Eli Zaretskii
2012-12-01 16:34 ` Drew Adams
2012-11-30 20:08 ` Stefan Monnier
2012-11-30 20:42 ` Eli Zaretskii
2012-11-30 21:14 ` Drew Adams
2014-02-09 2:51 ` Lars Ingebrigtsen
2012-11-30 19:01 ` Eli Zaretskii
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=83mwxyua66.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=13033@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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).