[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master afc0aa36835: ; * lisp/minibuffer.el (completion-base-suffix): Doc
From: |
Eli Zaretskii |
Subject: |
master afc0aa36835: ; * lisp/minibuffer.el (completion-base-suffix): Doc fix (bug#48356). |
Date: |
Thu, 11 Apr 2024 02:54:05 -0400 (EDT) |
branch: master
commit afc0aa3683568dc93469f636367f85e579ab2612
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; * lisp/minibuffer.el (completion-base-suffix): Doc fix (bug#48356).
---
lisp/minibuffer.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index ffa5dc10c78..3d0a6f9694f 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -112,15 +112,17 @@ the closest directory separators."
(cons (or (cadr boundaries) 0)
(or (cddr boundaries) (length suffix)))))
-(defun completion-base-suffix (start end table predicate)
- "Return the completion boundary suffix as substring.
-START and END are the beginning and end of the entity being completed.
-TABLE and PREDICATE are completion table and predicate."
+(defun completion-base-suffix (start end collection predicate)
+ "Return suffix of completion of buffer text between START and END.
+COLLECTION and PREDICATE are, respectively, the completion's
+completion table and predicate, as in `completion-boundaries' (which see).
+Value is a substring of buffer text between point and END. It is
+the completion suffix that follows the completion boundary."
(let ((suffix (buffer-substring (point) end)))
(substring
suffix
(cdr (completion-boundaries (buffer-substring start (point))
- table
+ collection
predicate
suffix)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master afc0aa36835: ; * lisp/minibuffer.el (completion-base-suffix): Doc fix (bug#48356).,
Eli Zaretskii <=