branch: externals/jinx
commit 5e7ddede2552e3f9a337b94e3c353c4e02578cfe
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Drop annotation-function
    
    We provide an affixation-function supported since Emacs 28
---
 jinx.el | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/jinx.el b/jinx.el
index c2f5fbd64d..8f098b278c 100644
--- a/jinx.el
+++ b/jinx.el
@@ -777,12 +777,6 @@ optionally added."
                  (or (get-text-property 0 'jinx--prefix cand) "")
                  (or (get-text-property 0 'jinx--suffix cand) ""))))
 
-(defun jinx--correct-annotation (cand)
-  "Annotate CAND during completion."
-  (if-let ((prefix (get-text-property 0 'jinx--prefix cand)))
-      (format #(" (%s)" 0 5 (face jinx-key)) (string-trim prefix))
-    (get-text-property 0 'jinx--suffix cand)))
-
 (defun jinx--group (word transform)
   "Group WORD during completion, TRANSFORM candidate if non-nil."
   (if transform
@@ -819,8 +813,7 @@ Optionally show prompt INFO and insert INITIAL input."
                           (display-sort-function . ,#'identity)
                           (cycle-sort-function . ,#'identity)
                           (group-function . ,#'jinx--group)
-                          (affixation-function . ,#'jinx--correct-affixation)
-                          (annotation-function . ,#'jinx--correct-annotation)))
+                          (affixation-function . ,#'jinx--correct-affixation)))
                        nil nil initial t word)
                       word)))))
            (len (length choice)))

Reply via email to