* bug#36240: indent-code.el is not aware of (package (inherit ...)) style
@ 2019-06-16 7:07 Robert Vollmert
2019-06-17 9:39 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Robert Vollmert @ 2019-06-16 7:07 UTC (permalink / raw)
To: 36240
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#36240: indent-code.el is not aware of (package (inherit ...)) style
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
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2019-06-17 9:39 UTC (permalink / raw)
To: Robert Vollmert; +Cc: 36240
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’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-17 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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).