branch: elpa/fedi
commit a75c22bad1d9d6657d34a00b71dfc16b280ffc04
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
capf maker: opt category arg
---
fedi-post.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fedi-post.el b/fedi-post.el
index 80fbfea99f0..ab3a959aba9 100644
--- a/fedi-post.el
+++ b/fedi-post.el
@@ -229,7 +229,8 @@ Buffer-local variable `fedi-post-previous-window-config'
holds the config."
(match-end 1))))))
(defun fedi-post--return-capf (regex completion-fun &optional
- annot-fun _affix-fun exit-fun)
+ annot-fun _affix-fun exit-fun
+ category)
"Return a completion at point function.
REGEX is used to get the item before point.
@@ -265,6 +266,7 @@ and a status."
;; FIXME: we "should" use :affixation-function for this but i
;; can't get it to work so use an exit-fun hack:
:exit-function
+ :category category
(when exit-fun
(lambda (str status)
(funcall exit-fun str status)))