[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'emacs -batch -eval ... -f ...' outputs everyday crunching to stderr?
From: |
Emanuel Berg |
Subject: |
'emacs -batch -eval ... -f ...' outputs everyday crunching to stderr? |
Date: |
Tue, 02 Sep 2014 04:31:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
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