summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-04-24 22:37:09 +0300
committerEli Zaretskii <eliz@gnu.org>2022-04-24 22:37:09 +0300
commit9a78b235e99322f93c66f067fc2178370b31a2ad (patch)
tree9ffcaec2024ac537c4459a96bca4a383a4ecc2cd
parent1e9b9f403af73a281ee488da42a20c34dd8c05b9 (diff)
downloademacs-9a78b235e99322f93c66f067fc2178370b31a2ad.tar.gz
emacs-9a78b235e99322f93c66f067fc2178370b31a2ad.tar.bz2
emacs-9a78b235e99322f93c66f067fc2178370b31a2ad.zip
Improve indexing in "Programmed Completion"
* doc/lispref/minibuf.texi (Programmed Completion): Improve indexing. (Bug#55095)
-rw-r--r--doc/lispref/minibuf.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index f05f087ba70..bc2f14883cb 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -1936,6 +1936,7 @@ completion function is trying to complete. If the symbol matches one
of the keys in @code{completion-category-overrides}, the usual
completion behavior is overridden. @xref{Completion Variables}.
+@cindex @code{annotation-function}, in completion
@item annotation-function
The value should be a function for @dfn{annotating} completions. The
function should take one argument, @var{string}, which is a possible
@@ -1945,6 +1946,7 @@ Unless this function puts own face on the annotation suffix string,
the @code{completions-annotations} face is added by default to
that string.
+@cindex @code{affixation-function}, in completion
@item affixation-function
The value should be a function for adding prefixes and suffixes to
completions. The function should take one argument,
@@ -1955,6 +1957,7 @@ the completion string in the @file{*Completions*} buffer, and
a suffix displayed after the completion string. This function
takes priority over @code{annotation-function}.
+@cindex @code{group-function}, in completion
@item group-function
The value should be a function for grouping the completion candidates.
The function must take two arguments, @var{completion}, which is a
@@ -1965,12 +1968,14 @@ can also be @code{nil}. Otherwise the function must return the
transformed candidate. The transformation can for example remove a
redundant prefix, which is displayed in the group title.
+@cindex @code{display-sort-function}, in completion
@item display-sort-function
The value should be a function for sorting completions. The function
should take one argument, a list of completion strings, and return a
sorted list of completion strings. It is allowed to alter the input
list destructively.
+@cindex @code{cycle-sort-function}, in completion
@item cycle-sort-function
The value should be a function for sorting completions, when
@code{completion-cycle-threshold} is non-@code{nil} and the user is