mu4e: killing instead of interrupting update process

Rename mu4e-interrupt-update-mail into mu4e-kill-update-mail, and it
kill rather than update the process.

Add backward-compat alias.
This commit is contained in:
djcb 2016-12-27 16:52:20 +02:00
parent 30dab7c312
commit b6985e13cb
2 changed files with 8 additions and 5 deletions

View File

@ -970,7 +970,7 @@ Also scrolls to the final line, and update the progress throbber."
(define-derived-mode mu4e~update-mail-mode special-mode "mu4e:update"
"Major mode used for retrieving new e-mail messages in `mu4e'.")
(define-key mu4e~update-mail-mode-map (kbd "q") 'mu4e-interrupt-update-mail)
(define-key mu4e~update-mail-mode-map (kbd "q") 'mu4e-kill-update-mail)
(defun mu4e~temp-window (buf height)
"Create a temporary window with HEIGHT at the bottom of the
@ -1054,13 +1054,16 @@ in the background; otherwise, pop up a window."
(run-hooks 'mu4e-update-pre-hook)
(mu4e~update-mail-and-index-real run-in-background))))
(defun mu4e-interrupt-update-mail ()
"Stop the update process by sending SIGINT to it."
(defun mu4e-kill-update-mail ()
"Stop the update process by killing it."
(interactive)
(let* ((proc (and (buffer-live-p mu4e~update-buffer)
(get-buffer-process mu4e~update-buffer))))
(when (process-live-p proc)
(interrupt-process proc t))))
(kill-process proc t))))
(define-obsolete-function-alias 'mu4e-interrupt-update-mail
'mu4e-kill-update-mail)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View File

@ -478,7 +478,7 @@ mu4e-update-mail-and-index}, or @kbd{C-S-u} in all @t{mu4e}-views;
alternatively, you can use @kbd{C-c C-u}, which may be more convenient
if you use emacs in a terminal.
You can interrupt the (foreground) update process with @kbd{q}.
You can kill the (foreground) update process with @kbd{q}.
It is possible to update your mail and index periodically in the
background or foreground, by setting the variable