Skip to content

Commit 12ae9a7

Browse files
committed
Output to stderr in batch mode
1 parent 89d3867 commit 12ae9a7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

straight.el

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -559,14 +559,12 @@ function with the quoted name of the argument, or use t."
559559

560560
;;;;; Messaging
561561

562-
(defun straight--output (string &rest objects)
563-
"Same as `message' (which see for STRING and OBJECTS) normally.
564-
However, in batch mode, print to stdout instead of stderr."
565-
(if noninteractive
566-
(progn
567-
(princ (apply #'format string objects))
568-
(terpri))
569-
(apply #'message string objects)))
562+
;; This used to be a function that would be `message' interactively
563+
;; but print to stdout (rather than stderr, as `message' does) in
564+
;; batch mode. I changed it because it was strange to output status
565+
;; messages to stdout. See:
566+
;; https://github.com/radian-software/straight.el/issues/1200
567+
(defalias 'straight--output #'message)
570568

571569
(defmacro straight--with-progress (task &rest body)
572570
"Displaying TASK as a progress indicator, eval and return BODY.

0 commit comments

Comments
 (0)