From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11298: 24.0.95; (WISH) Re-look scratch buffers Date: Mon, 23 Apr 2012 13:11:19 -0700 Message-ID: References: <81397xm657.fsf@gmail.com> <81r4vgq07a.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1335211948 32733 80.91.229.3 (23 Apr 2012 20:12:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2012 20:12:28 +0000 (UTC) Cc: 11298@debbugs.gnu.org To: "'Stefan Monnier'" , "'Jambunathan K'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 23 22:12:25 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 1SMPcW-0001p6-Ei for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Apr 2012 22:12:24 +0200 Original-Received: from localhost ([::1]:47089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMPcV-0006rE-P3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Apr 2012 16:12:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMPcS-0006r8-I7 for bug-gnu-emacs@gnu.org; Mon, 23 Apr 2012 16:12:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMPcQ-00059v-RW for bug-gnu-emacs@gnu.org; Mon, 23 Apr 2012 16:12:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMPcQ-00059p-OF for bug-gnu-emacs@gnu.org; Mon, 23 Apr 2012 16:12:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SMPd7-0003h0-LK for bug-gnu-emacs@gnu.org; Mon, 23 Apr 2012 16:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Apr 2012 20:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11298-submit@debbugs.gnu.org id=B11298.133521193614136 (code B ref 11298); Mon, 23 Apr 2012 20:13:01 +0000 Original-Received: (at 11298) by debbugs.gnu.org; 23 Apr 2012 20:12:16 +0000 Original-Received: from localhost ([127.0.0.1]:49465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMPcN-0003fw-Te for submit@debbugs.gnu.org; Mon, 23 Apr 2012 16:12:16 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:50087) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMPcL-0003fh-7P for 11298@debbugs.gnu.org; Mon, 23 Apr 2012 16:12:14 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q3NKBMkJ002808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 23 Apr 2012 20:11:22 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q3NKBLp4016380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Apr 2012 20:11:22 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q3NKBLsb006926; Mon, 23 Apr 2012 15:11:21 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 23 Apr 2012 13:11:21 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac0hiPcwKhr3o5voT7icJ6PqqOjN5QAAJk5w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] 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:59418 Archived-At: > This is the fault of `ido'. The normal C-x b just asks for > an extra RET to confirm you do want to create a new buffer > (under the control of confirm-nonexistent-file-or-buffer). Actually, with the default value of `after-completion' I do not see it ever asking for confirmation. Did you mean only if the user has customized that option to something other than nil and the default value? If not, I guess I'm missing something. The doc says that confirmation is required for `after-completion' only if `minibuffer-complete-and-exit' is called immediately after `minibuffer-complete'. [The doc actually phrases that backward. Why it does that, and why it does not mention the keys `C-j' and `TAB' instead of the commands, I don't know. Just to make it harder to understand, I guess. ;-)] But I don't see any `C-x b' scenario that leads to confirmation being required, if the option has the default value of `after-completion'. AFAICT, when that is the option value, `C-x b' (`switch-to-buffer'), does not even use a `must-match' completion keymap to read the buffer name, so `minibuffer-complete-and-exit' is not even bound to a key. (No, I didn't check the C source code to be sure, but the debugger shows that `C-j' invokes `exit-minibuffer' for `read-buffer-to-switch' with an option value of `after-completion'.) What am I missing? Is there a way to hit TAB for a nonexistent buffer name and have confirmation be requested? If I type a nonexistent name and hit TAB (getting "No match"), and then hit `C-j' or `RET', the name is accepted without confirmation.