[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9499: 24.0.50; M-x occur + M-x next-error window config problem
From: |
martin rudalics |
Subject: |
bug#9499: 24.0.50; M-x occur + M-x next-error window config problem |
Date: |
Wed, 14 Sep 2011 11:47:09 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> Start emacs, switch to the *scratch* buffer
> M-x occur RET
> th RET
> M-x next-error
>
> The *Occur* buffer is replaced by another view of the *scratch* buffer
> I expect the *Occur* buffer to stay
It's because
(pop-to-buffer (marker-buffer pos) t)
in `occur-mode-goto-occurrence' has problems reusing the *scratch*
window. More precisely, because the *scratch* window is selected and
the second argument t means to not use the selected window.
If Chong doesn't come up with an easy fix I'll look into it.
martin