Skip to content

Commit

Permalink
mu4e: fix background mu4e
Browse files Browse the repository at this point in the history
Fixes #2593.
  • Loading branch information
djcb committed Nov 12, 2023
1 parent e71640f commit 17ea8bd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mu4e/mu4e.el
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ is non-nil."
(progn
(mu4e--init-handlers)
(mu4e--start (unless background #'mu4e--main-view)))
;; mu4e already running
(when (and (not background)
(buffer-live-p (get-buffer mu4e-main-buffer-name)))
(switch-to-buffer mu4e-main-buffer-name))))
;; mu4e already running; show unless BACKGROUND
(unless background
(if (buffer-live-p (get-buffer mu4e-main-buffer-name))
(switch-to-buffer mu4e-main-buffer-name)
(mu4e--main-view)))))

(defun mu4e-quit(&optional bury)
"Quit the mu4e session or bury the buffer.
Expand Down

0 comments on commit 17ea8bd

Please sign in to comment.