Fix wrong-type-argument on +emacs-lisp-eval

When using +eval commands in file-less buffers, like the scratch buffer.
This commit is contained in:
Henrik Lissner 2019-03-15 16:15:17 -04:00
parent 93d2a2212d
commit 784ae418da
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -10,7 +10,7 @@ to a pop up buffer."
(require 'pp)
(let ((result
(let ((debug-on-error t)
(doom--current-module (doom-module-from-path buffer-file-name)))
(doom--current-module (ignore-errors (doom-module-from-path buffer-file-name))))
(eval (read
(concat "(progn "
(buffer-substring-no-properties beg end)