unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 'emacs -batch -eval ... -f ...' outputs everyday crunching to stderr?
@ 2014-09-02  2:31 Emanuel Berg
       [not found] ` <mailman.8241.1409820712.1147.help-gnu-emacs@gnu.org>
  2014-09-20 23:15 ` Emanuel Berg
  0 siblings, 2 replies; 3+ messages in thread
From: Emanuel Berg @ 2014-09-02  2:31 UTC (permalink / raw)
  To: help-gnu-emacs

I have a Makefile [1] to manage all my Elisp.

Today I set out to make it not echo all the
"Loading..." and "Wrote..." stuff, and the command
itself (lots of noise, as repeated for each source
file), so that, when compiling, I would be able to
detect warnings and errors and not just drown in all
the other output.

'make -s' was the way to not echo the command, for the
other stuff I used sed:

# only errors and warnings should be outputed
sed-filter=2>&1 | sed '/^\(Loading\|Wrote\)/d'

The strange thing is that the 2>&1 is required. It
seems, 'emacs -batch -eval ... -f ...' outputs the
"Loading..." and "Wrote..." stuff to stderr - any
ideas why?

Other comments also welcome.

I include several comments to make the Makefile
manageable.

[1] http://user.it.uu.se/~embe8573/conf/emacs-init/Makefile

-- 
underground experts united


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

end of thread, other threads:[~2014-09-20 23:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02  2:31 'emacs -batch -eval ... -f ...' outputs everyday crunching to stderr? Emanuel Berg
     [not found] ` <mailman.8241.1409820712.1147.help-gnu-emacs@gnu.org>
2014-09-04 18:52   ` Emanuel Berg
2014-09-20 23:15 ` Emanuel Berg

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