Skip to content

Soft-dedicate the input window so display-buffer leaves it alone#174

Merged
dnouri merged 1 commit intomasterfrom
fix/input-window-dedicated
Mar 20, 2026
Merged

Soft-dedicate the input window so display-buffer leaves it alone#174
dnouri merged 1 commit intomasterfrom
fix/input-window-dedicated

Conversation

@dnouri
Copy link
Copy Markdown
Owner

@dnouri dnouri commented Mar 20, 2026

Packages like magit, help, and compilation call display-buffer to
show their buffers. Emacs picks a target window by walking the
fallback action chain, which considers every non-dedicated window.
Because the input window was never marked dedicated, it was a valid
target—particularly when it happened to be the least recently used
window in a multi-window frame.

Calling set-window-dedicated-p with the value 'side tells Emacs to
skip this window for display-buffer, while still permitting
switch-to-buffer and other-window to reach it.

Packages like magit, help, and compilation call display-buffer to
show their buffers.  Emacs picks a target window by walking the
fallback action chain, which considers every non-dedicated window.
Because the input window was never marked dedicated, it was a valid
target—particularly when it happened to be the least recently used
window in a multi-window frame.

Calling set-window-dedicated-p with the value 'side tells Emacs to
skip this window for display-buffer, while still permitting
switch-to-buffer and other-window to reach it.
@dnouri dnouri merged commit 392b957 into master Mar 20, 2026
11 checks passed
@dnouri dnouri deleted the fix/input-window-dedicated branch March 20, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant