[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: switch-to-buffer: for interactive use only
From: |
Chong Yidong |
Subject: |
Re: switch-to-buffer: for interactive use only |
Date: |
Thu, 07 Jul 2011 19:39:56 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> There are two different uses of switch-to-buffer:
> - the ones like in unbury-buffer where the main point is that it
> operates on the selected window.
> - the ones like in find-file where the main point is that it wants to
> display a given buffer.
>
> In single-frame circumstances, the two cases are identical, so most
> authors who use Emacs in a single-frame mode don't even realize that
> there's a choice to be made.
>
> Until Emacs-23, switch-to-buffer assumed the main point was to only
> affect the selected-window (and hence signal an error if the switch is
> not possible).
>
> In Emacs-23, I've changed it to assume that the main point is to
> display the given buffer (by delegating the job to pop-to-buffer if
> necessary).
>
> Recently, I reverted my Emacs-23 change because it introduced bugs
> (e.g. in unbury-buffer and bs--cycle-next).
How bout if switch-to-buffer tries to operate on the selected window,
and calls pop-to-buffer if that is not possible?
- Re: switch-to-buffer: for interactive use only, (continued)
- Re: switch-to-buffer: for interactive use only, Stefan Monnier, 2011/07/05
- Re: switch-to-buffer: for interactive use only, Glenn Morris, 2011/07/05
- Re: switch-to-buffer: for interactive use only, Chong Yidong, 2011/07/06
- Re: switch-to-buffer: for interactive use only, Štěpán Němec, 2011/07/07
- Re: switch-to-buffer: for interactive use only, Stefan Monnier, 2011/07/07
- Re: switch-to-buffer: for interactive use only, Chong Yidong, 2011/07/07
- Re: switch-to-buffer: for interactive use only, Stefan Monnier, 2011/07/07
- Re: switch-to-buffer: for interactive use only,
Chong Yidong <=
- Re: switch-to-buffer: for interactive use only, Juanma Barranquero, 2011/07/07
- Re: switch-to-buffer: for interactive use only, Chong Yidong, 2011/07/07
- Re: switch-to-buffer: for interactive use only, martin rudalics, 2011/07/08
- Re: switch-to-buffer: for interactive use only, martin rudalics, 2011/07/08
- Re: switch-to-buffer: for interactive use only, martin rudalics, 2011/07/08
- Re: switch-to-buffer: for interactive use only, Stefan Monnier, 2011/07/08
- Re: switch-to-buffer: for interactive use only, martin rudalics, 2011/07/08
- Re: switch-to-buffer: for interactive use only, Stefan Monnier, 2011/07/08
- Re: switch-to-buffer: for interactive use only, martin rudalics, 2011/07/08
- Re: switch-to-buffer: for interactive use only, Stefan Monnier, 2011/07/08