Function: tags-complete-tags-table-file

tags-complete-tags-table-file is a byte-compiled function defined in etags.el.gz.

Signature

(tags-complete-tags-table-file STRING PREDICATE WHAT)

Documentation

Complete STRING from file names in the current tags table.

PREDICATE, if non-nil, is a function to filter possible matches: if it returns nil, the match is ignored. If PREDICATE is nil, every possible match is acceptable. WHAT is a flag specifying the type of completion: t means all-completions operation, any other value means try-completions operation.

This function serves as COLLECTION argument to completing-read, see the Info node (elisp) Programmed Completion for more detailed description of the arguments.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/etags.el.gz
(defun tags-complete-tags-table-file (string predicate what)
  "Complete STRING from file names in the current tags table.
PREDICATE, if non-nil, is a function to filter possible matches:
if it returns nil, the match is ignored.  If PREDICATE is nil,
every possible match is acceptable.
WHAT is a flag specifying the type of completion: t means `all-completions'
operation, any other value means `try-completions' operation.

This function serves as COLLECTION argument to `completing-read',
see the Info node `(elisp) Programmed Completion' for more detailed
description of the arguments."
  (save-excursion
    ;; If we need to ask for the tag table, allow that.
    (let ((enable-recursive-minibuffers t))
      (visit-tags-table-buffer))
    (if (eq what t)
        (all-completions string (tags-table-files) predicate)
      (try-completion string (tags-table-files) predicate))))