unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* messages appear on stderr in batch mode
@ 2011-04-06  7:17 Glenn Morris
  2011-04-06 10:34 ` Davis Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2011-04-06  7:17 UTC (permalink / raw)
  To: emacs-devel


I never noticed before, but:

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?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: messages appear on stderr in batch mode
  2011-04-06  7:17 messages appear on stderr in batch mode Glenn Morris
@ 2011-04-06 10:34 ` Davis Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Davis Herring @ 2011-04-06 10:34 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

> 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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-06 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-06  7:17 messages appear on stderr in batch mode Glenn Morris
2011-04-06 10:34 ` Davis Herring

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).