From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11725: 24.1; confirm-nonexistent-file-or-buffer with after-completion value Date: Sat, 23 Jun 2012 00:50:14 -0400 Message-ID: References: <4FDCBEEA.7040101@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340427027 10348 80.91.229.3 (23 Jun 2012 04:50:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2012 04:50:27 +0000 (UTC) Cc: 11725-done@debbugs.gnu.org To: Szunti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 23 06:50:26 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SiIIk-0005fx-1T for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 06:50:26 +0200 Original-Received: from localhost ([::1]:50888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiIIj-00039W-Sd for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 00:50:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiIIg-000398-Gx for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 00:50:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiIIe-00026x-Te for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 00:50:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiIIe-00026d-Pg for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 00:50:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SiIME-00068G-5z for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 00:54:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jun 2012 04:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11725 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 11725@debbugs.gnu.org, monnier@iro.umontreal.ca Original-Received: via spool by 11725-done@debbugs.gnu.org id=D11725.134042723923557 (code D ref 11725); Sat, 23 Jun 2012 04:54:01 +0000 Original-Received: (at 11725-done) by debbugs.gnu.org; 23 Jun 2012 04:53:59 +0000 Original-Received: from localhost ([127.0.0.1]:53448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiIMB-00067u-9O for submit@debbugs.gnu.org; Sat, 23 Jun 2012 00:53:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:1923) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiIM9-00067k-4d for 11725-done@debbugs.gnu.org; Sat, 23 Jun 2012 00:53:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09MCrYj/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="191968648" Original-Received: from 76-10-182-35.dsl.teksavvy.com (HELO ceviche.home) ([76.10.182.35]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 Jun 2012 00:50:14 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 4CF8E660C9; Sat, 23 Jun 2012 00:50:14 -0400 (EDT) In-Reply-To: <4FDCBEEA.7040101@gmail.com> (szunti@gmail.com's message of "Sat, 16 Jun 2012 19:14:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61203 Archived-At: Version: 24.2 > 1) made two files in bash: > $ cd /tmp > $ touch almafa almacsutka > 2) open emacs > C-x C-f /tmp/al[TAB][RET] > [TAB] completes to /tmp/alma, then after pressing [RET], a new file > called alma is open, instead of asking for confirmation. Thanks, I've installed the patch below on the emacs-24 branch, which should fix the problem. Stefan --- lisp/minibuffer.el 2012-04-07 08:12:04 +0000 +++ lisp/minibuffer.el 2012-06-23 04:47:36 +0000 @@ -892,7 +892,8 @@ (completion--cache-all-sorted-completions (cdr all))))))) (defvar minibuffer-confirm-exit-commands - '(minibuffer-complete minibuffer-complete-word PC-complete PC-complete-word) + '(completion-at-point minibuffer-complete + minibuffer-complete-word PC-complete PC-complete-word) "A list of commands which cause an immediately following `minibuffer-complete-and-exit' to ask for extra confirmation.")