On Sat, 29 May 2004, juri@jurta.org wrote: > But there is even simpler solution for the user to select a buffer > for the next C-x `. > > Taking into account the recent addition of a rule in > `next-error-find-buffer' which returns a buffer which is displayed > only in one window with a next-error capable buffer on the selected > frame, the user can simply remove the unwanted window with a > next-error capable buffer (e.g. *grep* buffer in the aforementioned > test case) from the selected frame and C-x ` will use the buffer from > the remaining window (e.g. a patch file) even if it is not the same as > next-error-last-buffer. Nice, that simplifies things a lot. > So the only change needed is to modify the rule order like you proposed, > which could look as below: > > 1. If one window on the selected frame displays such buffer, return it. > 2. If next-error-last-buffer is set to a live buffer, use that. > 3. If the current buffer is a next-error capable buffer, return it. > ... Patch attached (unified and context). Ted