GNU bug report logs -
#18265
24.3.92; lisp-completion-at-point should return nil in comments, unless after `
Previous Next
Reported by: Dmitry <dgutov <at> yandex.ru>
Date: Thu, 14 Aug 2014 12:27:01 UTC
Severity: minor
Found in version 24.3.92
Fixed in version 25.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 18265 <at> debbugs.gnu.org (full text, mbox):
On 08/15/2014 04:33 PM, Stefan Monnier wrote:
> As it currently stands, there's no question that your original request
> is right (the one stated in the "Subject:"), so feel free to fix it.
Ok thanks, I will. I've been holding off on committing to trunk until I
start using it again, but maybe it's time.
> I'm just thinking of how we could also satisfy those who might want to
> complete code-like things in comments, without having to resort
> to customization.
I've suggested one approach (in addition to seeing if there's a
backquote before the current prefix): look if the current text is
specially indented and separated with empty lines (though this is a very
imprecise heurystic).
And for the cases when it's not, we can add a new completion function at
the end of the default c-a-p-f value, which would work like
`company-dabbrev' does. Or like `company-dabbrev-code', in `prog-mode'
descendants. `company-capf' would ignore it, for the time being, like it
does with `tags-completion-at-point-function' currently.
You've called ":exclusive no" a hack yourself before, and
:merge-with-rest looks not much different to me, going counter to the
c-a-p-f interface.
It raises questions, like if `lisp-completion-at-point' would like to be
merged with the rest, will it be merged with all of them? Won't the
other completion functions get a choice in the matter? What if one of
them is smart enough to provide all completions for the current context,
by itself?
And anyway, it doesn't seem to help with the distinction between manual
and idle completion, unless you'd prefer to only activate the
:merge-with-rest logic in the case of manual invocation. Which seems
orthogonal to the property's purpose.
This bug report was last modified 10 years and 229 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.