Fix #5253: error if message is called with nil arg
This commit is contained in:
parent
aeb809ed8b
commit
8da669adf0
1 changed files with 6 additions and 5 deletions
|
@ -255,11 +255,12 @@ DEST can be one or more of `standard-output', a buffer, a file"
|
||||||
(insert-char out))
|
(insert-char out))
|
||||||
(send-string-to-terminal (char-to-string out)))))
|
(send-string-to-terminal (char-to-string out)))))
|
||||||
(letf! (defun message (msg &rest args)
|
(letf! (defun message (msg &rest args)
|
||||||
(print-group!
|
(when msg
|
||||||
(with-current-buffer log-buffer
|
(print-group!
|
||||||
(insert (doom--format (apply #'format msg args)) "\n"))
|
(with-current-buffer log-buffer
|
||||||
(when (or doom-debug-p (not inhibit-message))
|
(insert (doom--format (apply #'format msg args)) "\n"))
|
||||||
(doom--print (doom--format (apply #'format msg args)))))
|
(when (or doom-debug-p (not inhibit-message))
|
||||||
|
(doom--print (doom--format (apply #'format msg args))))))
|
||||||
message)
|
message)
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
,(macroexp-progn body)
|
,(macroexp-progn body)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue