[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 8065408 051/495: formatting
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 8065408 051/495: formatting |
Date: |
Sat, 7 Aug 2021 09:04:42 -0400 (EDT) |
branch: elpa/go-mode
commit 806540850e4259897d8c59403b6e4849380b1bdb
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>
formatting
---
go-mode.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index 6075bb4..26fb6c3 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -159,9 +159,8 @@ built-ins, functions, and some types.")
(setq start-nesting (go-paren-level))
(if (looking-at "[])}]")
(progn
- (while (and
- (not (bobp))
- (>= (go-paren-level) start-nesting))
+ (while (and (not (bobp))
+ (>= (go-paren-level) start-nesting))
(skip-chars-backward "^[]{}()")
(backward-char))
(if (go-previous-line-has-dangling-op-p)
@@ -177,16 +176,15 @@ built-ins, functions, and some types.")
(setq line-begin (line-beginning-position))
(if (= (go-paren-level) 0)
0
- (while (and
- (not (bobp))
- (>= (go-paren-level) start-nesting))
+ (while (and (not (bobp))
+ (>= (go-paren-level) start-nesting))
(if (= 0 (skip-chars-backward "^[]{}()"))
(backward-char))
(if (go-in-string-p)
(progn
(go--backward-irrelevant)
(setq line-begin (line-beginning-position)))))
- (if (and (< (go-paren-level) start-nesting))
+ (if (< (go-paren-level) start-nesting)
(+ (current-indentation) tab-width (- outindent))
(- (current-indentation) outindent)))))))))
@@ -219,7 +217,8 @@ built-ins, functions, and some types.")
(unless count (setq count 1))
(let ((first t) failure)
(dotimes (i (abs count))
- (while (and (not failure) (or first (go-in-string-or-comment-p)))
+ (while (and (not failure)
+ (or first (go-in-string-or-comment-p)))
(if (>= count 0)
(progn
(go--backward-irrelevant)
@@ -306,7 +305,8 @@ Replace the current buffer on success; display errors on
failure."
(patchbuf (get-buffer-create "*Gofmt patch*")))
(with-current-buffer patchbuf
(let ((errbuf (get-buffer-create "*Gofmt Errors*"))
- (coding-system-for-read 'utf-8) ;; use utf-8 with subprocesses
+ ;; use utf-8 with subprocesses
+ (coding-system-for-read 'utf-8)
(coding-system-for-write 'utf-8))
(with-current-buffer errbuf
(let ((inhibit-read-only t))
- [nongnu] elpa/go-mode 27f6fb0 047/495: improve indentation routine by jumping around less, (continued)
- [nongnu] elpa/go-mode 27f6fb0 047/495: improve indentation routine by jumping around less, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 73137ff 002/495: remove autoload cookies, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 1357916 005/495: go-beginning-of-defun does not need to be interactive, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 55def23 008/495: more descriptive messages in go-goto-imports, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode ccd95ee 016/495: rename some internal functions, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 5c8a47c 030/495: use (forward-line -1) instead of (previous-line), ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4c5493b 036/495: also load diff-mode during compilation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode faafd90 038/495: add autoload cookies, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c97dacc 044/495: do not change the indentation of multiline comments, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 5fbf6bd 048/495: remove unnecessary progns, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8065408 051/495: formatting,
ELPA Syncer <=
- [nongnu] elpa/go-mode c14eb13 061/495: more test cases, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 5dc94e8 069/495: Remove enclosing quotes in go-import-add, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 426d2df 050/495: Improve indentation speed by not trying to indent unnested lines, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d10c4bc 020/495: use /= instead of (not (=)), ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 37181ae 021/495: add feature for removing unused imports, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode cf557a3 024/495: Merge branch 'fix/gh-2', ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4372f5d 026/495: teach go-import-add how to uncomment imports, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 22427ec 028/495: update documentation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode cf14ed3 033/495: comment unused function go--common-prefix, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8e413db 035/495: require diff-mode during compilation, ELPA Syncer, 2021/08/07