GNU bug report logs -
#26693
[PATCH 0/2] Fix indentation in indent-code.el and dir-locals.el
Previous Next
Reported by: Alex Kost <alezost <at> gmail.com>
Date: Fri, 28 Apr 2017 13:30:03 UTC
Severity: normal
Tags: patch
Done: Alex Kost <alezost <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26693 in the body.
You can then email your comments to 26693 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#26693
; Package
guix-patches
.
(Fri, 28 Apr 2017 13:30:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alex Kost <alezost <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 28 Apr 2017 13:30:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26693
; Package
guix-patches
.
(Fri, 28 Apr 2017 13:45:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 26693 <at> debbugs.gnu.org (full text, mbox):
* .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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26693
; Package
guix-patches
.
(Fri, 28 Apr 2017 13:45:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 26693 <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26693
; Package
guix-patches
.
(Fri, 28 Apr 2017 13:53:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 26693 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
[0001-etc-indent-code.el-Define-source-tree-by-indent-code.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26693
; Package
guix-patches
.
(Tue, 02 May 2017 21:40:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 26693 <at> debbugs.gnu.org (full text, mbox):
Hi Alex,
Alex Kost <alezost <at> gmail.com> 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 <alezost <at> gmail.com>
> 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’.
Reply sent
to
Alex Kost <alezost <at> gmail.com>
:
You have taken responsibility.
(Thu, 04 May 2017 19:48:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Alex Kost <alezost <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 04 May 2017 19:48:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 26693-done <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès (2017-05-02 23:39 +0200) wrote:
> Hi Alex,
>
> Alex Kost <alezost <at> gmail.com> 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 <alezost <at> gmail.com>
>> 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!
--
Alex
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 02 Jun 2017 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.