On Wed, May 24, 2006 at 10:25:45AM +0300, Nikodemus Siivola wrote:
- *PRINT-LEVEL* &co are the right tools to use for affecting the REPL. If your code assumes magic values of *PRINT-LEVEL* it is more-or-less broken, and should bind them explicitly, for which you will find WITH-STANDARD-IO-SYNTAX convenient.
Well, code I write at the REPL, inasmuch as it assumes anything at all, will be assuming "default values" or "the values I just setf'd" for the printer control things. This is quick throwaway code, not production stuff, or it'd go in a file and use w-s-i-s. Anyway, the point is, these things sometimes -- frequently enough that I got sufficiently annoyed by it to write the patch -- will return a value I'm not interested in but which takes a lot of space to print (this happens pretty often when doing a quick image-manipulation with cl-gd at the repl). It's just a way to keep myself from kicking myself and saying "idiot, you should've returned nil or (values) or something so you wouldn't lose so much visual context".
That's why the default behavior is to behave as if this patch didn't exist at all. I did expect it would be nonintuitive and surprising for the REPL printer to suddenly act differently from printer calls in other places.
- If this really really must go in, please let us make it *PRESENTATION-PRINT-ALIST* instead, and use a PROGV:
Ok. New version attached.