aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-12-17 16:22:46 +0100
committermousebot <mousebot@riseup.net>2021-12-17 16:22:46 +0100
commit3a87f6caa62cbd0e925c765d2ac2840ba55f8db1 (patch)
treefd4fd7d3da244ad32933e250f9b0cef5c4fcd3c9 /lisp/mastodon-toot.el
parentfc8005c8fe3c5466c7e2d2b510e24f6eba661431 (diff)
depend on emacs 27.1, flychecks, docstrings, etc.
strictly, the 27.1 dependency is only for proper-list-p in -http.el.
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index c89acc7..6cf337a 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2017-2019 Johnson Denen
;; Author: Johnson Denen <johnson.denen@gmail.com>
;; Version: 0.9.2
-;; Package-Requires: ((emacs "26.1"))
+;; Package-Requires: ((emacs "27.1"))
;; Homepage: https://git.blast.noho.st/mouse/mastodon.el
;; This file is not part of GNU Emacs.
@@ -545,7 +545,11 @@ The prefix can match against both user handles and display names."
(propertize handle 'annot display-name 'meta url)))
(defun mastodon-toot-mentions (command &optional arg &rest ignored)
- "A company completion backend for toot mentions."
+ "A company completion backend for toot mentions.
+COMMAND is either prefix, to fetch a prefix query, candidates, to
+build a list of candidates with query ARG, annotation, to format
+an annotation for candidate ARG, or meta, to format meta info for
+candidate ARG. IGNORED remains a mystery."
(interactive (list 'interactive))
(cl-case command
(interactive (company-begin-backend 'mastodon-toot-mentions))
@@ -645,7 +649,7 @@ File is actually attached to the toot upon posting."
(mastodon-toot--upload-attached-media (car (last mastodon-toot--media-attachments)))))
(defun mastodon-toot--upload-attached-media (attachment)
- "Upload a single attachment using `mastodon-http--post-media-attachment'.
+ "Upload a single ATTACHMENT using `mastodon-http--post-media-attachment'.
The item's id is added to `mastodon-toot--media-attachment-ids',
which is used to attach it to a toot when posting."
(let* ((filename (expand-file-name