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: quit-window is broken Date: Mon, 17 Nov 2008 16:59:42 -0500 Message-ID: References: <49218C51.4000700@gnu.org> <492195F3.30905@gmx.at> <492197C7.6080908@gnu.org> <4921990E.5080106@gmx.at> <4921BE23.7010706@gnu.org> <4921C2D3.9090800@gmx.at> <4921D754.9040408@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226959214 14096 80.91.229.12 (17 Nov 2008 22:00:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 22:00:14 +0000 (UTC) Cc: martin rudalics To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 17 23:01:17 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 1L2C9i-0003Na-8g for ged-emacs-devel@m.gmane.org; Mon, 17 Nov 2008 23:01:14 +0100 Original-Received: from localhost ([127.0.0.1]:38326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2C8Z-0006Ps-HR for ged-emacs-devel@m.gmane.org; Mon, 17 Nov 2008 17:00:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2C8V-0006Pa-2m for emacs-devel@gnu.org; Mon, 17 Nov 2008 16:59:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2C8R-0006PO-Ni for emacs-devel@gnu.org; Mon, 17 Nov 2008 16:59:57 -0500 Original-Received: from [199.232.76.173] (port=36538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2C8R-0006PL-Gt for emacs-devel@gnu.org; Mon, 17 Nov 2008 16:59:55 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:42052) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L2C8R-0004Fa-Ak for emacs-devel@gnu.org; Mon, 17 Nov 2008 16:59:55 -0500 Original-Received: from alfajor.home (vpn-132-204-232-38.acd.umontreal.ca [132.204.232.38]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mAHM0Jb1002406; Mon, 17 Nov 2008 17:00:19 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id 514E41C72B; Mon, 17 Nov 2008 16:59:43 -0500 (EST) In-Reply-To: <4921D754.9040408@gnu.org> (Sam Steingold's message of "Mon, 17 Nov 2008 15:43:00 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3149=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:105763 Archived-At: > it would help if there were a user option switch-to-buffer-create-new-buffer > with values t (like it does not), nil (signal an error) and 'ask (ask for > a confirmation). I'd rather have it use the same new behavior as C-x C-f: if you type in a non-existing buffer name, the completion requests confirmation. Any objection to the patch below? Stefan === modified file 'lisp/files.el' --- lisp/files.el 2008-11-15 03:29:10 +0000 +++ lisp/files.el 2008-11-17 21:58:51 +0000 @@ -1111,7 +1111,7 @@ (let ((rbts-completion-table (internal-complete-buffer-except))) (minibuffer-with-setup-hook (lambda () (setq minibuffer-completion-table rbts-completion-table)) - (read-buffer prompt (other-buffer (current-buffer)))))) + (read-buffer prompt (other-buffer (current-buffer)) 'confirm-only)))) (defun switch-to-buffer-other-window (buffer &optional norecord) "Select buffer BUFFER in another window.