emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/minibuffer-completion-enhancements 1054200149f 08/35: ; (complet


From: Eshel Yaron
Subject: feature/minibuffer-completion-enhancements 1054200149f 08/35: ; (completion-metadata): Mention 'narrow-completions-function'.
Date: Sun, 21 Jan 2024 03:54:30 -0500 (EST)

branch: feature/minibuffer-completion-enhancements
commit 1054200149fe025f1a0fdf2e34c96e5d5dd5d99a
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    ; (completion-metadata): Mention 'narrow-completions-function'.
---
 lisp/minibuffer.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 2c31b9f10a0..4059e81cd6a 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -138,6 +138,9 @@ This metadata is an alist.  Currently understood keys are:
    of completions.  Can operate destructively.
 - `cycle-sort-function': function to sort entries when cycling.
    Works like `display-sort-function'.
+- `narrow-completions-function': function for
+  narrowing (restricting) the completions list.  This function
+  overrides `minibuffer-narrow-completions-function', which see.
 The metadata of a completion table should be constant between two boundaries."
   (let ((metadata (if (functionp table)
                       (funcall table string pred 'metadata))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]