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:
parent
93d2a2212d
commit
784ae418da
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ to a pop up buffer."
|
||||||
(require 'pp)
|
(require 'pp)
|
||||||
(let ((result
|
(let ((result
|
||||||
(let ((debug-on-error t)
|
(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
|
(eval (read
|
||||||
(concat "(progn "
|
(concat "(progn "
|
||||||
(buffer-substring-no-properties beg end)
|
(buffer-substring-no-properties beg end)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue