lang/emacs-lisp: print string repr of evaluated result
This makes the return type of the evaluated result clearer at a glance.
This commit is contained in:
parent
73b8a5b496
commit
ccf7197acf
1 changed files with 2 additions and 4 deletions
|
@ -18,10 +18,8 @@ to a pop up buffer."
|
||||||
(doom--current-module
|
(doom--current-module
|
||||||
. ,(ignore-errors
|
. ,(ignore-errors
|
||||||
(doom-module-from-path buffer-file-name))))))))
|
(doom-module-from-path buffer-file-name))))))))
|
||||||
(if (stringp result)
|
|
||||||
result
|
|
||||||
(require 'pp)
|
(require 'pp)
|
||||||
(pp-to-string result)))
|
(replace-regexp-in-string "\\\\n" "\n" (pp-to-string result)))
|
||||||
(error (error-message-string e)))))
|
(error (error-message-string e)))))
|
||||||
(current-buffer)))
|
(current-buffer)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue