all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ed Avis <eda@waniasset.com>
Cc: 19911@debbugs.gnu.org
Subject: bug#19911: 24.4; shell-mode command completion - smarter handling of backup files
Date: Fri, 20 Feb 2015 13:43:11 +0200	[thread overview]
Message-ID: <83bnkolsfk.fsf@gnu.org> (raw)
In-Reply-To: <7E039918541B4C4183BFDB8F015C743032DD9159@WCL-EXCH02.wcl.local>

> From: Ed Avis <eda@waniasset.com>
> Date: Fri, 20 Feb 2015 11:35:21 +0000
> 
> Create a file 'script' and make it executable.  Edit it in emacs
> so that a backup file 'script~' is also created (and Emacs makes
> the backup file executable too).
> 
> Now m-x shell and type
> 
>    ls script TAB TAB
> 
> The first TAB appears not to do anything, but the second TAB inserts a
> space as a unique completion.  This is because tab-completion for
> filenames gives lower importance to backup files ending ~, so that they
> won't by themselves cause a completions buffer to pop up.  That is a
> useful enhancement to the usability of tab-completion.
> 
> However, the same useful behaviour isn't applied for command completion,
> in other words the first word of the shell command typed.  Enter
> 
>    ./script TAB TAB
> 
> and you get a 'Complete, but not unique' message and on the second TAB
> a completions buffer showing script and script~.
> 
> It would be more useful to treat the backup file consistently with what
> happens for ordinary filename completion, so that the first TAB would
> appear to do nothing, while the second TAB inserts a space.

Does customizing shell-completion-fignore to include "~" do what you
want?





  reply	other threads:[~2015-02-20 11:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-20 11:35 bug#19911: 24.4; shell-mode command completion - smarter handling of backup files Ed Avis
2015-02-20 11:43 ` Eli Zaretskii [this message]
2015-02-20 11:47   ` Ed Avis

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83bnkolsfk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=19911@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.