]> git.eshelyaron.com Git - emacs.git/commitdiff
Make the byte compiler give correct warning positions in eval-and-compile
authorAlan Mackenzie <acm@muc.de>
Fri, 17 Feb 2023 17:31:17 +0000 (17:31 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 17 Feb 2023 17:31:17 +0000 (17:31 +0000)
This fixes bug #61579.

* lisp/emacs-lisp/bytecomp.el (byte-compile-initial-environment): Remove a
spurious `byte-run-strip-symbol-position' from the core form of the
eval-and-compile element.

lisp/emacs-lisp/bytecomp.el

index e8a8fe37756afaf635796d7f515ca7725a8e9f2a..a0e124bcf1be03a845b84500338ff9f05200140c 100644 (file)
@@ -530,10 +530,9 @@ Return the compile-time value of FORM."
                               ;; or byte-compile-file-form.
                               (let* ((print-symbols-bare t) ; Possibly redundant binding.
                                      (expanded
-                                      (byte-run-strip-symbol-positions
-                                       (macroexpand--all-toplevel
-                                        form
-                                        macroexpand-all-environment))))
+                                      (macroexpand--all-toplevel
+                                       form
+                                       macroexpand-all-environment)))
                                 (eval expanded lexical-binding)
                                 expanded)))))
     (with-suppressed-warnings