From: "Ludovic Courtès" <ludo@gnu.org>
To: Robert Vollmert <rob@vllmrt.net>
Cc: 36240@debbugs.gnu.org
Subject: bug#36240: indent-code.el is not aware of (package (inherit ...)) style
Date: Mon, 17 Jun 2019 11:39:00 +0200 [thread overview]
Message-ID: <878su01rgr.fsf@gnu.org> (raw)
In-Reply-To: <4F2510DB-73D5-4817-804B-21F065E9DE26@vllmrt.net> (Robert Vollmert's message of "Sun, 16 Jun 2019 09:07:02 +0200")
Hi Robert,
Robert Vollmert <rob@vllmrt.net> skribis:
> When encountering a package definition that starts
>
> (package (inherit other-package))
>
> etc/indent-code.el will indent the rest of the package body
> to align with the start of (inherit. That seems to be a
> common idiom, used in roughly half of the instances:
>
> guix/gnu/packages$ git grep '(inherit ' | wc -l
> 905
> guix/gnu/packages$ git grep '(inherit ' | grep package | wc -l
> 425
It’s a corner case, and one of the reasons I (and others, I think) are
now usually writing:
(package
(inherit p)
…)
I’m not sure we can teach Emacs the other rule; maybe sometimes we have
to accept limitations like this one. :-)
Ludo’.
prev parent reply other threads:[~2019-06-17 9:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-16 7:07 bug#36240: indent-code.el is not aware of (package (inherit ...)) style Robert Vollmert
2019-06-17 9:39 ` Ludovic Courtès [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878su01rgr.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=36240@debbugs.gnu.org \
--cc=rob@vllmrt.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).