mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-18 10:10:23 +02:00
compile-elisp fn
(Best-ability ChangeLog annotation added by Christine Lemmer-Webber.) * module/language/elisp/runtime.scm (compile-elisp): New procedure.
This commit is contained in:
parent
361db0dca8
commit
9ef10e8c75
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,7 @@
|
||||||
set-lexical-binding-mode
|
set-lexical-binding-mode
|
||||||
log!
|
log!
|
||||||
eval-elisp
|
eval-elisp
|
||||||
|
compile-elisp
|
||||||
local-eval-elisp
|
local-eval-elisp
|
||||||
make-lisp-string
|
make-lisp-string
|
||||||
lisp-string?)
|
lisp-string?)
|
||||||
|
@ -248,6 +249,10 @@
|
||||||
(define (eval-elisp form)
|
(define (eval-elisp form)
|
||||||
(compile form #:from 'elisp #:to 'value))
|
(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! nil_ #nil)
|
||||||
(set-symbol-value! t_ #t)
|
(set-symbol-value! t_ #t)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue