From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6MjO-0000U5-5p for guix-patches@gnu.org; Thu, 04 May 2017 15:48:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6MjL-0001if-2X for guix-patches@gnu.org; Thu, 04 May 2017 15:48:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56654) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6MjK-0001iP-W2 for guix-patches@gnu.org; Thu, 04 May 2017 15:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d6MjK-0003VO-JM for guix-patches@gnu.org; Thu, 04 May 2017 15:48:02 -0400 Subject: bug#26693: [PATCH 0/2] Fix indentation in indent-code.el and dir-locals.el Resent-To: guix-patches@gnu.org Resent-Message-ID: From: Alex Kost References: <878tmkacfe.fsf@gmail.com> <87k25zym43.fsf@gnu.org> Date: Thu, 04 May 2017 22:47:00 +0300 In-Reply-To: <87k25zym43.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 02 May 2017 23:39:24 +0200") Message-ID: <87vapgcsln.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 26693-done@debbugs.gnu.org Ludovic Court=C3=A8s (2017-05-02 23:39 +0200) wrote: > Hi Alex, > > Alex Kost skribis: > >> As reported by Petter on #guix, "indent-code.el" may not work, and it is >> absolutely not clear why it happens (it took me 20 minutes to figure out >> what the problem was). >> >> So the problem is that "indent-code.el" works only when it is run from >> the top directory of the guix checkout (as it is described in the >> manual), otherwise it doesn't indent properly (because it doesn't find >> ".dir-locals.el"). >> >> So the upcoming patch fixes this problem. Also there is another patch >> that indents 'modify-keywords' properly. > > Good catch! > >> * .dir-locals.el: Add indentation rules for 'replace', 'add-before' and >> 'add-after'. > > OK. > >> >From d4abac119e2c62cc42a8786034c905196d7262e6 Mon Sep 17 00:00:00 2001 >> From: Alex Kost >> Date: Fri, 28 Apr 2017 16:07:33 +0300 >> Subject: [PATCH] etc: indent-code.el: Define source tree by "indent-code= .el". >> >> * etc/indent-code.el.in: Set default directory by "indent-code.el" >> itself, otherwise it works only when called from the top directory of >> the guix source tree. > > LGTM. > > Thank you! Committed, thanks! --=20 Alex