From b6985e13cb6ac2b34ce1cb7cedb63f779f067d2b Mon Sep 17 00:00:00 2001 From: djcb Date: Tue, 27 Dec 2016 16:52:20 +0200 Subject: [PATCH] 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. --- mu4e/mu4e-utils.el | 11 +++++++---- mu4e/mu4e.texi | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/mu4e/mu4e-utils.el b/mu4e/mu4e-utils.el index 3e42af5d..eb2b8472 100644 --- a/mu4e/mu4e-utils.el +++ b/mu4e/mu4e-utils.el @@ -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) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi index 2d51803b..7eaa16f8 100644 --- a/mu4e/mu4e.texi +++ b/mu4e/mu4e.texi @@ -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