unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: error "Cannot switch buffers in (minibuffer | a dedicated) window"
Date: Mon, 17 Dec 2007 14:27:00 -0800	[thread overview]
Message-ID: <DHEEKFAFJEFOJHLCFPFDGEODCCAA.drew.adams@oracle.com> (raw)

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?

             reply	other threads:[~2007-12-17 22:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-17 22:27 Drew Adams [this message]
2007-12-18 15:56 ` error "Cannot switch buffers in (minibuffer | a dedicated) window" Richard Stallman
2007-12-18 16:29   ` Drew Adams
2007-12-19 10:12     ` Richard Stallman
2007-12-21  0:43 ` Stefan Monnier
2007-12-21  5:29   ` error "Cannot switch buffers in (minibuffer | a dedicated)window" Drew Adams
2008-02-13  7:18   ` pop-tag-mark - shouldn't it use pop-to-buffer instead of switch-to-buffer? Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DHEEKFAFJEFOJHLCFPFDGEODCCAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).