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-b and C-x C-f bugging about confirmation Date: Mon, 24 Nov 2008 10:52:31 -0500 Message-ID: References: <1227274391.618443.2559.nullmailer@null> <1227353165.501338.3377.nullmailer@null> <87bpw6vcm3.fsf@jurta.org> <87abbqmu7u.fsf@catnip.gol.com> <87y6z9k8cj.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227542733 24965 80.91.229.12 (24 Nov 2008 16:05:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Nov 2008 16:05:33 +0000 (UTC) Cc: Juri Linkov , ams@gnu.org, emacs-devel@gnu.org, Miles Bader To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 24 17:06:35 2008 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 1L4dwx-0003A6-Iy for ged-emacs-devel@m.gmane.org; Mon, 24 Nov 2008 17:06:11 +0100 Original-Received: from localhost ([127.0.0.1]:36924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4dvo-0000yW-2f for ged-emacs-devel@m.gmane.org; Mon, 24 Nov 2008 11:05:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4dkW-0002N1-NK for emacs-devel@gnu.org; Mon, 24 Nov 2008 10:53:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4dkT-0002KK-5e for emacs-devel@gnu.org; Mon, 24 Nov 2008 10:53:19 -0500 Original-Received: from [199.232.76.173] (port=46017 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4dkR-0002JX-OL for emacs-devel@gnu.org; Mon, 24 Nov 2008 10:53:16 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:52957) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4dkL-0008Sv-51; Mon, 24 Nov 2008 10:53:09 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgYGADNcKknO+J+z/2dsb2JhbACBbSvObYJ8gR0 X-IronPort-AV: E=Sophos;i="4.33,660,1220241600"; d="scan'208";a="30226929" Original-Received: from 206-248-159-179.dsl.teksavvy.com (HELO pastel.home) ([206.248.159.179]) by ironport2-out.teksavvy.com with ESMTP; 24 Nov 2008 10:52:43 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 9329A8107; Mon, 24 Nov 2008 10:52:31 -0500 (EST) In-Reply-To: <87y6z9k8cj.fsf@cyd.mit.edu> (Chong Yidong's message of "Mon, 24 Nov 2008 00:21:00 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106076 Archived-At: >>> Alan Mackenzie's tweak to the [Confirm] prompt seems like an excellent >>> solution to this problem though. >> >> Indeed, it would cover 99% of my cases. > See attached patch (necessary doc changes not included). Any > objections? > (defcustom confirm-nonexistent-file-or-buffer nil > "If non-nil, confirmation is requested before visiting a new file or buffer. > + If the value is `after-completion', confirmation is only > + requested if the user calls `minibuffer-complete-and-exit' > + immediately after `minibuffer-complete'. > This affects commands like `switch-to-buffer' and `find-file'." > :group 'find-file > :version "23.1" > :type 'boolean) Looks OK, except that it needs to default to after-completion. Stefan