branch: externals/compat
commit 76aaecbb2f57116ab77c92315ee2df26187a82d9
Author: Philip Kaludercic <[email protected]>
Commit: Philip Kaludercic <[email protected]>

    Don't macroexpand in compat-insert
    
    This causes issues with macros like declare-function, that expand to
    nil and confuse the byte compiler.
---
 compat.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/compat.el b/compat.el
index dca58424cf..833fe43a55 100644
--- a/compat.el
+++ b/compat.el
@@ -155,8 +155,7 @@
                               compat-advise
                               defvar))
                   (push form defs))))))
-        (macroexpand-all
-         (cons 'progn (nreverse defs))))))))
+        (cons 'progn (nreverse defs)))))))
 
 (compat-insert "24.4")
 (compat-insert "25.1")

Reply via email to