[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12898: 24.2.50.1; Completion is not passed further on in emacs-lisp,
From: |
Stefan Monnier |
Subject: |
bug#12898: 24.2.50.1; Completion is not passed further on in emacs-lisp, org-mode etc. |
Date: |
Tue, 20 Nov 2012 13:22:29 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
> 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