From: Sebastian Tennant <sebyte@smolny.plus.com>
To: help-gnu-emacs@gnu.org
Subject: Re: batch mode
Date: Mon, 03 Mar 2008 11:36:59 +0200 [thread overview]
Message-ID: <87ve44xi6c.fsf@moley.moleskin.org> (raw)
In-Reply-To: 87tzjo3asi.fsf@thalassa.informatimago.com
Quoth Pascal Bourguignon <pjb@informatimago.com>:
> Sebastian Tennant <sebyte@smolny.plus.com> writes:
>
>> Hi all,
>>
>> By default Emacs in batch mode sends 'message's to stderr.
>>
>> Is it possible to put a directive in the file loaded with the '-l'
>> switch, that tells Emacs to send 'message's to stdout instead?
>
> Why use message if message doesn't do what you want? Use print!
> (and princ, terpri, etc).
It's not my code, and there are a lot of messages in there!
Peter, of course 2>&1 works in a shell, but my guile script calls emacs
directly to avoid the overhead of the shell.
It turns out, guile has good port redirection routines and I'm able to
route stderr programmatically within the script.
Thanks to you both.
Sebastian
next prev parent reply other threads:[~2008-03-03 9:36 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8180.1204483870.18990.help-gnu-emacs@gnu.org>
2008-03-03 0:34 ` batch mode Pascal Bourguignon
2008-03-03 9:36 ` Sebastian Tennant [this message]
[not found] ` <mailman.8214.1204537035.18990.help-gnu-emacs@gnu.org>
2008-03-11 21:18 ` Brendan Halpin
2008-03-12 14:50 ` Suppressing load messages (was: batch mode) Joel J. Adamson
[not found] ` <mailman.8762.1205333492.18990.help-gnu-emacs@gnu.org>
2008-03-12 15:31 ` Suppressing load messages Brendan Halpin
2008-03-12 15:58 ` Lennart Borgman (gmail)
2008-03-12 16:59 ` Joel J. Adamson
[not found] ` <mailman.8775.1205341175.18990.help-gnu-emacs@gnu.org>
2008-03-12 17:30 ` Brendan Halpin
2008-03-12 17:56 ` Lennart Borgman (gmail)
2008-03-12 18:52 ` Joel J. Adamson
[not found] ` <mailman.8782.1205347999.18990.help-gnu-emacs@gnu.org>
2008-03-12 22:35 ` Brendan Halpin
2008-03-13 16:04 ` Joel J. Adamson
[not found] ` <mailman.8845.1205424297.18990.help-gnu-emacs@gnu.org>
2008-03-13 16:54 ` Brendan Halpin
2008-03-13 18:01 ` Lennart Borgman (gmail)
[not found] ` <mailman.8771.1205337534.18990.help-gnu-emacs@gnu.org>
2008-03-12 17:53 ` Brendan Halpin
2008-03-12 18:03 ` Exal de Jesus Garcia Carrillo
2008-03-12 18:35 ` Brendan Halpin
2008-03-12 18:47 ` Exal de Jesus Garcia Carrillo
2008-03-12 22:03 ` Lennart Borgman (gmail)
2008-03-12 23:32 ` Glenn Morris
2008-03-12 23:37 ` Glenn Morris
2008-03-13 3:09 ` Glenn Morris
2008-03-13 1:31 ` Lennart Borgman (gmail)
2008-03-13 3:42 ` Giorgos Keramidas
2008-03-31 2:34 ` David Combs
[not found] ` <mailman.8816.1205371922.18990.help-gnu-emacs@gnu.org>
2008-03-13 9:00 ` Brendan Halpin
2008-03-02 18:50 batch mode Sebastian Tennant
2008-03-02 22:22 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ve44xi6c.fsf@moley.moleskin.org \
--to=sebyte@smolny.plus.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).