Typically, I have a frame split into four windows, where two at the bottom are dedicated to my *compilation* and *grep* buffers. When browsing compilation errors, next-error will eventually replace my *grep* buffer with one of the target file.
How can I configure next-error to not use the window containing the *grep* buffer?
My specific use-case is the next-error command, but more general answers are welcome as well.