* mu4e-view.el: fix closing / killing the view buffer
This commit is contained in:
@ -457,11 +457,8 @@ number them so they can be opened using `mu4e-view-go-to-url'."
|
|||||||
(propertize (format "[%d]" num)
|
(propertize (format "[%d]" num)
|
||||||
'face 'mu4e-view-url-number-face))))))))
|
'face 'mu4e-view-url-number-face))))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;; functions for org-contacts
|
;; functions for org-contacts
|
||||||
|
|
||||||
(defun mu4e-view-snarf-from (name-or-email)
|
(defun mu4e-view-snarf-from (name-or-email)
|
||||||
"Get the From:-data for the current message; NAME-OR-EMAIL should
|
"Get the From:-data for the current message; NAME-OR-EMAIL should
|
||||||
be a symbol 'name or 'email to get the corresponding field. If the
|
be a symbol 'name or 'email to get the corresponding field. If the
|
||||||
@ -540,8 +537,9 @@ citations."
|
|||||||
(defun mu4e-view-kill-buffer-and-window ()
|
(defun mu4e-view-kill-buffer-and-window ()
|
||||||
"Quit the message view and return to the headers."
|
"Quit the message view and return to the headers."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(when (buffer-live-p mu4e-view-buffer)
|
||||||
(with-current-buffer mu4e-view-buffer
|
(with-current-buffer mu4e-view-buffer
|
||||||
(kill-buffer-and-window)))
|
(kill-buffer-and-window))))
|
||||||
|
|
||||||
(defun mu4e-view-next-header ()
|
(defun mu4e-view-next-header ()
|
||||||
"View the next header."
|
"View the next header."
|
||||||
@ -655,6 +653,4 @@ results."
|
|||||||
(current-buffer) cmd))
|
(current-buffer) cmd))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(provide 'mu4e-view)
|
(provide 'mu4e-view)
|
||||||
|
|||||||
Reference in New Issue
Block a user