unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "David Reitter" <david.reitter@gmail.com>,
	"Development of Aquamacs Emacs" <aquamacs-devel@aquamacs.org>
Cc: emacs- devel <emacs-devel@gnu.org>
Subject: RE: C-x C-f, Tab (in)completion and visiting the wrong, new files
Date: Sun, 12 Aug 2007 13:11:42 -0700	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACMEGICBAA.drew.adams@oracle.com> (raw)
In-Reply-To: <82E0660A-D6FB-4EDD-B44D-D4F96E175972@gmail.com>

> My proposal was not to change completion. My proposal was to not
> accept a RET after an incomplete completion.

That's changing completion.

> (But a RET RET after an
> incomplete completion would do exactly what the RET does.)
>
> Where do you think is incomplete completion and entering of the
> incomplete string useful?

The case you gave is good enough: creating a new file buffer, `foo.' (or any
other partial prefix match).

> > However, what I think should happen in the case you mention, and what
> > happens by default in Icicles, is that TAB immediately displays
> > *Completions*, which lets you know that completion is incomplete
> > and lets you see the matching candidate names of the existing files.
>
> I like the current behavior - simply because you know what files are
> there (or what you want) anyways. No need to see *Completions*.

How do you know "what files are there"? How do you know which file names
match? How do you know that your input is an incomplete match against
multiple file names?

It sounds, from what you said, like you didn't sense that you had only a
partial match and that RET would create a new file buffer. That is, it
sounds like you felt that you already had a complete match and hitting RET
would open an existing file whose name matched.

If *Completions* were shown, you would not be mistaken in that way, IMO. You
would have feedback that completion was incomplete with multiple matches.

Alternative (or additional) feedback could be to show a minibuffer message
to let you know this status.

> I said that only if completion is
> used, we assume (temporarily) that an existing file is to be visited.
> If the user completes the file name manually, then that is fine and
> it can be a new file.

I too was speaking of when TAB completion is used, not of typing the
complete name manually.

You want TAB RET to go `ding' and TAB RET (ding) RET to do what TAB RET does
now, whenever there are multiple matches and there is no complete match -
right? And you propose that behavior for not only a file name but "any other
symbol" - right?

I disagree. The current behavior is good, but perhaps it would be an
improvement to provide some feedback that would let you know the state you
are in, so you don't hit RET until you get a match for an existing file, if
that's what you want. IMO, RET should cause input to be entered, it
shouldn't just complete or go `ding'.

  reply	other threads:[~2007-08-12 20:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-12  6:17 C-x C-f, Tab (in)completion and visiting the wrong, new files David Reitter
2007-08-12 10:40 ` Johan Bockgård
2007-08-12 17:27   ` David Reitter
2007-08-12 19:46     ` Stefan Monnier
2007-08-12 20:12       ` Drew Adams
2007-08-12 18:22 ` Drew Adams
2007-08-12 18:52   ` David Reitter
2007-08-12 20:11     ` Drew Adams [this message]
2007-08-12 19:35   ` Stefan Monnier
2007-08-12 20:12     ` Drew Adams
2007-08-12 20:39       ` David Reitter
2007-08-12 21:48         ` Drew Adams
2007-08-13 17:10       ` Davis Herring
2007-08-13 17:42         ` Drew Adams
2007-08-13 17:52           ` David Reitter
2007-08-13 18:14             ` Drew Adams
2007-08-13 18:15             ` Stefan Monnier
2007-08-13 18:46               ` David Reitter
2007-08-13 19:58                 ` Stefan Monnier
2007-08-13 20:15                   ` Drew Adams

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=BNELLINCGFJLDJIKDGACMEGICBAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=aquamacs-devel@aquamacs.org \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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).