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

[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))



reply via email to

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