emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode c2366b2 084/495: formatting


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode c2366b2 084/495: formatting
Date: Sat, 7 Aug 2021 09:04:48 -0400 (EDT)

branch: elpa/go-mode
commit c2366b2f6b0f07b826194e095bc65d34fa968fe0
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    formatting
---
 go-mode.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index 750cbe4..d4521e0 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -152,12 +152,12 @@ some syntax analysis.")
 
 (defun go-previous-line-has-dangling-op-p ()
   (let* ((cur-line (count-lines (point-min) (point)))
-        (val (gethash cur-line go-dangling-cache 'nope)))
+         (val (gethash cur-line go-dangling-cache 'nope)))
     (if (equal val 'nope)
-      (save-excursion
-        (beginning-of-line)
-        (go--backward-irrelevant t)
-        (puthash cur-line (looking-back go-dangling-operators-regexp) 
go-dangling-cache))
+        (save-excursion
+          (beginning-of-line)
+          (go--backward-irrelevant t)
+          (puthash cur-line (looking-back go-dangling-operators-regexp) 
go-dangling-cache))
       val)))
 
 (defun go-goto-opening-parenthesis (&optional char)
@@ -379,8 +379,8 @@ Replace the current buffer on success; display errors on 
failure."
                         (insert ?\n)))
 
                   (if (zerop (shell-command-on-region (point-min) (point-max)
-                                                    (concat "gofmt" flag)
-                                                    patchbuf nil errbuf))
+                                                      (concat "gofmt" flag)
+                                                      patchbuf nil errbuf))
                       ;; gofmt succeeded: replace buffer or apply patch hunks.
                       (let ((old-point (point))
                             (old-mark (mark t)))
@@ -577,9 +577,9 @@ buffer. Tries to look for a URL at point."
 
 (defun go-propertize-syntax (start end)
   (save-excursion
-      (goto-char start)
-      (while (search-forward "\\" end t)
-        (put-text-property (1- (point)) (point) 'syntax-table (if (= 
(char-after) ?`) '(1) '(9))))))
+    (goto-char start)
+    (while (search-forward "\\" end t)
+      (put-text-property (1- (point)) (point) 'syntax-table (if (= 
(char-after) ?`) '(1) '(9))))))
 
 ;; ;; Commented until we actually make use of this function
 ;; (defun go--common-prefix (sequences)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]