GNU bug report logs - #20937
24.4; shell-mode: tab completion adds /. to directory, which is not helpful

Previous Next

Package: emacs;

Reported by: Ed Avis <eda <at> waniasset.com>

Date: Tue, 30 Jun 2015 13:40:03 UTC

Severity: minor

Merged with 16577

Found in versions 24.3, 24.4

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Ed Avis <eda <at> waniasset.com>
Cc: 20937 <at> debbugs.gnu.org
Subject: bug#20937: 24.4; shell-mode: tab completion adds /. to directory, which is not helpful
Date: Thu, 12 May 2022 04:57:54 +0200
Ed Avis <eda <at> waniasset.com> writes:

> M-x shell
> mkdir foo
> rmdir foo <TAB> <TAB>
>
> The argument to rmdir is completed to 'foo/.' (which is the initial
> substring of 'foo/.' and 'foo/..').

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

That first TAB completes to "foo/", though, which is what you'd expect.
(At least in 25.1 and up; I don't have 24.4 here.)

> Please change the tab completion in shell mode so that directories are
> completed to the trailing slash, as foo/, but the special '.' and '..'
> subdirectories are not considered for further completion.

In bug#16577, we discussed the possibility of adding more variables to
allow excluding files more easily.  If we had that, then adding "." and
".." to that would probably be pretty popular.

(So I'm merging this report with that report, because fixing it would
also fix this one.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 34 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.