1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

elisp variable aliases

* module/language/elisp/boot.el (defvaralias): New function.
This commit is contained in:
BT Templeton 2011-07-12 21:10:55 -04:00
parent 85bc6238bf
commit 14b288ceb9

View file

@ -139,6 +139,14 @@
(fset 'boundp (@ (language elisp runtime) symbol-bound?))
(fset 'fboundp (@ (language elisp runtime) symbol-fbound?))
(defun defvaralias (new-alias base-variable &optional docstring)
(let ((fluid (funcall (@ (language elisp runtime) symbol-fluid)
base-variable)))
(funcall (@ (language elisp runtime) set-symbol-fluid!)
new-alias
fluid)
base-variable))
;;; Numerical type predicates
(defun floatp (object)