From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: error "Cannot switch buffers in (minibuffer | a dedicated) window" Date: Mon, 17 Dec 2007 14:27:00 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197930461 24596 80.91.229.12 (17 Dec 2007 22:27:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2007 22:27:41 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 17 23:27:52 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 1J4OQt-0007TT-HR for ged-emacs-devel@m.gmane.org; Mon, 17 Dec 2007 23:27:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4OQa-00023d-FC for ged-emacs-devel@m.gmane.org; Mon, 17 Dec 2007 17:27:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4OQV-00020k-5a for emacs-devel@gnu.org; Mon, 17 Dec 2007 17:27:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4OQT-0001yY-EF for emacs-devel@gnu.org; Mon, 17 Dec 2007 17:27:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4OQT-0001y9-2c for emacs-devel@gnu.org; Mon, 17 Dec 2007 17:27:05 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J4OQS-00085B-MP for emacs-devel@gnu.org; Mon, 17 Dec 2007 17:27:04 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id lBHMR1Th029831 for ; Mon, 17 Dec 2007 15:27:02 -0700 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lBHEt0jw030953 for ; Mon, 17 Dec 2007 15:26:59 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-158.us.oracle.com by acsmt350.oracle.com with ESMTP id 3448483181197930418; Mon, 17 Dec 2007 14:26:58 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:85232 Archived-At: The code is `no_switch_window', in buffer.c. I wonder if this needs to be treated as an error. What is the use case? Wouldn't it make sense to just switch to the buffer in another window, instead of raising an error? If it is important to provide feedback that Emacs couldn't use the requested window, then the message could still be displayed, but without raising an error. Treating this as an error just slows users down and makes them repeat the command from another window or change to a command that uses another window. (Of course, the buffer switch is not necessarily from a command; it could come from code that tries to switch buffers where it shouldn't.) Am I missing something, or is this a gratuitous error that just gets in the way?