Function: majutsu-completion-entry-suffix-function

majutsu-completion-entry-suffix-function is a natively compiled function defined in majutsu-completion.el.

Signature

(majutsu-completion-entry-suffix-function ENTRIES ENTRY-SUFFIX-FUNCTION)

Documentation

Return candidate suffix function backed by ENTRIES.

ENTRY-SUFFIX-FUNCTION is called with one entry from ENTRIES. Candidates without entries simply get no suffix.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-completion.el
(defun majutsu-completion-entry-suffix-function (entries entry-suffix-function)
  "Return candidate suffix function backed by ENTRIES.
ENTRY-SUFFIX-FUNCTION is called with one entry from ENTRIES.  Candidates
without entries simply get no suffix."
  (when (and entries (> (hash-table-count entries) 0))
    (lambda (candidate)
      (when-let* ((entry (gethash candidate entries)))
        (funcall entry-suffix-function entry)))))