aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/emacs-fix-scheme-indent-function.patch
blob: 4b7904ea3b7f1008d6ebc50d4dbd3706c5e3f40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Fix 'scheme-indent-function' to indent s-expressions starting with a keyword
properly, like this:

(#:foo 1
 #:bar 2)

instead of like this:

(#:foo 1
       #:bar 2)

The fix is made by Mark H Weaver <mhw@netris.org>:
<http://www.netris.org/~mhw/scheme-indent-function.el>

--- a/lisp/progmodes/scheme.el
+++ b/lisp/progmodes/scheme.el
@@ -494,6 +494,12 @@ indentation."
                         (> (length function) 3)
                         (string-match "\\`def" function)))
                (lisp-indent-defform state indent-point))
+              ((and (null method)
+                    (> (length function) 1)
+                    ;; The '#' in '#:' seems to get lost, not sure why
+                    (string-match "\\`:" function))
+               (let ((lisp-body-indent 1))
+                 (lisp-indent-defform state indent-point)))
               ((integerp method)
                (lisp-indent-specform method state
                                      indent-point normal-indent))
021-12-17 03:07:52 +0100'>2021-12-17gnu: Remove unreferenced nss/fixed.Tobias Geerinckx-Rice 2021-12-16gnu: nss-certs: Avoid top-level reference to NSS.Tobias Geerinckx-Rice 2021-12-13gnu: Simplify package inputs.Ludovic Courtès 2021-12-05Merge remote-tracking branch 'origin/master' into core-updates-frozenRicardo Wurmus 2021-12-03gnu: nss: Fix CVE-2021-43527 via graft.Mark H Weaver 2021-12-01gnu: Add nspr@4.32.Jonathan Brielmaier 2021-11-11gnu: nss: Update to 3.71.Maxim Cournoyer 2021-11-11gnu: nspr: Normalize inputs.Maxim Cournoyer 2021-09-20gnu: nspr: Don't retain references to native inputs.Maxime Devos 2021-09-20gnu: nspr: Adjust to Mozilla cross-compilation conventions.Maxime Devos 2021-06-19gnu: nss-certs: Do not inherit version and source from nss.Marius Bakke 2021-06-19gnu: nss: Update to 3.67.Marius Bakke 2021-06-06gnu: nss: Use (guix utils).Marius Bakke 2021-06-06gnu: nss: Update to 3.66.Marius Bakke 2021-06-06gnu: nspr: Update to 4.31.Marius Bakke 2021-06-06gnu: nss: Prepare for GCC 10.Marius Bakke 2021-06-06gnu: nss: Fix test failure.Marius Bakke