]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/minibuffer.el (completion-base-suffix): Doc fix (bug#48356).
authorEli Zaretskii <eliz@gnu.org>
Thu, 11 Apr 2024 06:53:34 +0000 (09:53 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 16:55:29 +0000 (18:55 +0200)
(cherry picked from commit afc0aa3683568dc93469f636367f85e579ab2612)

lisp/minibuffer.el

index a3c1056af36817e854bdde3684c7760f36d09952..98f299dd3a5f7a6f488d2f5fa5a71dbc4f318ad2 100644 (file)
@@ -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)))))