Subject: Re: bug#20205: 24.4; lgrep will not accept a directory of ~ to search; problem with read-file-name?

From: Mark Lillibridge <[email-masked]>
Date: Sun, 29 Mar 2015 10:50:12 -0700

Eli wrote:
> > From: Mark Lillibridge <mdl <at> foil.strangled.net>
> > Date: Wed, 25 Mar 2015 21:58:30 -0700
> > 
> > 
> > (found also in Emacs 24.3, not in 24.2)
> > 
> > Recipe:
> >     emacs -q
> >     
> >     M-x lgrep enter
> >     target enter
> >     enter
> >     <edit mini-buffer to get ~; I had to backspace once then hit ~>
> >     enter
> > 
> > when you hit the last enter, Emacs gives you a completion buffer and
> > refuses to accept "~" as a valid directory to search.  "~/" does work,
> > however.
> 
> It's a feature: "~" gets completed to "~USER" where USER are the users
> known by the system.

    I'd be fine if ~ got completed that way, but it doesn't because
there are other completions of ~.  The rules of UNIX (shells) say that ~
by itself is a perfectly valid file name that refers to ~USER/ (e.g.,
try "ls ~").  Emacs should resume supporting this rather than claiming
that ~ is not a valid directory name.

- Mark