[gnus git] branch master updated: m0-11-147-g1f29630 =1= Pop up an error buffer if a mail script fails
Lars <[email protected]> Thu, 05 Feb 2015 07:30:54 +0100
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 1f29630d1478a92b0df91f33fdd1200b09554252 (commit)
from f00e96c14eca2363de5214f14d63c7d01f626a47 (commit)
- Log -----------------------------------------------------------------
commit 1f29630d1478a92b0df91f33fdd1200b09554252
Author: Timo Lilja <[email protected]>
Date: Thu Feb 5 17:30:12 2015 +1100
Pop up an error buffer if a mail script fails
* mail-source.el (mail-source-call-script): If scripts exit with an
error, pop up an error buffer.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f272df9..490d731 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-05 Timo Lilja <[email protected]> (tiny change)
+
+ * mail-source.el (mail-source-call-script): If scripts exit with an
+ error, pop up an error buffer.
+
2015-02-05 Lars Ingebrigtsen <[email protected]>
* gnus-sum.el (gnus-extra-headers): Add the popular Gmail X-GM-LABELS
diff --git a/lisp/mail-source.el b/lisp/mail-source.el
index eb05d71..94c8950 100644
--- a/lisp/mail-source.el
+++ b/lisp/mail-source.el
@@ -750,13 +750,16 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile)
(setq script (substring script 0 (match-beginning 0))
background 0))
(setq result
- (call-process shell-file-name nil background nil
+ (call-process shell-file-name nil stderr nil
shell-command-switch script))
- (when (and result
+ (if (and result
(not (zerop result)))
- (set-buffer stderr)
- (message "Mail source error: %s" (buffer-string)))
- (kill-buffer stderr)))
+ (progn
+ (split-window-vertically)
+ (other-window 1)
+ (switch-to-buffer stderr)
+ (message "Mail source error: %s " (buffer-string)))
+ (kill-buffer stderr))))
;;;
;;; Different fetchers
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 5 +++++
lisp/mail-source.el | 15 +++++++++------
2 files changed, 14 insertions(+), 6 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project