emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master c0d866d: * lisp/emacs-lisp/bytecomp.el (compile-def


From: Stefan Monnier
Subject: [Emacs-diffs] master c0d866d: * lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.
Date: Thu, 29 Oct 2015 14:31:45 +0000

branch: master
commit c0d866dd690ffef08894dbce573c636ab0b42665
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.
---
 lisp/emacs-lisp/bytecomp.el |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index d138eff..db200f3 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1901,7 +1901,10 @@ With argument ARG, insert value in current buffer after 
the form."
                   (let ((read-with-symbol-positions (current-buffer))
                         (read-symbol-positions-list nil))
                     (displaying-byte-compile-warnings
-                     (byte-compile-sexp (read (current-buffer)))))
+                     (byte-compile-sexp
+                       (eval-sexp-add-defvars
+                        (read (current-buffer))
+                        byte-compile-read-position))))
                    lexical-binding)))
       (cond (arg
             (message "Compiling from buffer... done.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]