[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 15/36: compile-elisp fn
From: |
Robin Templeton |
Subject: |
[Guile-commits] 15/36: compile-elisp fn |
Date: |
Sun, 26 Jan 2025 17:49:15 -0500 (EST) |
bpt pushed a commit to branch wip-elisp-rebased
in repository guile.
commit b6faedda66015a0fc9b51edcee61ecacb5eda810
Author: Robin Templeton <robin@terpri.org>
AuthorDate: Mon Aug 4 23:06:26 2014 -0400
compile-elisp fn
(Best-ability ChangeLog annotation added by Christine Lemmer-Webber.)
* module/language/elisp/runtime.scm (compile-elisp): New procedure.
---
module/language/elisp/runtime.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/module/language/elisp/runtime.scm
b/module/language/elisp/runtime.scm
index dba2a5476..d6d4f701f 100644
--- a/module/language/elisp/runtime.scm
+++ b/module/language/elisp/runtime.scm
@@ -52,6 +52,7 @@
set-lexical-binding-mode
log!
eval-elisp
+ compile-elisp
local-eval-elisp
make-lisp-string
lisp-string?)
@@ -248,6 +249,10 @@
(define (eval-elisp form)
(compile form #:from 'elisp #:to 'value))
+(define (compile-elisp form)
+ (compile (compile form #:from 'elisp #:to 'bytecode)
+ #:from 'bytecode #:to 'value))
+
(set-symbol-value! nil_ #nil)
(set-symbol-value! t_ #t)
- [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 <=
- [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, 2025/01/26
- [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