* mu4e/mu4e-main.el (mu4e-interrupt-update-mail): New function to stop update process.(SIGINT) (mu4e~main-view): Use it and bind it to S.

* mu4e/mu4e-utils.el (mu4e-update-mail-and-index): Fix Window and buffer process.
This commit is contained in:
Thierry Volpiatto
2013-10-08 14:42:30 +02:00
parent 7472a3bb07
commit 8da15dc8f2
2 changed files with 21 additions and 15 deletions

View File

@ -47,6 +47,7 @@
;;
(define-key map "U" 'mu4e-update-mail-and-index)
(define-key map "S" 'mu4e-interrupt-update-mail)
(define-key map (kbd "C-S-u") 'mu4e-update-mail-and-index)
@ -134,7 +135,8 @@ clicked."
(mu4e~main-action-str "\t* [U]pdate email & database\n"
'mu4e-update-mail-show-window)
(mu4e~main-action-str "\t* [S]top update email\n"
'mu4e-interrupt-update-mail)
;; show the queue functions if `smtpmail-queue-dir' is defined
(if (file-directory-p smtpmail-queue-dir)
(concat
@ -152,6 +154,11 @@ clicked."
(mu4e-main-mode)
(switch-to-buffer buf))))
(defun mu4e-interrupt-update-mail ()
(interactive)
(interrupt-process (get-buffer-process
(get-buffer mu4e--update-buffer-name)) t))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Interactive functions
(defun mu4e~main-toggle-mail-sending-mode ()