Why is this function:
(defun shyn/func ()
(declare (completion (lambda (symbol current-buffer)
nil)))
(interactive))
still listed by pressing M-x TAB in buffer *scratch*?
(completion COMPLETION-PREDICATE)Declare COMPLETION-PREDICATE as a function to determine whether to include the symbol in the list of functions when asking for completions in
M-x.
Update 2023-6-15
Reported as bug#64045; Related documentation got clarified.