From: Dmitry Gutov <dgutov@yandex.ru>
To: help-gnu-emacs@gnu.org
Subject: Completion at point with empty prefix?
Date: Fri, 30 Nov 2012 04:15:15 +0400 [thread overview]
Message-ID: <874nk89ca4.fsf@yandex.ru> (raw)
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
next reply other threads:[~2012-11-30 0:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-30 0:15 Dmitry Gutov [this message]
2012-11-30 4:18 ` Completion at point with empty prefix? Stefan Monnier
2012-11-30 15:32 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874nk89ca4.fsf@yandex.ru \
--to=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).