unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
Cc: 24157@debbugs.gnu.org
Subject: bug#24157: 25.1.50; (princ "..." t) does not go to stderr in batch mode
Date: Fri, 05 Aug 2016 09:03:09 +0300	[thread overview]
Message-ID: <83popnlplu.fsf@gnu.org> (raw)
In-Reply-To: <304c8bc0-19f8-c69b-9617-f8ceb9c12d0c@live.com> (message from Clément Pit--Claudel on Fri, 5 Aug 2016 01:29:15 -0400)

tags 24157 + notabug
thanks

> From: Clément Pit--Claudel <clement.pitclaudel@live.com>
> Date: Fri, 5 Aug 2016 01:29:15 -0400
> 
> 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?

You are reading stale documentation.  The current (25.1RC1) manual
says this instead:

     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 descriptors when in batch mode:
  ‘message’ writes to the standard error descriptor, while ‘prin1’ and
  other print functions write to the standard output.

OK to close this bug?





  parent reply	other threads:[~2016-08-05  6:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Eli Zaretskii [this message]
2016-08-05  7:11   ` bug#24157: 25.1.50; (princ "..." t) does not go to stderr in batch mode Clément Pit--Claudel
2016-08-05  8:20     ` Andreas Schwab
2016-08-05 13:52     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83popnlplu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24157@debbugs.gnu.org \
    --cc=clement.pitclaudel@live.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).