emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the same indentation as flet


From: Stefan Monnier
Subject: Re: getting the same indentation as flet
Date: Sun, 02 Jun 2013 20:05:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> I've written an flet like macro and I'd really like flet like
> indentation support for it.

The `flet' indentation specification is: 1
So you can just use that, as in

   (defmacro my-flet (blabla)
     (declare (indent 1))
     ...)

> How can I achieve that? Is it achievable just in the macro definition?

See above.

> I note that the current flet macros (including the new cl- ones) do not
> have complex indent declarations to specify how the bindings are to be
> indented.

Indeed, the specification is very primitive.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]