* Completion at point with empty prefix?
@ 2012-11-30 0:15 Dmitry Gutov
2012-11-30 4:18 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Gutov @ 2012-11-30 0:15 UTC (permalink / raw)
To: help-gnu-emacs
In the mode I'm writing, in certain contexts, there can be only a
limited set of completions when the function call has no sender.
So I don't actually need a prefix to show the user the set of methods
they can call at the point, and supporting that should increase the API
discoverability.
How do I set that up? I have a completion-at-point function working, but
if START is the same as END in the returned list, `completion-at-point'
just says "No symbol here".
I tried inserting space after point and returning END = START + 1, made
no difference.
--Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Completion at point with empty prefix?
2012-11-30 0:15 Completion at point with empty prefix? Dmitry Gutov
@ 2012-11-30 4:18 ` Stefan Monnier
2012-11-30 15:32 ` Dmitry Gutov
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2012-11-30 4:18 UTC (permalink / raw)
To: help-gnu-emacs
> How do I set that up? I have a completion-at-point function working, but
> if START is the same as END in the returned list, `completion-at-point'
> just says "No symbol here".
That doesn't sound right. START==END should work correctly.
"No symbol here" sounds like an error returned by thingatpt.el, which is
not used by any generic part of the completion code, AFAIK.
IOW, I suspect you have a bug in your completion-at-point-function.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Completion at point with empty prefix?
2012-11-30 4:18 ` Stefan Monnier
@ 2012-11-30 15:32 ` Dmitry Gutov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Gutov @ 2012-11-30 15:32 UTC (permalink / raw)
To: Stefan Monnier; +Cc: help-gnu-emacs
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> How do I set that up? I have a completion-at-point function working, but
>> if START is the same as END in the returned list, `completion-at-point'
>> just says "No symbol here".
>
> That doesn't sound right. START==END should work correctly.
>
> "No symbol here" sounds like an error returned by thingatpt.el, which is
> not used by any generic part of the completion code, AFAIK.
> IOW, I suspect you have a bug in your completion-at-point-function.
Indeed, that was the problem. Thanks for the help.
--Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-30 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-30 0:15 Completion at point with empty prefix? Dmitry Gutov
2012-11-30 4:18 ` Stefan Monnier
2012-11-30 15:32 ` Dmitry Gutov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).