From: "Davis Herring" <herring@lanl.gov>
To: "Glenn Morris" <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: messages appear on stderr in batch mode
Date: Wed, 6 Apr 2011 03:34:52 -0700 (PDT) [thread overview]
Message-ID: <57169.130.55.132.138.1302086092.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <ak39lvq260.fsf@fencepost.gnu.org>
> emacs -Q --batch --eval '(message "hello")'
>
> prints "hello" on stderr, not stdout. This is a little annoying when
> trying to write automated build scripts etc for Emacs, since stderr is
> full of noise, and any real errors can be hard to spot.
>
> I guess there is a reason for this, since it is in the manual (and the
> man page, no less); but why?
I presume it's because `message' is used to generate prompts and warnings
which both should go there. Perhaps one is meant to use `print' etc. for
output?
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
prev parent reply other threads:[~2011-04-06 10:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 7:17 messages appear on stderr in batch mode Glenn Morris
2011-04-06 10:34 ` Davis Herring [this message]
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=57169.130.55.132.138.1302086092.squirrel@webmail.lanl.gov \
--to=herring@lanl.gov \
--cc=emacs-devel@gnu.org \
--cc=rgm@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).