rutils
rutils copied to clipboard
:+ and :- break indentation of + and - in SLIME
Since incf and decf are macros, and macro definitions alter SLIME indentation of all symbols with the same name regardless of their package, loading rutils alters indentation of + and -.
In SBCL, before loading rutils:
(+ (f)
1
2)
after loading rutils:
(+ (f)
1
2)
This can be fixed either by evaluating (put '+ 'common-lisp-indent-function '(as nil)) (same with '-) in Emacs (and describing this workaround in rutils wherever :+ and :- and defined or documented), or by altering swank:*application-hints-tables* accordingly (as implemented in trivial-indent).
I see your point. So, are there any actions that can be taken here on the rutils side?
Yes; I could propose a patch. Do you prefer to introduce dependency on trivial-indent, or to manipulate swank:*application-hints-tables* directly?
I think, using trivial-indent is ok. I have a few more indent changes for other things in mind, as well.