[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 5c8a47c 030/495: use (forward-line -1) instead of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 5c8a47c 030/495: use (forward-line -1) instead of (previous-line) |
Date: |
Sat, 7 Aug 2021 09:04:37 -0400 (EDT) |
branch: elpa/go-mode
commit 5c8a47c969280d01aacae136015fa5a3b6cbbd7e
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>
use (forward-line -1) instead of (previous-line)
previous-line is for interactive use and its behaviour depends on
configuration
---
go-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/go-mode.el b/go-mode.el
index 1657111..fd214ff 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -132,7 +132,7 @@ built-ins, functions, and some types.")
(setq pos (point))
(beginning-of-line)
(if (or (looking-at "^[[:word:]]+:$") (looking-at "^[[:space:]]*\\(case
.+\\|default\\):"))
- (progn (previous-line)
+ (progn (forward-line -1)
(end-of-line))
(goto-char pos))
(if (/= start-pos (point))
- [nongnu] elpa/go-mode 6da1af6 031/495: use goto-char instead of beginning-of-buffer, (continued)
- [nongnu] elpa/go-mode 6da1af6 031/495: use goto-char instead of beginning-of-buffer, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 52914d5 039/495: Correctly indent next line if raw string is following an operator, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode ca3050a 045/495: temporarily disable flymake-mode in go-remove-unused-imports, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 445d10d 032/495: do not use goto-line but forward-line instead, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 7751f22 040/495: add test cases for indentation, ELPA Syncer, 2021/08/07
- [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 <=
- [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, 2021/08/07
- [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