aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-25 17:12:18 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-25 17:12:18 +0100
commit28b73ab054b15de2cdc4943dea125431c1866a5b (patch)
tree6b967e9d07c6f0ba8889f2bb86f0b2d7e856f6c4 /lisp/mastodon-toot.el
parentd1242bec43a65a8e7f53a53c1a38cbb4816533f3 (diff)
move mastodon-toot-completions to top of file
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 1e364df..59a3813 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -188,6 +188,9 @@ Takes its form from `window-configuration-to-register'.")
(defvar mastodon-toot--max-toot-chars nil
"The maximum allowed characters count for a single toot.")
+(defvar-local mastodon-toot-completions nil
+ "The data of completion candidates for the current completion at point.")
+
(defvar mastodon-toot-current-toot-text nil
"The text of the toot being composed.")
@@ -885,9 +888,6 @@ eg. \"feduser@fed.social\" -> \"feduser@fed.social\"."
(concat " "
(mastodon-toot--tags-annotation-fun candidate)))))))
-(defvar-local mastodon-toot-completions nil
- "The data of completion candidates for the current completion at point.")
-
(defun mastodon-toot--mentions-annotation-fun (candidate)
"Given a handle completion CANDIDATE, return its annotation string, a username."
(caddr (assoc candidate mastodon-toot-completions)))