Function: project--buffers-completion-table
project--buffers-completion-table is a byte-compiled function defined
in project.el.gz.
Signature
(project--buffers-completion-table BUFFERS)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(defun project--buffers-completion-table (buffers)
(lambda (string pred action)
(cond
((eq action 'metadata)
'(metadata . ((category . project-buffer)
(cycle-sort-function . identity))))
((and (eq action t)
(equal string "")) ;Pcm completion or empty prefix.
(let* ((all (complete-with-action action buffers string pred))
(non-internal (cl-remove-if (lambda (b) (= (aref b 0) ?\s)) all)))
(if (null non-internal)
all
non-internal)))
(t
(complete-with-action action buffers string pred)))))