From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: C-x C-f, Tab (in)completion and visiting the wrong, new files Date: Sun, 12 Aug 2007 15:46:43 -0400 Message-ID: References: <10516580-F6DC-4B3C-9D5C-3FC46D9DE30F@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186948012 3823 80.91.229.12 (12 Aug 2007 19:46:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2007 19:46:52 +0000 (UTC) Cc: emacs- devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 12 21:46:51 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IKJOk-0008B1-M9 for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 21:46:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKJOk-00010U-7w for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 15:46:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKJOh-0000y1-0D for emacs-devel@gnu.org; Sun, 12 Aug 2007 15:46:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKJOf-0000wD-Vh for emacs-devel@gnu.org; Sun, 12 Aug 2007 15:46:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKJOf-0000vu-Mt for emacs-devel@gnu.org; Sun, 12 Aug 2007 15:46:45 -0400 Original-Received: from tomts5.bellnexxia.net ([209.226.175.25] helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IKJOf-0005jw-9C for emacs-devel@gnu.org; Sun, 12 Aug 2007 15:46:45 -0400 Original-Received: from ceviche.home ([70.55.81.238]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070812194644.GDPA1592.tomts5-srv.bellnexxia.net@ceviche.home> for ; Sun, 12 Aug 2007 15:46:44 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C9737B408A; Sun, 12 Aug 2007 15:46:43 -0400 (EDT) In-Reply-To: <10516580-F6DC-4B3C-9D5C-3FC46D9DE30F@gmail.com> (David Reitter's message of "Sun\, 12 Aug 2007 18\:27\:38 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76389 Archived-At: >>> But if the same happens to others as well, perhaps a more general >>> change could make Emacs more convenient in this respect. >> find-file-confirm-nonexistent-file > Could be done, but I don't think adding another confirmation step for new > files (that are intended to be created) is as good as making the right > guess when the user uses completion and confirms an incomplete > (i.e. ambiguous) choice. That's very interesting: I added the find-file-confirm-nonexistent-file pretty for the exact reason you describe, and what you propose is a refinement of it: to only do the "confirm" step if the previous command was a completion command. That makes a lot of sense: it may even be enabled by default without provoking angry reactions, contrary to find-file-confirm-nonexistent-file. It could just be confirgured with a new value `only-after-completion' for find-file-confirm-nonexistent-file. > This case may even be universal to all completion-based minibuffer inputs. Could be. Stefan