mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -18,10 +18,8 @@ to a pop up buffer."
|
||||
(doom--current-module
|
||||
. ,(ignore-errors
|
||||
(doom-module-from-path buffer-file-name))))))))
|
||||
(if (stringp result)
|
||||
result
|
||||
(require 'pp)
|
||||
(pp-to-string result)))
|
||||
(require 'pp)
|
||||
(replace-regexp-in-string "\\\\n" "\n" (pp-to-string result)))
|
||||
(error (error-message-string e)))))
|
||||
(current-buffer)))
|
||||
|
||||
|
Reference in New Issue
Block a user