diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-26 14:21:20 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-26 14:21:20 -0500 |
| commit | 4cad94854d308b7e6bba8b478c3e454ddc145108 (patch) | |
| tree | d99af2ef936cc6fcb5cfe4045f1854bb4d573be9 /tests/test-custom-buffer-file-print-diff-eww.el | |
| parent | 28b46a3318c4bc2fd68bfeb9d925a251403e5104 (diff) | |
| download | dotemacs-4cad94854d308b7e6bba8b478c3e454ddc145108.tar.gz dotemacs-4cad94854d308b7e6bba8b478c3e454ddc145108.zip | |
feat(slack): open rooms in another window, never the selected one
slack-buffer-function defaulted to switch-to-buffer-other-window, which gives no real guarantee about placement: with three or more panes it picks a least-recently-used window, and it offers nothing that keeps Slack out of the window point is in. So opening a room in a split could land it wherever, including over the buffer I was working in.
I set slack-buffer-function to cj/slack--display-buffer, a pop-to-buffer call with inhibit-same-window and a reuse / use-some-window / pop-up-window action list. In a split it reuses one of the other windows and leaves the selected window alone; with a lone window it splits. Tests cover both the split-placement case and the selected-window-preserved invariant.
Diffstat (limited to 'tests/test-custom-buffer-file-print-diff-eww.el')
0 files changed, 0 insertions, 0 deletions
