all messages for Emacs-related lists mirrored at yhetil.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: Stefan Monnier <monnier@iro.umontreal.ca>,
	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 14:48:23 -0700	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACEEGKCBAA.drew.adams@oracle.com> (raw)
In-Reply-To: <FC2FD34E-331A-473F-8654-3403CFC8C5F6@gmail.com>

> > In that case, you want TAB to complete only against existing files,
> > no? Then why not bind `file-file-existing'? That's what it's for.
>
> I think I suggested this originally. However, this would prevent
> users from creating new buffers as intended,

C-x b has lax completion.

It does not, however, follow `auto-mode-alist'. But see the recent
discussion about adding something similar for buffer names
(`buffer-auto-mode-alist').

> or it would require us
> to come up with a new (and short) key combination.

Just rebind C-x C-f, if that's your preference.

> I also thought that the input errors with the incomplete matches may
> be part of a common pattern that does not just apply to file names.
> In other completion cases where there is an ambiguity (e.g., M-x tex
> RET), the input is not accepted, and if there is no ambiguity, the
> input is autocompleted (e.g., M-x text RET).

Those are cases of strict completion, where the completed input must match a
candidate. They are equivalent to passing a non-nil REQUIRE-MATCH arg to
`completing-read'. `find-file' provides lax completion, and
`find-file-existing' provides strict completion - both are available.

  reply	other threads:[~2007-08-12 21:48 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
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 [this message]
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

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

  git send-email \
    --in-reply-to=BNELLINCGFJLDJIKDGACEEGKCBAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=aquamacs-devel@aquamacs.org \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.