mu4e: fix background mu4e

Fixes #2593.
This commit is contained in:
Dirk-Jan C. Binnema 2023-11-12 23:27:46 +02:00
parent e71640fdfa
commit 17ea8bd613
1 changed files with 5 additions and 4 deletions

View File

@ -65,10 +65,11 @@ is non-nil."
(progn (progn
(mu4e--init-handlers) (mu4e--init-handlers)
(mu4e--start (unless background #'mu4e--main-view))) (mu4e--start (unless background #'mu4e--main-view)))
;; mu4e already running ;; mu4e already running; show unless BACKGROUND
(when (and (not background) (unless background
(buffer-live-p (get-buffer mu4e-main-buffer-name))) (if (buffer-live-p (get-buffer mu4e-main-buffer-name))
(switch-to-buffer mu4e-main-buffer-name)))) (switch-to-buffer mu4e-main-buffer-name)
(mu4e--main-view)))))
(defun mu4e-quit(&optional bury) (defun mu4e-quit(&optional bury)
"Quit the mu4e session or bury the buffer. "Quit the mu4e session or bury the buffer.