Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only dedicate compilation buffer if it is being displayed
Fixes #186. When the compilation buffer is not displayed at the time `next-error` is invoked, then `compilation-window` ends up nil, and `window-dedicated-p` and `set-window-dedicated-p` end up operating on whatever window happens to be selected. This ends up being two different windows if `next-error` moves to a different buffer, and so the dedicated-ness of the windows is not correctly preserved. Fix by only attempting to make the window dedicated if `compilation-window` is non-nil.
- Loading branch information