From da23c5a1d42feca4ce57e38df9bdcb539f338c7e Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 15 Aug 2025 09:23:24 +1000 Subject: [emacs] iarc: show item info and listings --- emacs/.emacs.d/lisp/my/my-gnus.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'emacs/.emacs.d/lisp/my/my-gnus.el') 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'" -- cgit v1.2.3