* mu4e-view.el: fix closing / killing the view buffer

This commit is contained in:
djcb 2012-04-11 18:27:26 +03:00
parent f7335bf6cd
commit 1f4b169a09
1 changed files with 3 additions and 7 deletions

View File

@ -457,11 +457,8 @@ number them so they can be opened using `mu4e-view-go-to-url'."
(propertize (format "[%d]" num)
'face 'mu4e-view-url-number-face))))))))
;; functions for org-contacts
(defun mu4e-view-snarf-from (name-or-email)
"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
@ -540,8 +537,9 @@ citations."
(defun mu4e-view-kill-buffer-and-window ()
"Quit the message view and return to the headers."
(interactive)
(with-current-buffer mu4e-view-buffer
(kill-buffer-and-window)))
(when (buffer-live-p mu4e-view-buffer)
(with-current-buffer mu4e-view-buffer
(kill-buffer-and-window))))
(defun mu4e-view-next-header ()
"View the next header."
@ -655,6 +653,4 @@ results."
(current-buffer) cmd))
(provide 'mu4e-view)