I added a sort of slime-indent-and-complete-symbol-and-show-arglist function that shows the arglist like slime-space does if there's a whitespace character before the point, and completes the symbol otherwise. Oh, and indents it if it needs to be indented.
To accomplish this, I refactored slime-space to use slime-echo-arglist-for-enclosing so that I could use the same function in slime-indent (renamed from slime-indent-and-complete-symbol).
Slime-indent takes a couple customization options so you can disable either the symbol completion or arglist showing.
A DWIM tab key! Now I don't need slime-space or slime-return! Awesome.
Patch attached.
Chris Capel
Chris Capel wrote:
Patch attached.
Oh, yes, I forgot to point out: I changed the regex to detect whether to do symbol completion to say "no" if there are any close parentheses before the point. I think this is the right behavior, but I'm not sure.
Chris Capel
Chris Capel pdf23ds@gmail.com writes:
Patch attached.
I applied a somewhat modified version. It removed the customization stuff and I didn't rename the function. slime-indent-and-complete-symbol does a few non-obvious things, so I think the longer name is justified.
Helmut.