unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ed Avis <eda@waniasset.com>
Cc: 20937@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	[thread overview]
Message-ID: <87ee0z1mq5.fsf@gnus.org> (raw)
In-Reply-To: <7E039918541B4C4183BFDB8F015C743032E47E4A@WCL-EXCH02.wcl.local> (Ed Avis's message of "Tue, 30 Jun 2015 13:38:47 +0000")

Ed Avis <eda@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





  reply	other threads:[~2022-05-12  2:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-30 13:38 bug#20937: 24.4; shell-mode: tab completion adds /. to directory, which is not helpful Ed Avis
2022-05-12  2:57 ` Lars Ingebrigtsen [this message]
2022-05-12  3:01   ` Lars Ingebrigtsen

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=87ee0z1mq5.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=20937@debbugs.gnu.org \
    --cc=eda@waniasset.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).