Make print! et co always respect standard-output
This commit is contained in:
parent
3b2a37d9a1
commit
6f7bdc801a
1 changed files with 2 additions and 3 deletions
|
@ -106,9 +106,8 @@ Accepts 'ansi and 'text-properties. nil means don't render colors.")
|
|||
;;;###autoload
|
||||
(defun doom--format-print (output)
|
||||
(unless (string-empty-p output)
|
||||
(if (not noninteractive)
|
||||
(message "%s" output)
|
||||
(princ output)
|
||||
(princ output)
|
||||
(when (or noninteractive (not (eq standard-output t)))
|
||||
(terpri)) ; newline
|
||||
t))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue