emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controlling where `message' outputs data in batch mode


From: Lars Ingebrigtsen
Subject: Controlling where `message' outputs data in batch mode
Date: Sun, 23 Jun 2019 13:42:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

As the doc string says:

---
(message FORMAT-STRING &rest ARGS)

[...]

In batch mode, the message is printed to the standard error stream,
followed by a newline.
---

I think that's a good default, but it would be nice if it could be
controlled.

While I was looking at all the compilation warnings, I would often do
"make 2> /tmp/warn" and look at that file, which does contain all the
warnings.  However, it also contains the bits where we output
informational progress messages from Emacs, and that seems sub-optimal.

Would it be a good idea to have some way of specifying whether `message'
should output on stdout instead of stderr?

Like

(let ((standard-error 'stdout))
  (message "This is not an error message"))

or...  something.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

[Prev in Thread] Current Thread [Next in Thread]