bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#24157: 25.1.50; (princ "..." t) does not go to stderr in batch mode


From: Clément Pit--Claudel
Subject: bug#24157: 25.1.50; (princ "..." t) does not go to stderr in batch mode
Date: Fri, 5 Aug 2016 03:11:59 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 2016-08-05 02:03, Eli Zaretskii wrote:
> OK to close this bug?

Thanks Eli. Sorry for the false alarm.

This means that the only way to write to stderr without a newline is (let 
((cursor-in-echo-area t)) (message ...)), right? This is not ideal.

Also, I still think that this is an issue:

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

  to stderr.
  $ emacs --batch --eval '(progn (message "to stderr.") (princ "to stdout!"))' 
> /dev/null
  to stderr.
  $ emacs --batch --eval '(progn (princ "to stdout!") (message "to stderr."))' 
2> /dev/null
  to stdout!

If I read what you sent correctly, the first two rpograms should produce the 
same output, and the call to princ shouldn't cause 'message' to insert a 
newline before "to stderr.", right?

Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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