From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: Common Lisp indentation bug fix/new feature
Date: Tue, 22 Nov 2011 11:43:52 -0500 [thread overview]
Message-ID: <jwvwrasta3h.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m3mxborwzg.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 22 Nov 2011 16:35:31 +0100")
> I think the LOOP indentation thing really needs to have deeper knowledge
> about the semantics to indent stuff better. That is, it needs to know
> that FOR and COLLECT introduce a new clause, while ON/BY don't.
> So I'll write something more semantically aware and apply it to Emacs
> after 24.1.
I'd be interested to see how SMIE handles it.
I.e. something along the lines of
(defvar lisp-loop-smie-grammar
(smie-prec2->grammar
(smie-bnf->prec2 BLABLA)))
...whileindenting...
...(if (head-is-loop)
(let ((smie-grammar lisp-loop-smie-grammar)
(smie-rules-function BLEBLE)
(smie-forward-token-function BLIBLI)
(smie-backward-token-function BLOBLO))
(smie-indent-calculate)))
Stefan
next prev parent reply other threads:[~2011-11-22 16:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 22:26 Common Lisp indentation bug fix/new feature Lars Magne Ingebrigtsen
2011-11-22 14:57 ` Stefan Monnier
2011-11-22 15:35 ` Lars Magne Ingebrigtsen
2011-11-22 15:52 ` Lawrence Mitchell
2011-11-22 16:43 ` Stefan Monnier [this message]
2011-11-22 18:09 ` Lars Magne Ingebrigtsen
2011-11-22 22:28 ` Tim Cross
2012-03-31 10:21 ` Nikodemus Siivola
2012-04-03 3:47 ` Lars Magne Ingebrigtsen
2012-04-03 10:13 ` Nikodemus Siivola
2012-04-03 14:53 ` 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=jwvwrasta3h.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/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.