aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2023-02-17 17:31:17 +0000
committerAlan Mackenzie2023-02-17 17:31:17 +0000
commitfcf2f7aeada365eeb1b3bcc9288b59cdb70fc02a (patch)
treea1715f7018c07897f50553662f49a4559475e67c
parenta5ad897b35fd5f9079977b12d69da253cbcfcb8a (diff)
downloademacs-fcf2f7aeada365eeb1b3bcc9288b59cdb70fc02a.tar.gz
emacs-fcf2f7aeada365eeb1b3bcc9288b59cdb70fc02a.zip
Make the byte compiler give correct warning positions in eval-and-compile
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.
-rw-r--r--lisp/emacs-lisp/bytecomp.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index e8a8fe37756..a0e124bcf1b 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -530,10 +530,9 @@ Return the compile-time value of FORM."
530 ;; or byte-compile-file-form. 530 ;; or byte-compile-file-form.
531 (let* ((print-symbols-bare t) ; Possibly redundant binding. 531 (let* ((print-symbols-bare t) ; Possibly redundant binding.
532 (expanded 532 (expanded
533 (byte-run-strip-symbol-positions 533 (macroexpand--all-toplevel
534 (macroexpand--all-toplevel 534 form
535 form 535 macroexpand-all-environment)))
536 macroexpand-all-environment))))
537 (eval expanded lexical-binding) 536 (eval expanded lexical-binding)
538 expanded))))) 537 expanded)))))
539 (with-suppressed-warnings 538 (with-suppressed-warnings