branch: externals/compat
commit 530ad76f7e415ba84958eb53e2071bbeb577f390
Author: Philip Kaludercic <phil...@posteo.net>
Commit: Philip Kaludercic <phil...@posteo.net>

    Document why byte-compile-current-file is bound
---
 compat.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/compat.el b/compat.el
index 13dd46dc19..3fdb9dfd74 100644
--- a/compat.el
+++ b/compat.el
@@ -72,6 +72,9 @@
                             compat-defvar
                             defvar))
                 (push form defs)))))
+        ;; We bind `byte-compile-current-file' before macro-expanding,
+        ;; so that `compat--generate-function' can correctly infer the
+        ;; compatibility version currently being processed.
         (let ((byte-compile-current-file file))
           (macroexpand-all
            (macroexp-progn

Reply via email to