In emacs --batch (also, emacs --script),
(message "My Message")
will print "My Message" to standard error (file descriptor 2) along with a trailing newline.
What if I don't want the newline? I see that theoretically,
(princ "My Message" standard-error)`
would work, if standard-error
were defined.
Confusingly, standard-output
and standard-input
are defined, however.
Is this even possible?
(defvar standard-error 'external-debugging-output)
makes the above behave nicely, thanks to @wasamasa