From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 28 09:29:08 2017 Received: (at submit) by debbugs.gnu.org; 28 Apr 2017 13:29:09 +0000 Received: from localhost ([127.0.0.1]:43776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d45xM-0005Sk-MY for submit@debbugs.gnu.org; Fri, 28 Apr 2017 09:29:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d45xK-0005SB-St for submit@debbugs.gnu.org; Fri, 28 Apr 2017 09:29:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d45xE-0006M6-Qw for submit@debbugs.gnu.org; Fri, 28 Apr 2017 09:29:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d45xE-0006M2-Ne for submit@debbugs.gnu.org; Fri, 28 Apr 2017 09:29:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d45xD-0007HP-MM for guix-patches@gnu.org; Fri, 28 Apr 2017 09:29:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d45xA-0006Lb-IO for guix-patches@gnu.org; Fri, 28 Apr 2017 09:28:59 -0400 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:34775) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d45xA-0006LK-Ai for guix-patches@gnu.org; Fri, 28 Apr 2017 09:28:56 -0400 Received: by mail-lf0-x22e.google.com with SMTP id t144so34023959lff.1 for ; Fri, 28 Apr 2017 06:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=EOtUnBKwbQcyH3+icPhj5jmNJOc4cyd1FeGK408N+OE=; b=ZZhERl/bx5o88RxHxQWbUV2KDC9XwONzIZBjqRigUFMiGkTOPQMuX+04w0pD6krTpq 2S3Vb8cL4NMvIYjB4sQlm1Lak6Ftj2usyZkYJ9fj43bg0xDJMJoxVpbQ6WXtbE/Tk5U4 m5OuIkbav+EcKIZqNQ/ev28NJ/pQAUEvCX9oRKyMox+PqQiedJLlDMFfxY6rgOU9ZkjA tUHK27lvChb2CMXKnzb0YXJ7X/wkAusyL4mrlajlbWi7VUoZ3Oq4nc3jvP8jtqzioQcX d3PBduNVffa4TtHnUESpQLrtYsKpyi87/3FCbf1U55wX7xC3zjwL9BSGIMIHWLNSCQ9T bxpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=EOtUnBKwbQcyH3+icPhj5jmNJOc4cyd1FeGK408N+OE=; b=SPZOK9YnVif4dETm57TCYRDjHy7KSWgqsKwe44HGfxvfgJRj+VVM/gHEpFSTbYe4Xx OJSRY/2HSx5w+lAnGB/i/omV+wMyrZJm2a6G/NRpjKDSzN14ZlLkkr3AuTfKKAFbZHz8 Ap3GEpCMIyCNabdOdYmOdf/pjHFr9tFLwBqMvxR+LYh6VmpT+ZcWyjGr6osMtR0knw5I jsOJIuLT43/Ci3aNPRTAYDPwHNCD549z6WW342nOzEH8gEoN03y+1mE/y+pMVxhvMFc6 kWoWOvixZBbJZFO9mo/6bDGjMKkGt3rwFLXa/xbmcVeo20kz24KOXuN0TAgWoz1LjlXo +eGg== X-Gm-Message-State: AN3rC/6QcMJRH41vlj1+240hd0Mpb00pN5Fj7cPb0eMCeFVltr5BInsv q+m6bAZ65G7CUKjq X-Received: by 10.25.28.6 with SMTP id c6mr3416803lfc.181.1493386134303; Fri, 28 Apr 2017 06:28:54 -0700 (PDT) Received: from leviafan ([217.107.194.130]) by smtp.gmail.com with ESMTPSA id 25sm1050940ljp.58.2017.04.28.06.28.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Apr 2017 06:28:53 -0700 (PDT) From: Alex Kost To: guix-patches@gnu.org Subject: [PATCH 0/2] Fix indentation in indent-code.el and dir-locals.el Date: Fri, 28 Apr 2017 16:28:53 +0300 Message-ID: <878tmkacfe.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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. -- Alex From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 28 09:44:48 2017 Received: (at 26693) by debbugs.gnu.org; 28 Apr 2017 13:44:48 +0000 Received: from localhost ([127.0.0.1]:43788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d46CW-0005sr-Bd for submit@debbugs.gnu.org; Fri, 28 Apr 2017 09:44:48 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d46CU-0005sQ-6O for 26693@debbugs.gnu.org; Fri, 28 Apr 2017 09:44:46 -0400 Received: by mail-lf0-f65.google.com with SMTP id i3so7198819lfh.2 for <26693@debbugs.gnu.org>; Fri, 28 Apr 2017 06:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=xlpwsQW65URYCH9CAyOqhwXMwmOjktQIIumMGkRHeYA=; b=jVce302qJh1H5MVfD3pNwsXuAWD8bClUgS+CioICGKoJTuEUajH3VJTTqBKkpqpI8W 6lAjRXRhj8+RDvzy25RtsT61tscBXMsh36/iXVQEroPRgKlcTln0NEpkUI+z+JMgUgC2 mHhvCFLuw4ztgvfF7qzvi1XTtPpsGglryXAugLjj18leE5AjXr/NGm8Vt2SRZdpdyzsV k0e69P9DRRoi2+dQGywzcbVaXvwv1tpESkdBFuHCdHHjCEupCaybHqlpIcPAl/uUxM3k I35KxYcYbOeJpel1lukvoJql2Jxgjmun6OYKNb8///WPCONM0ZGW3xPWli/Sb1uzL7fB mh/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=xlpwsQW65URYCH9CAyOqhwXMwmOjktQIIumMGkRHeYA=; b=OytzBEJ9dum0KSRN+2OZMVC5CSYJnzILAWvCDQ9AyR3e/9u3b2C78XzK40ENddEU2w sJNdp/MnxMZqReaegrSTK6zkQDWXMiDpPPx4wE6HCw3UEktiHnw66VJCxbXX/e+XfIOA xro7JiYnoqy8qCAfNtgUFh/2/6W1Xe8NYBWvYJRhoz0F5Zm8f1mIaykJQJvCCIe5iEn+ JDba6SGBbSSlBkDFMTaaaC0lZpoUEd+5fRs0UIl5LFySFdR8EcoqLDpuN+5o3om0Gc72 C9g+Jt4cloeswjj20IO8lYIhDB+26XLJ3d2Nd5IXsMvJz7hzjgEOoyv/kycF8iSGU14N 9vvA== X-Gm-Message-State: AN3rC/6n0hPRaaQTnZCAIFxoSupQ2CnrlDfAMfMJjbCf7RtHpofgDLNQ o63270kMh4N5Yv4B X-Received: by 10.25.190.79 with SMTP id o76mr4141053lff.111.1493387080054; Fri, 28 Apr 2017 06:44:40 -0700 (PDT) Received: from localhost.localdomain ([217.107.194.130]) by smtp.gmail.com with ESMTPSA id 33sm1072229lfs.16.2017.04.28.06.44.39 for <26693@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Apr 2017 06:44:39 -0700 (PDT) From: Alex Kost To: 26693@debbugs.gnu.org Subject: [PATCH 1/2] dir-locals.el: Add 'modify-phases' keywords. Date: Fri, 28 Apr 2017 16:44:30 +0300 Message-Id: <20170428134431.3381-1-alezost@gmail.com> X-Mailer: git-send-email 2.10.2 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 26693 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) * .dir-locals.el: Add indentation rules for 'replace', 'add-before' and 'add-after'. --- .dir-locals.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.dir-locals.el b/.dir-locals.el index a2d1eb8..4aaeae9 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -23,7 +23,13 @@ (eval . (put 'guard 'scheme-indent-function 1)) (eval . (put 'lambda* 'scheme-indent-function 1)) (eval . (put 'substitute* 'scheme-indent-function 1)) + + ;; 'modify-phases' and its keywords. (eval . (put 'modify-phases 'scheme-indent-function 1)) + (eval . (put 'replace 'scheme-indent-function 1)) + (eval . (put 'add-before 'scheme-indent-function 2)) + (eval . (put 'add-after 'scheme-indent-function 2)) + (eval . (put 'modify-services 'scheme-indent-function 1)) (eval . (put 'with-directory-excursion 'scheme-indent-function 1)) (eval . (put 'package 'scheme-indent-function 0)) -- 2.10.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 28 09:44:49 2017 Received: (at 26693) by debbugs.gnu.org; 28 Apr 2017 13:44:49 +0000 Received: from localhost ([127.0.0.1]:43790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d46CX-0005t2-Ie for submit@debbugs.gnu.org; Fri, 28 Apr 2017 09:44:49 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:35743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d46CU-0005sS-RJ for 26693@debbugs.gnu.org; Fri, 28 Apr 2017 09:44:47 -0400 Received: by mail-lf0-f43.google.com with SMTP id 75so34142091lfs.2 for <26693@debbugs.gnu.org>; Fri, 28 Apr 2017 06:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=QVJkc10uB0qqx5rbWHs6ib4AZ3IFNj9scwRd414c55I=; b=S2qc+QSK4Dy74XfjHDaPJBDIMg/U2ZfcbhG3SO3sl9JeBQhMLCkmoWyZiiIQW0dkd/ kkjpdFto3sBCYHmuKZrJBdpByoUEUbnaPNodP91ehOpSlvY/h42Uucyo3QtFSiw1ngKb 4UYceSRLSCWfWI/H4P1R+8hwW0aYadyZUhXFznM9jKyFckos5qli8nIqGYLNHZG/KJvk BcW/bqFR1yGXOMpTcJlzFwKRKISvYbCTB5RsnXLG9eHbl0vPGpAlrmsDgm9DvLSkqLRo wvDUrkbz/VwQPGg6html+0amqAbfhurcn70JFitDI7VwlxxVJlYjmgSX8bb5Yc1afPXP apaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=QVJkc10uB0qqx5rbWHs6ib4AZ3IFNj9scwRd414c55I=; b=sYxmyUPqra5X2T0QLiO5CuxcYYaohBe0mCprMqW58Wl8SCXxVXDJHFlPHC6q4Nhg85 9uK68rJcUEcWm24zU0vLl9MOysKT55yv2V23nK64jlY18Jq7l1JgAYMhiI3/1Nhxjglt uX+m/Ap0MU1uu02nb7xvd6iWMbMmVTQu0qmm4D0TJpfhRAYY8nWOkoWC+YucB3TqNlwo qLPSY2AkcgRNlPYtGlb/6N3XiLqVSX+wRyJaEDUhL1m8qtGpOp5Z8HGlS4d02ovBYt70 8xHWgCKqXNmabzu9ULATYpa189VgTg1bhwDAd4r45eb40wWGiBasxU5aWs0KkJh+13fS SVxQ== X-Gm-Message-State: AN3rC/7vYMXisH5cVPC/kCj7CsHZ84mDahkvTdtANKJO8ql7J4UAUR48 MiFS6lsBZg4+eiId X-Received: by 10.25.20.42 with SMTP id k42mr3523860lfi.8.1493387080840; Fri, 28 Apr 2017 06:44:40 -0700 (PDT) Received: from localhost.localdomain ([217.107.194.130]) by smtp.gmail.com with ESMTPSA id 33sm1072229lfs.16.2017.04.28.06.44.40 for <26693@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Apr 2017 06:44:40 -0700 (PDT) From: Alex Kost To: 26693@debbugs.gnu.org Subject: [PATCH 2/2] doc: Add references to Emacs-Guix manual. Date: Fri, 28 Apr 2017 16:44:31 +0300 Message-Id: <20170428134431.3381-2-alezost@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170428134431.3381-1-alezost@gmail.com> References: <20170428134431.3381-1-alezost@gmail.com> X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 26693 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) * doc/htmlxref.cnf: Add links to the real manual. * doc/contributing.texi (Formatting Code): Add reference to it. * doc/guix.texi (Package Management): Likewise. --- doc/contributing.texi | 5 ++++- doc/guix.texi | 12 +++++++----- doc/htmlxref.cnf | 4 +++- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/contributing.texi b/doc/contributing.texi index bbc9342..8465745 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -248,7 +248,10 @@ please do read it. Some special forms introduced in Guix, such as the @code{substitute*} macro, have special indentation rules. These are defined in the -@file{.dir-locals.el} file, which Emacs automatically uses. +@file{.dir-locals.el} file, which Emacs automatically uses. Also note +that Emacs-Guix provides @code{guix-devel-mode} mode that indents and +highlights Guix code properly (@pxref{Development,,, emacs-guix, The +Emacs-Guix Reference Manual}). @cindex indentation, of code @cindex formatting, of code diff --git a/doc/guix.texi b/doc/guix.texi index 0d334e3..71d39a1 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1429,11 +1429,13 @@ remove software packages, without having to know about their build procedures or dependencies. Guix also goes beyond this obvious set of features. -This chapter describes the main features of Guix, as well as the package -management tools it provides. Along with the command-line interface -described below (@pxref{Invoking guix package, @code{guix package}}), -you may also use Emacs Interface, after installing @code{emacs-guix} -package (run @kbd{M-x guix-help} command to start with it): +This chapter describes the main features of Guix, as well as the +package management tools it provides. Along with the command-line +interface described below (@pxref{Invoking guix package, @code{guix +package}}), you may also use Emacs Interface (@pxref{Top,,, +emacs-guix, The Emacs-Guix Reference Manual}), after installing +@code{emacs-guix} package (run @kbd{M-x guix-help} command to start +with it): @example guix package -i emacs-guix diff --git a/doc/htmlxref.cnf b/doc/htmlxref.cnf index 93e214f..78f427b 100644 --- a/doc/htmlxref.cnf +++ b/doc/htmlxref.cnf @@ -219,7 +219,9 @@ emacs node ${EMACS}/html_node/emacs/ easejs mono ${GS}/easejs/manual/easejs.html easejs node ${GS}/easejs/manual/ -emacs-guix mono https://notabug.org/alezost/emacs-guix +EMACS_GUIX = https://alezost.github.io/guix.el/manual/latest +emacs-guix mono ${EMACS_GUIX}/emacs-guix.html +emacs-guix node ${EMACS_GUIX}/html_node/index.html emacs-muse node ${GS}/emacs-muse/manual/muse.html emacs-muse node ${GS}/emacs-muse/manual/html_node/ -- 2.10.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 28 09:52:39 2017 Received: (at 26693) by debbugs.gnu.org; 28 Apr 2017 13:52:39 +0000 Received: from localhost ([127.0.0.1]:43795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d46K7-00065U-Fw for submit@debbugs.gnu.org; Fri, 28 Apr 2017 09:52:39 -0400 Received: from mail-lf0-f45.google.com ([209.85.215.45]:35976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d46K6-00065G-55 for 26693@debbugs.gnu.org; Fri, 28 Apr 2017 09:52:38 -0400 Received: by mail-lf0-f45.google.com with SMTP id c80so34309546lfh.3 for <26693@debbugs.gnu.org>; Fri, 28 Apr 2017 06:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=pDRKKXuAzfZyTFxwjnUzpWX/41o5dqS5KlTUkfReiYs=; b=krAb9++TzfafPjKRkVHt9L+YZm6EgxQeC8/CtRWhmp4791q4cc11n5nxZOMftNHXi+ GYghvwDZYuhWyVSpcIVm3/wevXkHOSlbGlTl4zTVtMnpTjhXGZVD8kXdvaCQ//eMidAM rG57jMDGyQG3H4R8grGcIATFTAm/qdTeltT3NUkdYumgjSCSQUsDRL9PLEJF6IwGXvLu dVzQQiNNx9rIbfA6bykHx/rTD5nkePF3r4FyQnduPcwfbdbbZikLki+zY1Upr/spfFE4 xsUwt6uoR35XG8uqKIlYorF7iz8Srr0kLFSIU8zO119HOEYwI3lsHasKzxgPqALVlLOo cnMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pDRKKXuAzfZyTFxwjnUzpWX/41o5dqS5KlTUkfReiYs=; b=kPVHXhDGEh3bwVCJoSBZ0TfYneg2EHgnBvCLVoPY/R8zs0euaoAZuC85CyMd80D0hp 9On3jPI/WQkdoqX21kJT3FAd1PK2FMwTyRdgiHeKCHUitO9foeBzNxSzLQ62vLZiWobN 159/iobmabG5eIP7687xd0cImfc+6hfjuIPu29EgMnfCk6hoLC/kzFeF14ocsxmKrocM D3tSkJe7+/wrSlTeMihTPe9OiwTlJzmLA7E4XgeYEQVrLjiCgYVZ4MFpMA7t4+OVWzHa Q7kV+176k1xhfXnF2r2iM2IOvbI9e3+xodFWKoMNTuP5+aVtXH0jM1ot5FpMwvppb6tm 7qWA== X-Gm-Message-State: AN3rC/6pOVyLlU+CY2J7KaADDCy0I6BSE+LUvxG5rG6O8nQHlERCL/vv 0l9A0EM/RzKRsKTR X-Received: by 10.25.72.9 with SMTP id v9mr4027507lfa.74.1493387551975; Fri, 28 Apr 2017 06:52:31 -0700 (PDT) Received: from leviafan ([217.107.194.130]) by smtp.gmail.com with ESMTPSA id i13sm1062393lfe.30.2017.04.28.06.52.31 for <26693@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Apr 2017 06:52:31 -0700 (PDT) From: Alex Kost To: 26693@debbugs.gnu.org Subject: Re: bug#26693: [PATCH 2/2] doc: Add references to Emacs-Guix manual. References: <20170428134431.3381-1-alezost@gmail.com> <20170428134431.3381-2-alezost@gmail.com> Date: Fri, 28 Apr 2017 16:52:32 +0300 In-Reply-To: <20170428134431.3381-2-alezost@gmail.com> (Alex Kost's message of "Fri, 28 Apr 2017 16:44:31 +0300") Message-ID: <8737csabbz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 26693 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-=-= Content-Type: text/plain Alex Kost (2017-04-28 16:44 +0300) wrote: > * doc/htmlxref.cnf: Add links to the real manual. > * doc/contributing.texi (Formatting Code): Add reference to it. > * doc/guix.texi (Package Management): Likewise. > --- > doc/contributing.texi | 5 ++++- > doc/guix.texi | 12 +++++++----- > doc/htmlxref.cnf | 4 +++- > 3 files changed, 14 insertions(+), 7 deletions(-) I'm very sorry, this is the wrong patch :-) The attached one is the right one. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-etc-indent-code.el-Define-source-tree-by-indent-code.patch >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. --- etc/indent-code.el.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/indent-code.el.in b/etc/indent-code.el.in index 68ad72c..6102b5d 100755 --- a/etc/indent-code.el.in +++ b/etc/indent-code.el.in @@ -26,10 +26,10 @@ ;;; Code: -;; Load Scheme indentation rules from the current directory. +;; Load Scheme indentation rules from ".dir-locals.el". (with-temp-buffer (scheme-mode) - (let ((default-directory (file-name-as-directory ".")) + (let ((default-directory (file-name-as-directory load-file-name)) (enable-local-variables :all)) (hack-dir-local-variables) (hack-local-variables-apply))) -- 2.10.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 02 17:39:37 2017 Received: (at 26693) by debbugs.gnu.org; 2 May 2017 21:39:37 +0000 Received: from localhost ([127.0.0.1]:51641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5fWC-0005LF-RS for submit@debbugs.gnu.org; Tue, 02 May 2017 17:39:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5fWB-0005L2-JL for 26693@debbugs.gnu.org; Tue, 02 May 2017 17:39:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5fW3-0005xz-7k for 26693@debbugs.gnu.org; Tue, 02 May 2017 17:39:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5fW3-0005xs-4P; Tue, 02 May 2017 17:39:27 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:53896 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d5fW2-0007pP-Fn; Tue, 02 May 2017 17:39:26 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Alex Kost Subject: Re: bug#26693: [PATCH 0/2] Fix indentation in indent-code.el and dir-locals.el References: <878tmkacfe.fsf@gmail.com> Date: Tue, 02 May 2017 23:39:24 +0200 In-Reply-To: <878tmkacfe.fsf@gmail.com> (Alex Kost's message of "Fri, 28 Apr 2017 16:28:53 +0300") Message-ID: <87k25zym43.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26693 Cc: 26693@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 15:47:09 2017 Received: (at 26693-done) by debbugs.gnu.org; 4 May 2017 19:47:09 +0000 Received: from localhost ([127.0.0.1]:54851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6MiT-0003Tw-Eh for submit@debbugs.gnu.org; Thu, 04 May 2017 15:47:09 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:34580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6MiR-0003Tc-HA for 26693-done@debbugs.gnu.org; Thu, 04 May 2017 15:47:07 -0400 Received: by mail-lf0-f65.google.com with SMTP id q24so2242577lfb.1 for <26693-done@debbugs.gnu.org>; Thu, 04 May 2017 12:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=EPv0gz18Aef0yjbLWOJw39JL2hXxBsxcrlxeGqehnNE=; b=ck3UDk0GWoWkjrtVwVGDnISusro3HXj1HER4TehuypKW+jFKNcw2zuCJt9bGBye97m f8+H7XFAsLhhRPxi0nqQFHZmchPRHUo3mmYmIdMmpUmNItiUMzO9bCRicAlKQr3pj+FX iAkfr/O5P/Id/1XMxAmbKta5d16bjl2lXOBqBhKLwA45ZLwqfbxexNlL9lW/1qySaqiR 4uBRw32wi5zM4QLeh/WO7hR9Pf26MOkmjDI/+9SJDBTKMbLzuAC55YliQq/Pxlue4rO0 MOnvPH0Wsurwk+2ng8Up4FjBF33Fr+LWZX/8d15kpXn6h5XfrdCxKoN/qTmuvSu4pFq+ kePw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=EPv0gz18Aef0yjbLWOJw39JL2hXxBsxcrlxeGqehnNE=; b=WorhqikTkfoitoPcnSaW2aRGw2fcwUig4v+0oZaC1X0mSNFBFLuKUd5B82awkCoCQC k9Q/0SCeU8NDdxSZXLBbrvrp1pmBayf8QllICLB6CCT3k7s/buf50uZlfFrH7mneWuwz X61mKMPH2p9xBuZ0jdAzoDPXNIGSq1GJZ2/qbJJwDEi8kOjMYAM2dztX4oqbmBql4RZ4 8gZR6T2p88yoWvCJZzPwJ+KAucpGlw7GGxmcviEeH6jEox9jiXcmSIU8YLANGuljEeoF c4X5e7fJmVHABqVk1ydYW/P6dTWefnR4Wrn2CjymJj2T5hO7+uAga7yoSVUAcQkx0OKB GbFA== X-Gm-Message-State: AN3rC/4/QQ56z1Q6jcwlRZhDTNTuAawKyj6hhX6uZIPcQwN8LYpjFMQ4 Scj/BPNoar5Qgw== X-Received: by 10.46.0.39 with SMTP id 39mr16675662lja.127.1493927221219; Thu, 04 May 2017 12:47:01 -0700 (PDT) Received: from leviafan ([217.107.194.136]) by smtp.gmail.com with ESMTPSA id t6sm609666ljd.1.2017.05.04.12.46.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 May 2017 12:47:00 -0700 (PDT) From: Alex Kost To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#26693: [PATCH 0/2] Fix indentation in indent-code.el and dir-locals.el 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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 26693-done Cc: 26693-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) 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 From unknown Sat Jun 21 03:31:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 02 Jun 2017 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator