Function: help--symbol-completion-table
help--symbol-completion-table is a byte-compiled function defined in
help-fns.el.gz.
Signature
(help--symbol-completion-table STRING PRED ACTION)
Source Code
;; Defined in /usr/src/emacs/lisp/help-fns.el.gz
(defun help--symbol-completion-table (string pred action)
(if (eq action 'metadata)
`(metadata
,@(when completions-detailed
'((affixation-function . help--symbol-completion-table-affixation)))
(category . symbol-help))
(when help-enable-completion-autoload
(let ((prefixes (radix-tree-prefixes (help-definition-prefixes) string)))
(help--load-prefixes prefixes)))
(let ((prefix-completions
(and help-enable-completion-autoload
(mapcar #'intern (all-completions string definition-prefixes)))))
(complete-with-action action obarray string
(if pred (lambda (sym)
(or (funcall pred sym)
(memq sym prefix-completions))))))))