From: Eli Zaretskii Date: Thu, 11 Apr 2024 06:53:34 +0000 (+0300) Subject: ; * lisp/minibuffer.el (completion-base-suffix): Doc fix (bug#48356). X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=01645b27769a9906e44fba3f0b4b9a648c8e5c37;p=emacs.git ; * lisp/minibuffer.el (completion-base-suffix): Doc fix (bug#48356). (cherry picked from commit afc0aa3683568dc93469f636367f85e579ab2612) --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index a3c1056af36..98f299dd3a5 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -92,15 +92,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)))))