[slime-devel] defclass form indentation

Zach Beane xach at xach.com
Fri Feb 16 19:04:31 UTC 2007


I've run into some problems with indentation for defclass
forms. Here's an example:

  (defclass field ()
    ((name
      :initarg :name
      :accessor name)
     (default-value
         :initarg :default-value
       :accessor default-value))
    (:default-initargs
        :name nil
      :default-value nil))

This seems to be caused by the sexp starting with symbols that start
with the letters "def"; I don't have a problem if the slot is named
"dfault-value", for example.

I'm using the bundled cl-indent from:

  GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
  2006-09-15 on rothera, modified by Debian

How can I get the indentation to align properly?

Zach




More information about the slime-devel mailing list