mu4e-main: small cleanups

This commit is contained in:
Dirk-Jan C. Binnema 2023-02-02 23:48:16 +02:00
parent bbea9e5374
commit 66d20d04f5
1 changed files with 63 additions and 63 deletions

View File

@ -247,8 +247,9 @@ character of the keyboard shortcut
(defun mu4e--main-redraw ()
"Redraw the main buffer if there is one.
Otherwise, do nothing."
(when (buffer-live-p (get-buffer mu4e-main-buffer-name))
(with-current-buffer mu4e-main-buffer-name
(when-let* ((buffer (get-buffer mu4e-main-buffer-name))
(buffer (and (buffer-live-p buffer) buffer)))
(with-current-buffer buffer
(let* ((inhibit-read-only t)
(pos (point))
(addrs (mu4e-personal-addresses))
@ -313,7 +314,6 @@ Otherwise, do nothing."
(mu4e-main-mode)
(goto-char pos)))))
(defun mu4e--main-view-queue ()
"Display queue-related actions in the main view."
(concat