[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Window configurations
From: |
martin rudalics |
Subject: |
Re: Window configurations |
Date: |
Fri, 04 Jun 2010 10:11:40 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> There is another case that is more annoying:
>
> 1. Run `emacs -q', the current buffer is "*scratch*".
>
> 2. Type `C-h i', the current buffer is "*info*".
>
> 3. Type `C-h C-t', the current buffer is "TODO".
>
> 4. Type `C-h C-n', the current buffer is "NEWS".
>
> 5. Type `C-x k RET', the current buffer is the previous buffer "TODO", good.
>
> 6. Type `C-x k RET', the current buffer is "*scratch*". Why?
> The previous buffer is "*info*", not "*scratch*"!
This happened in revision 90833 of `pop-to-buffer' from 2008-09-13.
Since then `pop-to-buffer' doesn't reselect the selected window.
The culprit is this conditional
(unless (eq new-window old-window)
;; `display-buffer' has chosen another window, select it.
which does not select the *info* window because it was already selected
before but obviously doesn't record the *info* buffer either :-(
I'm running my code without the conditional for more than two months
now so it shouldn't harm if you remove it as well.
martin
- Re: Window configurations, (continued)
- Re: Window configurations, Juri Linkov, 2010/06/03
- Re: Window configurations, martin rudalics, 2010/06/04
- Re: Window configurations, Juri Linkov, 2010/06/04
- Re: Window configurations, martin rudalics, 2010/06/05
- Re: Window configurations, Juri Linkov, 2010/06/05
- Re: Window configurations, Stefan Monnier, 2010/06/06
- Re: Window configurations, Juri Linkov, 2010/06/07
Re: Window configurations, Juri Linkov, 2010/06/03
- Re: Window configurations,
martin rudalics <=
- Re: Window configurations, Juri Linkov, 2010/06/04
- Re: Window configurations, martin rudalics, 2010/06/05
- Re: Window configurations, Juri Linkov, 2010/06/05
- Re: Window configurations, Stefan Monnier, 2010/06/05
- Re: Window configurations, Juri Linkov, 2010/06/07
Re: Window configurations, martin rudalics, 2010/06/06
Re: Window configurations, Stefan Monnier, 2010/06/06
Re: Window configurations, martin rudalics, 2010/06/07
Re: Window configurations, Stefan Monnier, 2010/06/07
Re: Window configurations, Lennart Borgman, 2010/06/07