[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Script output in mail-source directory :prescript
From: |
Timo Lilja |
Subject: |
Re: Script output in mail-source directory :prescript |
Date: |
Sat, 13 May 2006 20:04:48 +0300 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>Timo Lilja <timo.lilja@hut.fi> writes:
>
>> Nope, It didn't work for me but I modified it a bit and now it works:
>
>Could you send me a diff against the current sources?
Okey, here is the diff against the latest CVS:
Index: mail-source.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/mail-source.el,v
retrieving revision 7.17
diff -u -r7.17 mail-source.el5A
--- mail-source.el 30 Apr 2006 09:44:06 -0000 7.17
+++ mail-source.el 13 May 2006 17:02:32 -0000
@@ -685,13 +685,16 @@
(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
Just occured to me that using routines from gnus-win.el might make
this task a bit easier.
--
Timo Lilja
"It's a 106 miles to Chicago. We've got a full tank of gas,
half a pack of cigarettes, it's dark, and we're wearing sunglasses."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Script output in mail-source directory :prescript,
Timo Lilja <=