diff options
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-gnus.el')
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-gnus.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-gnus.el b/emacs/.emacs.d/lisp/my/my-gnus.el index d61efc8..7623548 100644 --- a/emacs/.emacs.d/lisp/my/my-gnus.el +++ b/emacs/.emacs.d/lisp/my/my-gnus.el @@ -427,13 +427,13 @@ The archiving target comes from `my-gnus-group-alist'." (start-process "isync" "*isync*" "mbsync" "-a") (lambda (proc event) (let ((status (process-exit-status proc))) - (when (eq status 0) - (message "isync in progress...done: %s" - (with-current-buffer (process-buffer proc) - (goto-char (point-max)) - (re-search-backward "
") - (buffer-substring (1+ (point)) (point-max)))) - (gnus-group-get-new-news)))))) + (message "isync in progress...%s: %s" + (if (eq status 0) "done" "failed") + (with-current-buffer (process-buffer proc) + (goto-char (point-max)) + (re-search-backward "
") + (buffer-substring (1+ (point)) (point-max)))) + (gnus-group-get-new-news))))) (defun my-gnus-group-refresh (arg) "Call `gnus-group-get-new-news' or, with a prefix arg, `my-isync-sync-mail'" |