[slime-devel] Indentation of WITH-SLOTS and WITH-ACCESSORS

Daniel White daniel at whitehouse.id.au
Mon May 25 08:18:39 UTC 2009


The current behaviour of slime-indentation is to indent them like
MULTIPLE-VALUE-BIND.

(with-slots (x y z)
    object
  (list x y z))

(with-accessors (x y z)
    object
  (list x y z))

However, the Hyperspec and a number of other books seem to suggest that
the instance argument lines up with the parameters.

(with-slots (x y z)
            object
  (list x y z))

(with-accessors (x y z)
                object
  (list x y z))

I've attached a patch that will format these forms like the second
example.

-- 
Daniel White
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-indentation.patch
Type: text/x-patch
Size: 746 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20090525/94615fea/attachment.bin>


More information about the slime-devel mailing list