From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Nic Ferrier <nferrier@ferrier.me.uk>
Cc: emacs-devel@gnu.org
Subject: Re: getting the same indentation as flet
Date: Sun, 02 Jun 2013 20:05:49 -0400 [thread overview]
Message-ID: <jwv4ndgf4cz.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87bo7ojik2.fsf@ferrier.me.uk> (Nic Ferrier's message of "Sun, 02 Jun 2013 22:42:37 +0100")
> 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
next prev parent reply other threads:[~2013-06-03 0:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-02 21:42 getting the same indentation as flet Nic Ferrier
2013-06-02 21:48 ` Nic Ferrier
2013-06-03 0:05 ` Stefan Monnier [this message]
2013-06-03 7:31 ` Nic Ferrier
2013-06-03 8:55 ` Stefan Monnier
2013-06-03 9:01 ` Nic Ferrier
2013-06-03 13:43 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv4ndgf4cz.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=nferrier@ferrier.me.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.