1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 22:40:34 +02:00

elisp i/o

* module/language/elisp/boot.el (send-string-to-terminal)
  (read-from-minibuffer, prin1-to-string): New functions.
This commit is contained in:
BT Templeton 2012-03-07 20:08:46 -05:00
parent 5c65ee510f
commit 43ff6804d6

View file

@ -583,3 +583,16 @@
(defun format* (stream string &rest args)
(apply (@ (guile) format) stream string args))
(defun send-string-to-terminal (string)
(princ string))
(defun read-from-minibuffer (prompt &rest ignore)
(princ prompt)
(let ((value (funcall (@ (ice-9 rdelim) read-line))))
(if (funcall (@ (guile) eof-object?) value)
""
value)))
(defun prin1-to-string (object)
(format* nil "~S" object))