aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/emacs-fix-scheme-indent-function.patch
blob: 4b7904ea3b7f1008d6ebc50d4dbd3706c5e3f40e (about) (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))
. [inputs]: Delete labels. Sort. (gnucash-docs): Adjust URI and update hash. [native-inputs]: Delete labels. Sort. Maxim Cournoyer 2022-06-05gnu: aqbanking: Do not embed build date....* gnu/packages/gnucash.scm (aqbanking)[arguments]: Add 'use-version-instead-of-date phase. Vagrant Cascadian 2022-04-17gnu: gnucash: Update to 4.10....Variables gnucash and gnucash-docs have to be updated together. * gnu/packages/gnucash.scm (gnucash)[version]: Update to 4.10. (gnucash-docs)[version]: Update to 4.10. [build-system]: Migrate from gnu to cmake. [arguments]: Disable tests. Raghav Gururajan 2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès 2021-11-16gnu: gnucash: Use webkitgtk-with-libsoup2....* gnu/packages/gnucash.scm (gnucash)[inputs]: Replace webkitgtk by webkitgtk-with-libsoup2. Guillaume Le Vaillant 2021-10-14Merge branch 'master' into core-updates-frozenMarius Bakke 2021-10-13gnu: aqbanking: Update to 6.3.2....* gnu/packages/gnucash.scm (aqbanking): Update to 6.3.2. Tobias Geerinckx-Rice 2021-09-12gnu: gnucash: Update to 4.6....* gnu/packages/gnucash.scm (gnucash): Update to 4.6. [native-inputs]: Add gmp. Guillaume Le Vaillant 2021-05-26gnu: aqbanking: Update to 6.3.0....* gnu/packages/gnucash.scm (aqbanking): Update to 6.3.0. Kei Kebreau 2021-05-26gnu: gwenhywfar: Update to 5.6.0....* gnu/packages/gnucash.scm (gwenhywfar): Update to 5.6.0. Kei Kebreau