1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

implement `throw' in elisp

* module/language/elisp/runtime/subrs.scm (throw): Rewrite in Elisp and
  move to...
* module/language/elisp/boot.el (throw): ...here.
This commit is contained in:
BT Templeton 2011-07-07 23:20:19 -04:00
parent 221dc803b0
commit 97d9da9a87
2 changed files with 3 additions and 7 deletions

View file

@ -122,10 +122,12 @@
(fset 'fmakunbound (@ (language elisp runtime subrs) fmakunbound))
(fset 'boundp (@ (language elisp runtime subrs) boundp))
(fset 'fboundp (@ (language elisp runtime subrs) fboundp))
(fset 'throw (@ (language elisp runtime subrs) throw))
(fset 'eval (@ (language elisp runtime subrs) eval))
(fset' load (@ (language elisp runtime subrs) load))
(defun throw (tag value)
(funcall (@ (guile) throw) 'elisp-exception tag value))
;;; Equality predicates
(fset 'eq (@ (guile) eq?))

View file

@ -31,7 +31,6 @@
boundp
fboundp
apply
throw
eval
load))
@ -106,11 +105,6 @@
(else func))))
(prim apply (@ (guile) apply) real-func args)))
;;; Throw can be implemented as built-in function.
(define (throw tag value)
(prim throw 'elisp-exception tag value))
;;; Miscellaneous.
(define (eval form)