[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 17/36: defconst, defvar: proclaim special at compile-tim
From: |
Robin Templeton |
Subject: |
[Guile-commits] 17/36: defconst, defvar: proclaim special at compile-time |
Date: |
Sun, 26 Jan 2025 17:49:15 -0500 (EST) |
bpt pushed a commit to branch wip-elisp-rebased
in repository guile.
commit 5899b876c25dbcb8aafd4fb822c7a02b972a8994
Author: Robin Templeton <robin@terpri.org>
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 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
- [Guile-commits] branch wip-elisp-rebased updated (ece0f4e78 -> 31baf3ef4), Robin Templeton, 2025/01/26
- [Guile-commits] 09/36: symbol default value procedures, Robin Templeton, 2025/01/26
- [Guile-commits] 20/36: use defsubst, Robin Templeton, 2025/01/26
- [Guile-commits] 33/36: temporarily disable elisp exception tests, Robin Templeton, 2025/01/26
- [Guile-commits] 36/36: remove uses of define-inlinable, Robin Templeton, 2025/01/26
- [Guile-commits] 02/36: check symbols constants uninterned, Robin Templeton, 2025/01/26
- [Guile-commits] 15/36: compile-elisp fn, Robin Templeton, 2025/01/26
- [Guile-commits] 31/36: update cross-compilation test, Robin Templeton, 2025/01/26
- [Guile-commits] 17/36: defconst, defvar: proclaim special at compile-time,
Robin Templeton <=
- [Guile-commits] 13/36: restore special operator handling, Robin Templeton, 2025/01/26
- [Guile-commits] 12/36: define-module for elisp special modules, Robin Templeton, 2025/01/26
- [Guile-commits] 04/36: guile-private-ref, Robin Templeton, 2025/01/26
- [Guile-commits] 11/36: constant-interning fix, Robin Templeton, 2025/01/26
- [Guile-commits] 23/36: degenerate let forms, Robin Templeton, 2025/01/26
- [Guile-commits] 01/36: intern arbitrary constants, Robin Templeton, 2025/01/26
- [Guile-commits] 05/36: allow arbitrary constants in cps, Robin Templeton, 2025/01/26
- [Guile-commits] 10/36: defvar affects default value, Robin Templeton, 2025/01/26
- [Guile-commits] 18/36: compiler macros, Robin Templeton, 2025/01/26
- [Guile-commits] 19/36: defsubst, Robin Templeton, 2025/01/26