X-Git-Url: https://git.distorted.org.uk/~mdw/lisp/blobdiff_plain/2af61873236491d221b3cbd8bbab4320a2beb7f4..53e95db096ab58c3acbf176f4c671cb612d832ae:/mdw-base.lisp diff --git a/mdw-base.lisp b/mdw-base.lisp index 2c463e9..88ef8ba 100644 --- a/mdw-base.lisp +++ b/mdw-base.lisp @@ -80,8 +80,7 @@ (typecase str (string str) (symbol (symbol-name str)) - (t (with-output-to-string (s) - (princ str s))))) + (t (princ-to-string str)))) (defun mappend (function list &rest more-lists) "Apply FUNCTION to corresponding elements of LIST and MORE-LISTS, yielding @@ -119,9 +118,12 @@ (defun whitespace-char-p (ch) "Return whether CH is a whitespace character or not." (case ch - ((#\space #\tab #\newline #\return #\vt - #+cmu #\formfeed - #+clisp #\page) t) + (#.(loop for i below char-code-limit + for ch = (code-char i) + unless (with-input-from-string (in (string ch)) + (peek-char t in nil)) + collect ch) + t) (t nil))) (declaim (ftype (function nil ()) slot-unitialized))