cwebber pushed a commit to branch wip-elisp-rebased
in repository guile.

commit c8f94d3917efa9518525e2bccca2639ba57bc341
Author: Robin Templeton <[email protected]>
AuthorDate: Mon Aug 4 23:08:12 2014 -0400

    defconst, defvar: proclaim special at compile-time
    
    (Best-ability ChangeLog annotation added by Christine Lemmer-Webber.)
    
    * module/language/elisp/compile-tree-il.scm (defconst, defvar): Use
      proclaim-special!.
---
 module/language/elisp/compile-tree-il.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/module/language/elisp/compile-tree-il.scm 
b/module/language/elisp/compile-tree-il.scm
index 731b6e5..4304fba 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

Reply via email to