Function: completion-basic-all-completions

completion-basic-all-completions is a byte-compiled function defined in minibuffer.el.gz.

Signature

(completion-basic-all-completions STRING TABLE PRED POINT)

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun completion-basic-all-completions (string table pred point)
  (let* ((beforepoint (substring string 0 point))
         (afterpoint (substring string point))
         (bounds (completion-boundaries beforepoint table pred afterpoint))
         ;; (suffix (substring afterpoint (cdr bounds)))
         (prefix (substring beforepoint 0 (car bounds)))
         (pattern (delete
                   "" (list (substring beforepoint (car bounds))
                            'point
                            (substring afterpoint 0 (cdr bounds)))))
         (all (completion-pcm--all-completions prefix pattern table pred)))
    (completion-hilit-commonality all point (car bounds))))