diff --git a/module/language/elisp/compile-tree-il.scm b/module/language/elisp/compile-tree-il.scm index 731b6e576..4304fba48 100644 --- a/module/language/elisp/compile-tree-il.scm +++ b/module/language/elisp/compile-tree-il.scm @@ -482,6 +482,7 @@ (defspecial defconst (loc args) (pmatch args ((,sym ,value . ,doc) + (proclaim-special! sym) (make-seq loc (make-call loc @@ -495,12 +496,14 @@ (defspecial defvar (loc args) (pmatch args ((,sym) + (proclaim-special! sym) (make-seq loc (make-call loc (make-module-ref loc runtime 'proclaim-special! #t) (list (make-const loc sym))) (make-const loc sym))) ((,sym ,value . ,doc) + (proclaim-special! sym) (make-seq loc (make-call loc