X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fprint.lisp;h=a54035747bd3ea73404f9ec0820caa81fdada386;hb=a4ea8cefca32d80fb894106bb1f43677f587cdc4;hp=a8ac834dbb42f969dd2678bd937aff63e34812c6;hpb=a0811544fcd5f5b1bd04e23a3cf52b76e04229b1;p=jscl.git diff --git a/src/print.lisp b/src/print.lisp index a8ac834..a540357 100644 --- a/src/print.lisp +++ b/src/print.lisp @@ -45,6 +45,7 @@ (when (or (terminalp ch) (char= ch #\:) (char= ch #\\) + (not (char= ch (char-upcase ch))) (char= ch #\|)) (return-from escape-symbol-name-p t)))) dots-only)) @@ -256,9 +257,13 @@ (let ((*print-escape* nil)) (write-to-string form))) +(defun terpri () + (write-char #\newline) + (values)) + (defun write-line (x) (write-string x) - (write-string *newline*) + (terpri) x) (defun warn (string) @@ -282,7 +287,7 @@ ((char= next #\~) (concatf res "~")) ((char= next #\%) - (concatf res *newline*)) + (concatf res (string #\newline))) ((char= next #\*) (pop arguments)) (t @@ -299,4 +304,5 @@ (defun format-special (chr arg) (case (char-upcase chr) (#\S (prin1-to-string arg)) - (#\A (princ-to-string arg)))) + (#\A (princ-to-string arg)) + (#\D (princ-to-string arg))))