[Top][All Lists]

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

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

From: Stefan Monnier
Subject: Re: switch-to-buffer: for interactive use only
Date: Fri, 08 Jul 2011 11:46:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>> No.  `pop-to-buffer-same-window' doesn't use the selected window if it's
>>> weakly dedicated.  Think of making a window dedicated as a poor man's
>>> way of saying "leave this window alone unless I explicitly want to show
>>> another buffer in it".
>> That's a mistake: if the window is fully dedicated, that's right, but if
>> it's weakly dedicated, pop-to-buffer-same-window should override the
>> weak dedication, like switch-to-buffer does (otherwise, there would
>> never be any difference between the two forms of dedication).
> Do you want to change this in the sense that both `switch-to-buffer' and
> `pop-to-buffer-same-window' should reuse a weakly dedicated window?


> In that case I'd obviously agree with Chong that there's no real
> difference between the two.

> So we should make `switch-to-buffer' do what it has always done (just
> that now it's more fully customizable).

I'm not sure what "what it has always done" refers to.  What it used to
do in Emacs-22 (and does again right now) or what it used to do in Emacs-23?

> I'm not sure though whether you
> would want to make `display-buffer' reuse weakly dedicated windows too?

No, indeed, not display-buffer.


reply via email to

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