From: Alan Mackenzie Date: Fri, 17 Feb 2023 17:31:17 +0000 (+0000) Subject: Make the byte compiler give correct warning positions in eval-and-compile X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fcf2f7aeada365eeb1b3bcc9288b59cdb70fc02a;p=emacs.git 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. --- 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." ;; 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