-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display-buffer-alist not respecting window settings #16507
Comments
I've been able to get the functionality working (more or less). It seems there's nothing wrong with the above elisp, but that mu4e doesn't respect the settings on first launch. For anyone else having this issue I got mu4e working within the window called in Spacemacs with the following 2 steps:
;; stop mu4e decimating windows on launch
(add-to-list 'display-buffer-alist
`(,(regexp-quote mu4e-main-buffer-name)
display-buffer-same-window))
(add-to-list 'spacemacs-display-buffer-alist
`(,(regexp-quote mu4e-main-buffer-name)
display-buffer-same-window))
note: running mu4e the 1st time in each session will still wipe all windows in the frame. |
I don't use the spacemacs-purpose layer myself but can reproduce the problem on a default installation. (add-to-list 'purpose-action-function-ignore-buffer-names (regexp-quote mu4e-main-buffer-name)) I think the variable |
In mu4e displaying the main-view removes all windows in the frame by calling
delete-other-windows
. This is apparently a feature not a bug. I'm trying to get the mu4e main view to open in the window it is called.The dev helpfully suggests updating
display-buffer-alist
to disable this behavior with the following elisp:While this seems to be allowing most users to keep their window setup, it isn't working for me. This leads me to believe it may be an issue with how Spacemacs deals with
display-buffer-alist
.I can see I've successfully stored the mu4e main buffer to the buffer alist because describing the variable returns:
Because this wasn't working for me I tried updating the Spacemacs-specific buffer alist.
I noticed it needed the value stored to both variables to stick, but it looks like I've managed to store it appropriately:
Even with these changes, every time mu4e's main view is displayed it wipes all my windows in the same frame.
Why can't I get the main window displayed in the same window as called?
OS: Pop!OS 22.04
Emacs: 29.4
Spacemacs: latest develop
mu4e: 1.12.5
The text was updated successfully, but these errors were encountered: