purpose--fix-compilation-next-error-function attempts to dedicate the window displaying *compilation* while next-error is running, to prevent that window from becoming hidden.
However, it also causes random windows to become confusingly dedicated when next-error is invoked with the *compilation* buffer not currently displayed.
To reproduce:
Open two text files, a.txt and b.txt
M-x rgrep and search for some string that occurs in both files
M-x next-error (this should take you to one of the files)
Close the *grep* buffer's window
M-x next-error (this should take you to the other file)
The first file's window is now unexpectedly dedicated to that buffer
purpose--fix-compilation-next-error-function
attempts to dedicate the window displaying*compilation*
whilenext-error
is running, to prevent that window from becoming hidden.However, it also causes random windows to become confusingly dedicated when
next-error
is invoked with the*compilation*
buffer not currently displayed.To reproduce:
a.txt
andb.txt
M-x rgrep
and search for some string that occurs in both filesM-x next-error
(this should take you to one of the files)*grep*
buffer's windowM-x next-error
(this should take you to the other file)