bmag / emacs-purpose

Manage Windows and Buffers According to Purposes
GNU General Public License v3.0
496 stars 23 forks source link

Unrelated windows set to dedicated when invoking next-error #186

Closed bcc32 closed 3 years ago

bcc32 commented 3 years ago

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:

  1. Open two text files, a.txt and b.txt
  2. M-x rgrep and search for some string that occurs in both files
  3. M-x next-error (this should take you to one of the files)
  4. Close the *grep* buffer's window
  5. M-x next-error (this should take you to the other file)
  6. The first file's window is now unexpectedly dedicated to that buffer