Helmut Eller e9626484@stud3.tuwien.ac.at writes:
Peter Seibel peter@javamonkey.com writes:
So that variable is set to t and lisp-indent-function's value is common-lisp-indent-function yet I'm still getting "special" indentation of lines following a "def" form. Which is particularly ignoring in cases like this (indented with indent-sexp):
common-lisp-indent-function recognizes "def", "with", and apparently also "do" and "without" forms with some string matching and the associated indentation rules are basically fixed. Most other symbols, e.g. 'when, are indented according to their 'common-lisp-indent-function property.
So what you see is not caused by SLIME, but by the somewhat questionable heuristic used by common-lisp-indent-function.
Yeah. I knew that it was wired into common-lisp-indent-function; Something you said made me think that SLIME somehow prevented those heuristics from coming into play.
Not that I have a lot of free time at the moment to actually do it but how would folks feel about forking the cl-indent.el from emacs into SLIME so we can hack on it without having to deal with getting the "official" version that comes with Emacs patched. (I've submitted a couple patches to cl-indent.el to the GNU emacs maintainers. One went in; the other disappeared into a black hole.) This would also probably improve the portability of user experience for SLIME users who switch between GNU Emacs and Xemacs. (I have no idea if that's currently a problem.)
-Peter
[Helmut, sorry for the dup. I'm not subscribed so this didn't go to the list.]