GNU bug report logs - #36240
indent-code.el is not aware of (package (inherit ...)) style

Previous Next

Package: guix;

Reported by: Robert Vollmert <rob <at> vllmrt.net>

Date: Sun, 16 Jun 2019 07:12:02 UTC

Severity: normal

To reply to this bug, email your comments to 36240 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#36240; Package guix. (Sun, 16 Jun 2019 07:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Vollmert <rob <at> vllmrt.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 16 Jun 2019 07:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Vollmert <rob <at> vllmrt.net>
To: bug-guix <at> gnu.org
Subject: indent-code.el is not aware of (package (inherit ...)) style
Date: Sun, 16 Jun 2019 09:07:02 +0200
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





Information forwarded to bug-guix <at> gnu.org:
bug#36240; Package guix. (Mon, 17 Jun 2019 09:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 36240 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Robert Vollmert <rob <at> vllmrt.net>
Cc: 36240 <at> debbugs.gnu.org
Subject: Re: bug#36240: indent-code.el is not aware of (package (inherit ...))
 style
Date: Mon, 17 Jun 2019 11:39:00 +0200
Hi Robert,

Robert Vollmert <rob <at> 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’.




This bug report was last modified 5 years and 360 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.