[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: switch-to-buffer: for interactive use only

From: Glenn Morris
Subject: Re: switch-to-buffer: for interactive use only
Date: Tue, 05 Jul 2011 21:49:34 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Stefan Monnier wrote:

> Most of those calls were bugs waiting to catch you in Emacs<23 ("you"
> being typically a user like myself who uses dedicated windows and/or
> minibuffer-only frames).
>> Isn't there a better way to handle this than replacing hundreds of
>> calls with `pop-to-buffer-same-window'?
> Not sure what that way would be.

Fix switch-to-buffer?

Eg make it call pop-to-buffer-same-window in the non-interactive-case?
Then make a new function
that does what the old version used to?

Since you say above that "most" calls to switch-to-buffer were wrong,
why not fix the majority by fixing switch-to-buffer, and let the
minority of cases which need to do something different do so, if and
when it turns out to matter?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]