* don't return to headers view after closing mu4e
This commit is contained in:
@ -749,12 +749,11 @@ otherwise, limit to up to `mu4e-search-results-limit'."
|
||||
(when expr
|
||||
(mu4e-hdrs-search expr current-prefix-arg)))
|
||||
|
||||
|
||||
(defun mu4e-hdrs-kill-buffer-and-window ()
|
||||
"Quit the message view and return to the main view."
|
||||
(interactive)
|
||||
(mu4e-kill-buffer-and-window mu4e-hdrs-buffer)
|
||||
(mu4e))
|
||||
(mu4e-main-view))
|
||||
|
||||
(defun mu4e-rerun-search ()
|
||||
"Rerun the search for the last search expression; if none exists,
|
||||
|
||||
@ -312,10 +312,9 @@ point in eiter the headers buffer or the view buffer."
|
||||
`kill-buffer-and-window', but can be called from any buffer, and
|
||||
simply does not attempt to delete the window if there is none,
|
||||
instead of erroring out."
|
||||
(when (buffer-live-p buf)
|
||||
(with-current-buffer buf
|
||||
(when (buffer-live-p buf)
|
||||
((bury-buffer buf)
|
||||
(delete-windows-on buf) ;; destroy all windows for this buffer
|
||||
(delete-windows-on buf) ;; destroy all windows for this buffer
|
||||
(kill-buffer buf))))
|
||||
|
||||
(defun mu4e-select-other-view ()
|
||||
|
||||
@ -540,10 +540,7 @@ citations."
|
||||
(defun mu4e-view-kill-buffer-and-window ()
|
||||
"Quit the message view and return to the headers."
|
||||
(interactive)
|
||||
(when (buffer-live-p mu4e-view-buffer)
|
||||
(with-current-buffer mu4e-view-buffer
|
||||
;; (mu4e-kill-buffer-and-window mu4e-view-buffer)
|
||||
(kill-buffer-and-window))))
|
||||
(mu4e-kill-buffer-and-window mu4e-view-buffer))
|
||||
|
||||
(defun mu4e-view-next-header ()
|
||||
"View the next header."
|
||||
|
||||
Reference in New Issue
Block a user