[slime-devel] SWANK:*SLDB-PPRINT-FRAMES* still available?

Nikodemus Siivola tsiivola at cc.hut.fi
Wed Dec 15 10:01:21 UTC 2004


> Helmut Eller <e9626484 at stud3.tuwien.ac.at> writes:

>> It has been renamed to *sldb-print-pretty*.  There is also a bunch of

Slightly tangentially: in SBCL the experience of replacing various 
*FOO-PRINT-????* variables with a single *FOO-VARIABLE-ALIST* has (imo) 
been mostly positive. This style makes the issue of keeping 
user-customizations up to date with provided varibles:

instead of

  (setf *foo-print-pretty* t
        *foo-print-level* 3)

users do

  (setf *foo-variable-alist* '((*print-pretty . t) (*print-level* . t)))

but implementors still muck with *foo-print-pretty*, and use 
WITH-FOO-IO-SYNTAX:

(defmacro with-foo-io-syntax (&body forms)
   `(call-with-foo-io-syntax (lambda () , at forms))

(defun call-with-foo-io-syntax (function)
   (let ((*print-pretty* *foo-print-pretty*)) ; and other internal defaults
     (progv (nreverse (mapcar #'car *foo-io-syntax*))
            (nreverse (mapcar #'cdr *foo-io-syntax*))
         (funcall function))))

How would a patch along these lines for Slime sound?

Cheers,

  -- Nikodemus              Schemer: "Buddha is small, clean, and serious."
                   Lispnik: "Buddha is big, has hairy armpits, and laughs."



More information about the slime-devel mailing list