elisp I/O
authorBT Templeton <bpt@hcoop.net>
Sun, 14 Aug 2011 21:36:38 +0000 (17:36 -0400)
committerBT Templeton <bpt@hcoop.net>
Fri, 3 Feb 2012 23:53:50 +0000 (18:53 -0500)
* module/language/elisp/boot.el (princ, print, terpri, format*): New
  functions.

module/language/elisp/boot.el

index db3267c..bec32b5 100644 (file)
 
 (defun throw (tag value)
   (signal (if %catch 'throw 'no-catch) (list tag value)))
+
+;;; I/O
+
+(defun princ (object)
+  (funcall (@ (guile) display) object))
+
+(defun print (object)
+  (funcall (@ (guile) write) object))
+
+(defun terpri ()
+  (funcall (@ (guile) newline)))
+
+(defun format* (stream string &rest args)
+  (apply (@ (guile) format) stream string args))