[slime-devel] custom indentation of read macros

Hi, Is it possible to specify indentation for read macros? Slime already indents built-in read macros correctly, eg #(1 2 3 4 5 6) I have a read macro with the syntax #[ncol]v[type][:kind](e1 e2 ... ), eg #2vs:hermitian(1 2 2 4) Slime currently aligns this as #2vs:hermitian(1 2 2 4) Would it be possible to give it a hint to align it on the parenthesis, eg #2vs:hermitian(1 2 3 4) Thanks, Tamas

* Tamas K Papp [2010-01-27 15:30+0100] writes:
Hi,
Is it possible to specify indentation for read macros?
Slime already indents built-in read macros correctly, eg
A common misunderstanding is that Slime does indentation, but in reality indentation is performed solely by common-lisp-indent-function. Shipped with standard Emacs. Slime pulls in some information from the Lisp process so that common-lisp-indent-function can find it. That's all. I'm not aware of a way to customize common-lisp-indent-function to support what you want. Helmut

On Wed, 27 Jan 2010 16:37:38 +0100, Helmut Eller wrote:
* Tamas K Papp [2010-01-27 15:30+0100] writes:
Hi,
Is it possible to specify indentation for read macros?
Slime already indents built-in read macros correctly, eg
A common misunderstanding is that Slime does indentation, but in reality indentation is performed solely by common-lisp-indent-function. Shipped with standard Emacs.
I think I was misled by contrib/slime-indentation.el, but upon closer inspection, it turned out to be cl-indent.
I'm not aware of a way to customize common-lisp-indent-function to support what you want.
I understand now -- looking at the code, I guess it would require a different kind of parsing. I know this is a bit off-topic, but who maintains cl-indent? I would like to contact them with this question. Tamas

* Tamas K Papp [2010-01-27 16:50+0100] writes:
I know this is a bit off-topic, but who maintains cl-indent? I would like to contact them with this question.
The best place to ask is probably the emacs-devel mailing list[*] also available via Gmane. Helmut [*] http://lists.gnu.org/mailman/listinfo/emacs-devel
participants (2)
-
Helmut Eller
-
Tamas K Papp