unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 13033@debbugs.gnu.org
Subject: bug#13033: 24.3.50; regression: read-file-name-internal handles "~" wrong
Date: Thu, 29 Nov 2012 13:44:52 -0800	[thread overview]
Message-ID: <7FC6A56C048B4EEAAE8EF71367793001@us.oracle.com> (raw)

This is on Windows.  I have Cygwin installed, but that should not
affect how Emacs interprets `~'.
 
My `user-login-name' is "dradams".  My `user-full-name' is "".
 
In this Emacs version,
(read-file-name-internal "~" 'file-exists-p nil) returns "~/dradams/".
 
That is wrong.  Not only is there no such directory as ~/dradams/".  But
my HOME environment variable is defined as "c:\\".
 
In 24.2 and in all previous Emacs versions (with the 2nd arg a dir, as needed),
(read-file-name-internal "~" 'file-exists-p nil) returns nil.
 
Please revert the code that causes this regression.

In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600)
 of 2012-11-19 on MS-W7-DANI
Bzr revision: 110950 monnier@iro.umontreal.ca-20121119182725-5p6w4wjimm7epggr
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -Ic:/emacs/libs/libXpm-3.5.10/include -Ic:/emacs/libs/libXpm-3.5.10/src
 -Ic:/emacs/libs/libpng-1.2.37-lib/include -Ic:/emacs/libs/zlib-1.2.5
 -Ic:/emacs/libs/giflib-4.1.4-1-lib/include
 -Ic:/emacs/libs/jpeg-6b-4-lib/include
 -Ic:/emacs/libs/tiff-3.8.2-1-lib/include
 -Ic:/emacs/libs/libxml2-2.7.8-w32-bin/include/libxml2
 -Ic:/emacs/libs/gnutls-3.0.9-w32-bin/include
 -Ic:/emacs/libs/libiconv-1.9.2-1-lib/include'
 






             reply	other threads:[~2012-11-29 21:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 21:44 Drew Adams [this message]
2012-11-29 23:58 ` bug#13033: 24.3.50; regression: read-file-name-internal handles "~" wrong 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
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=7FC6A56C048B4EEAAE8EF71367793001@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=13033@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).