GNU bug report logs -
#20205
24.4; lgrep will not accept a directory of ~ to search; problem with read-file-name?
Previous Next
Reported by: Mark Lillibridge <mdl <at> foil.strangled.net>
Date: Thu, 26 Mar 2015 05:52:01 UTC
Severity: minor
Tags: notabug
Found in version 24.4
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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
This bug report was last modified 5 years and 240 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.