From f440bc37a343c7d51366adbc26a1a781a362c6d5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 29 Dec 2017 13:37:26 -0500 Subject: [PATCH] lang/emacs-lisp: fix +eval/buffer fn not capturing entire buffer #313 --- modules/lang/emacs-lisp/autoload.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/emacs-lisp/autoload.el b/modules/lang/emacs-lisp/autoload.el index 50549485c..949a401fc 100644 --- a/modules/lang/emacs-lisp/autoload.el +++ b/modules/lang/emacs-lisp/autoload.el @@ -16,7 +16,7 @@ "Evaluate a region and print it to the echo area (if one line long), otherwise to a pop up buffer." (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*")) (inhibit-read-only t) lines)