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:
Henrik Lissner 2019-10-26 21:52:29 -04:00
parent 73b8a5b496
commit ccf7197acf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)))