Subject: bug#12898: 24.2.50.1; Completion is not passed further on in emacs-lisp, org-mode etc.

From: Stefan Monnier <[email-masked]>
Date: Tue, 20 Nov 2012 13:22:29 -0500

> Are you suggesting that every single xxx-mode-completion-function should
> do that?

Depends what you mean by "do that".  If you mean "be careful to only
return non-nil when you positively know that point is in a place where
this completion-table is a good choice", then yes.

> That is, check for all possible combination that a symbol at
> point might represent?

No, indeed, this is a rare need.

> Why the final completion is done in completion-at-point and not in
> completion--capf-wrapper?

Because the completion data returned by completion-at-point-functions
might not even be used to perform completion.  E.g. it might be used to
decide whether we're leaving the current completion field (and hence
can hide the *Completions* buffer).

        Stefan