Function: css--foreign-completions
css--foreign-completions is a byte-compiled function defined in
css-mode.el.gz.
Signature
(css--foreign-completions EXTRACTOR)
Documentation
Return a list of completions provided by other buffers.
EXTRACTOR should be the name of a function that may be defined in one or more buffers. In each of the buffers where EXTRACTOR is defined, EXTRACTOR is called and the results are accumulated into a list of completions.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/css-mode.el.gz
(defun css--foreign-completions (extractor)
"Return a list of completions provided by other buffers.
EXTRACTOR should be the name of a function that may be defined in
one or more buffers. In each of the buffers where EXTRACTOR is
defined, EXTRACTOR is called and the results are accumulated into
a list of completions."
(delete-dups
(seq-mapcat
(lambda (buf)
(with-current-buffer buf
(funcall (symbol-value extractor))))
(buffer-list))))