aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2023-12-31 11:11:32 +0100
committermarty hiatt <martianhiatus@riseup.net>2023-12-31 11:11:32 +0100
commit6fc44fe225ad229500509af6a985f58c6805481d (patch)
tree17cb7a89dbf30d482c744dd36e177a8b830d8fe6
parentf3cfd273f9d7f23cff8da1f483e975eaefba6e0e (diff)
fix signature of make-capf so we call it right!
-rw-r--r--lisp/mastodon-toot.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index c26db1e..f60f314 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1042,7 +1042,7 @@ TYPE is the candidate type, it may be :tags, :handles, or :emoji."
(mastodon-search--search-accounts-query
(buffer-substring-no-properties start end))))))
-(defun mastodon-toot--make-capf (regex type &optional annot-fun)
+(defun mastodon-toot--make-capf (regex annot-fun type)
"Build a completion backend for `completion-at-point-functions'.
REGEX is the regex to match preceding text.
TYPE is a keyword symbol for `mastodon-toot--fetch-completion-candidates'.