From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#36240: indent-code.el is not aware of (package (inherit ...)) style Date: Mon, 17 Jun 2019 11:39:00 +0200 Message-ID: <878su01rgr.fsf@gnu.org> References: <4F2510DB-73D5-4817-804B-21F065E9DE26@vllmrt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58217) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hco7R-0005kd-6J for bug-guix@gnu.org; Mon, 17 Jun 2019 05:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hco7P-0001Gf-3O for bug-guix@gnu.org; Mon, 17 Jun 2019 05:40:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56667) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hco7O-0001GO-Kx for bug-guix@gnu.org; Mon, 17 Jun 2019 05:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hco7O-00041D-EW for bug-guix@gnu.org; Mon, 17 Jun 2019 05:40:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <4F2510DB-73D5-4817-804B-21F065E9DE26@vllmrt.net> (Robert Vollmert's message of "Sun, 16 Jun 2019 09:07:02 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Robert Vollmert Cc: 36240@debbugs.gnu.org Hi Robert, Robert Vollmert 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=E2=80=99s a corner case, and one of the reasons I (and others, I think) = are now usually writing: (package (inherit p) =E2=80=A6) I=E2=80=99m not sure we can teach Emacs the other rule; maybe sometimes we = have to accept limitations like this one. :-) Ludo=E2=80=99.