unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* error "Cannot switch buffers in (minibuffer | a dedicated) window"
@ 2007-12-17 22:27 Drew Adams
  2007-12-18 15:56 ` Richard Stallman
  2007-12-21  0:43 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Drew Adams @ 2007-12-17 22:27 UTC (permalink / raw)
  To: Emacs-Devel

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?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-13  7:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-17 22:27 error "Cannot switch buffers in (minibuffer | a dedicated) window" Drew Adams
2007-12-18 15:56 ` 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

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).