Avoid double-splitting windows when display-buffer-base-action is non-nil#21
Avoid double-splitting windows when display-buffer-base-action is non-nil#21ktfleming wants to merge 1 commit intokaorahi:masterfrom
Conversation
For the same reason that we bind pop-up-windows to nil: to avoid double-splitting windows.
|
Thank you for the PR! (A) I couldn't reproduce the issue. Could you provide the steps starting from If possible, here's what works best for me:
(B) From the elisp info (Windows > Displaying Buffers > Precedence of Action Functions), would |
|
Ah, sorry -- I was trying different values for Regarding |
|
thx! I can reproduce the issue now. Is this what we want to do? Though the following code also seems to work, the above one might be safer for backward compatibility. |
|
I can confirm that
So your solution is definitely preferable to mine that sets |
|
fixed in 18d98c0. I hadn't noticed this issue myself, and this PR gave me a chance to catch up on the modern approach to |
If you set
display-buffer-base-actionlike so:(setopt display-buffer-base-action '((display-buffer-pop-up-window)))then calling
howm-list-allwill create multiple, duplicate windows. There's some code that addresses this by bindingpop-up-windowstonil; this PR does the same fordisplay-buffer-base-actionto avoid the multiple splits.