Function: completion-table-in-turn

completion-table-in-turn is a byte-compiled function defined in minibuffer.el.gz.

Signature

(completion-table-in-turn &rest TABLES)

Documentation

Create a completion table that tries each table in TABLES in turn.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun completion-table-in-turn (&rest tables)
  "Create a completion table that tries each table in TABLES in turn."
  ;; FIXME: the boundaries may come from TABLE1 even when the completion list
  ;; is returned by TABLE2 (because TABLE1 returned an empty list).
  ;; Same potential problem if any of the tables use quoting.
  (lambda (string pred action)
    (seq-some (lambda (table)
                (complete-with-action action table string pred))
              tables)))