emacs-devel
[Top][All Lists]
Advanced

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

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


From: Andreas Röhler
Subject: Re: switch-to-buffer: for interactive use only
Date: Wed, 06 Jul 2011 07:55:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11

Am 06.07.2011 03:49, schrieb Glenn Morris:
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
switch-to-buffer-sometimes-fails-and-you-probably-dont-want-this
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?



Hi,

AFAIU switch-to-buffer is simply not TRT when called from a program.
AFAICT it has the nasty side-effect slowing down execution, introducing that kind of bug at least.

So far marking "for interacive use only" looks correct for me.

Cheers,

Andreas



reply via email to

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