nckx pushed a commit to branch master
in repository guix.

commit 275e66b8b47a6e085a6f359b69af424bc9f6b13d
Author: Tobias Geerinckx-Rice <[email protected]>
AuthorDate: Tue Aug 18 15:13:12 2020 +0200

    etc: indent-code.el: Match not only ‘(define-public’.
    
    * etc/indent-code.el (main): Also match ‘(define’, as intended.
---
 etc/indent-code.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/etc/indent-code.el b/etc/indent-code.el
index 255ffb1..84b15b3 100755
--- a/etc/indent-code.el
+++ b/etc/indent-code.el
@@ -4,6 +4,7 @@
 ;; Copyright © 2017 Alex Kost <[email protected]>
 ;; Copyright © 2017 Ludovic Courtès <[email protected]>
 ;; Copyright © 2020 Maxim Cournoyer <[email protected]>
+;; Copyright © 2020 Tobias Geerinckx-Rice <[email protected]>
 
 ;; This file is part of GNU Guix.
 
@@ -93,7 +94,7 @@
      ;; Indent the definition of PACKAGE-NAME in FILE-NAME.
      (find-file file-name)
      (goto-char (point-min))
-     (if (re-search-forward (concat "^(define\\(-public\\) +"
+     (if (re-search-forward (concat "^(define\\(\\|-public\\) +"
                                     package-name)
                             nil t)
          (let ((indent-tabs-mode nil))

Reply via email to