unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24157: 25.1.50; (princ "..." t) does not go to stderr in batch mode
@ 2016-08-05  5:29 Clément Pit--Claudel
       [not found] ` <handler.24157.B.147037498113506.ack@debbugs.gnu.org>
  2016-08-05  6:03 ` bug#24157: 25.1.50; (princ "..." t) does not go to stderr in batch mode Eli Zaretskii
  0 siblings, 2 replies; 6+ messages in thread
From: Clément Pit--Claudel @ 2016-08-05  5:29 UTC (permalink / raw)
  To: 24157


[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]

Contrast this:

  $ emacs --batch --eval '(message "to stderr.")' > /dev/null
  to stderr.

With that (it produces no output):

  $ emacs --batch --eval '(princ "to stderr?" t)' > /dev/null

And yet according to the docs:

  Any Lisp program output that would normally go to the echo area,
  either using message, or using prin1, etc., with t as the stream, goes
  instead to Emacs’s standard error descriptor when in batch mode.
  -- https://www.gnu.org/software/emacs/manual/html_node/elisp/Batch-Mode.html

What am I doing wrong?
Clément.

In GNU Emacs 25.1.50.7 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-07-20 built on clem-w50-mint
Repository revision: a1a0c208e3e895a6ea0942e8e5c4077faf12c7ad
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description:	Linux Mint 18 Sarah


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2016-08-05 13:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-05  5:29 bug#24157: 25.1.50; (princ "..." t) does not go to stderr in batch mode Clément Pit--Claudel
     [not found] ` <handler.24157.B.147037498113506.ack@debbugs.gnu.org>
2016-08-05  5:37   ` bug#24157: Acknowledgement (25.1.50; (princ "..." t) does not go to stderr in batch mode) Clément Pit--Claudel
2016-08-05  6:03 ` bug#24157: 25.1.50; (princ "..." t) does not go to stderr in batch mode Eli Zaretskii
2016-08-05  7:11   ` Clément Pit--Claudel
2016-08-05  8:20     ` Andreas Schwab
2016-08-05 13:52     ` Eli Zaretskii

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