]> git.eshelyaron.com Git - emacs.git/commit
(byte-compile-maybe-guarded): Make its code edebuggable
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 24 Mar 2025 21:12:16 +0000 (17:12 -0400)
committerEshel Yaron <me@eshelyaron.com>
Tue, 25 Mar 2025 18:19:12 +0000 (19:19 +0100)
commit3f8b84fb7315e05aa2a7f601b58c6ea952a13717
treea76914cef91b9f80875e088d1eb5cbc5d77dd696
parentf570c0653ec9089c5fd6c01fdff1c20ad1fe5108
(byte-compile-maybe-guarded): Make its code edebuggable

* lisp/emacs-lisp/bytecomp.el (byte-compile--reify-function): Hoist
subexpression out of `if`.
(byte-compile-variadic-numeric, byte-compile--cond-vars)
(byte-compile--cond-switch-prefix, byte-compile-file-form-defalias):
Obey `lexical-binding` when evaluating the code we're compiling.
(byte-compile--maybe-guarded): New function, extracted from
`byte-compile-maybe-guarded`.
(byte-compile-maybe-guarded): Use it so we can edebug the code.

(cherry picked from commit c26862a6c9f2d46f41b4f91972d139a138cb2edf)
lisp/emacs-lisp/bytecomp.el