[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 9af89df 006/495: add docstrings to go-goto-imports
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 9af89df 006/495: add docstrings to go-goto-imports, go-play-region and go-play-buffer |
Date: |
Sat, 7 Aug 2021 09:04:32 -0400 (EDT) |
branch: elpa/go-mode
commit 9af89df9eeeaeb6ca83b0e33d87e631b3f1adecd
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>
add docstrings to go-goto-imports, go-play-region and go-play-buffer
---
go-mode.el | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/go-mode.el b/go-mode.el
index 0ae5b2e..6935d72 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -443,6 +443,26 @@ Replace the current buffer on success; display errors on
failure."
nil))
(defun go-goto-imports ()
+ "Move point to the block of imports.
+
+If using
+
+ import (
+ \"foo\"
+ \"bar\"
+ )
+
+it will move point directly behind the last import.
+
+If using
+
+ import \"foo\"
+ import \"bar\"
+
+it will move point to the next line after the last import.
+
+If no imports can be found, point will be moved after the package
+declaration."
(interactive)
;; FIXME if there's a block-commented import before the real
;; imports, we'll jump to that one.
@@ -462,10 +482,13 @@ Replace the current buffer on success; display errors on
failure."
(defun go-play-buffer ()
+ "Like `go-play-region', but acts on the entire buffer."
(interactive)
(go-play-region (point-min) (point-max)))
(defun go-play-region (start end)
+ "Send the region to the Playground and stores the resulting
+link in the kill ring."
(interactive "r")
(let* ((url-request-method "POST")
(url-request-extra-headers
- [nongnu] branch elpa/go-mode created (now 3497434), ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 1db78fd 001/495: initial commit, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 9af89df 006/495: add docstrings to go-goto-imports, go-play-region and go-play-buffer,
ELPA Syncer <=
- [nongnu] elpa/go-mode 366ada1 011/495: add tab completion for go-import-add, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 9536e6b 010/495: go-import-add, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode fd0c117 012/495: move list of improvements to readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode ca48fc5 009/495: add return values to go-goto-imports that tell which kind of import has been jumped to, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode db41787 015/495: if line has been indented with spaces, replace them with tabs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d942d4f 013/495: add links to further extensions for editting go in emacs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 5af4f4d 019/495: mention imenu in readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4f3befb 003/495: add go-play-buffer and go-play-region, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 61467ee 004/495: add readme, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 2835258 007/495: support `import foo "bar"` syntax in go-goto-imports, ELPA Syncer, 2021/08/07