mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/emacs-lisp: fix +eval/buffer fn not capturing entire buffer #313
This commit is contained in:
@ -16,7 +16,7 @@
|
|||||||
"Evaluate a region and print it to the echo area (if one line long), otherwise
|
"Evaluate a region and print it to the echo area (if one line long), otherwise
|
||||||
to a pop up buffer."
|
to a pop up buffer."
|
||||||
(require 'pp)
|
(require 'pp)
|
||||||
(let ((result (eval (read (buffer-substring-no-properties beg end))))
|
(let ((result (eval (read (concat "(progn " (buffer-substring-no-properties beg end) "\n)"))))
|
||||||
(buf (get-buffer-create "*doom eval*"))
|
(buf (get-buffer-create "*doom eval*"))
|
||||||
(inhibit-read-only t)
|
(inhibit-read-only t)
|
||||||
lines)
|
lines)
|
||||||
|
Reference in New Issue
Block a user