diff options
author | Timo Lilja <timo.lilja@iki.fi> | 2015-02-05 07:52:15 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2015-02-05 07:52:15 +0000 |
commit | df1e4ea210c081c969e092628aa999b1a4d59dfd (patch) | |
tree | 94e2b2c5a89085581f66e58dcaddc36513369d06 /lisp/gnus/mail-source.el | |
parent | 4f6901c3fcdacb4a6cb7bdcd694aab73db999748 (diff) | |
download | emacs-df1e4ea210c081c969e092628aa999b1a4d59dfd.tar.gz |
lisp/gnus/mail-source.el (mail-source-call-script): Pop up an error buffer if a mail script fails
Diffstat (limited to 'lisp/gnus/mail-source.el')
-rw-r--r-- | lisp/gnus/mail-source.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index eb05d714aba..94c8950988d 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/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 - (not (zerop result))) - (set-buffer stderr) - (message "Mail source error: %s" (buffer-string))) - (kill-buffer stderr))) + (if (and result + (not (zerop result))) + (progn + (split-window-vertically) + (other-window 1) + (switch-to-buffer stderr) + (message "Mail source error: %s " (buffer-string))) + (kill-buffer stderr)))) ;;; ;;; Different fetchers |