]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Oct 2015 13:25:18 +0000 (09:25 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Oct 2015 14:31:40 +0000 (10:31 -0400)
lisp/emacs-lisp/bytecomp.el

index d138effcd9d4a85352e95b28ca9b59694ff3f7cc..db200f3c5041cbb3a8782c276874dc8414c3d8dd 100644 (file)
@@ -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.")