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

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

[nongnu] elpa/go-mode 6da1af6 031/495: use goto-char instead of beginnin


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 6da1af6 031/495: use goto-char instead of beginning-of-buffer
Date: Sat, 7 Aug 2021 09:04:38 -0400 (EDT)

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

    use goto-char instead of beginning-of-buffer
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index fd214ff..8fd0cc4 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -560,7 +560,7 @@ uncommented, otherwise a new import will be added."
           (setq line (format "%s \"%s\"" as import))
         (setq line (format "\"%s\"" import)))
 
-      (beginning-of-buffer)
+      (goto-char (point-min))
       (if (re-search-forward (concat "^// import " line "$") nil t)
           (uncomment-region (line-beginning-position) (line-end-position))
         (case (go-goto-imports)



reply via email to

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