X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/lisp/blobdiff_plain/2af61873236491d221b3cbd8bbab4320a2beb7f4..67cb6748a3e277c0a6bab682aa31249850445226:/mdw-base.lisp diff --git a/mdw-base.lisp b/mdw-base.lisp index 2c463e9..072c8d6 100644 --- a/mdw-base.lisp +++ b/mdw-base.lisp @@ -119,9 +119,12 @@ (compile-time-defun pairify (x &optional (y nil defaultp)) (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))