all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniele Nicolodi <daniele@grinta.net>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Documentation about the completion framework
Date: Mon, 21 Jan 2019 12:22:39 -0700	[thread overview]
Message-ID: <62c8a43a-16f4-cd86-da24-df3dcbe68537@grinta.net> (raw)

Hello,

I'm implementing completion-at-point for an emacs mode.

Unfortunately docstring of the relevant elisp functions are not always
detailed and in some cases not complete. I would also really appreciate
some documentation on how the framework can be used and how is it
supposed to be used, even better if there would be some hints on how to
keep it efficient.

Does such documentation exist somewhere? Does anyone have any resource
to recommend?

One specific question I have: in some circumstances completion-at-point
enters a mode in which it is called for each keystroke (I think this is
completion-in-region-mode). How does this happen and why? I would like
to avoid that my function to collect completion targets get called on
each keystroke. Is there a way to do that?

Another question: what is the most efficient way to collect completion
targets in the current buffer? Is there an alternative from doing it at
ache invocation of the completion-at-point hook?

Thank you!

Cheers,
Dan



             reply	other threads:[~2019-01-21 19:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-21 19:22 Daniele Nicolodi [this message]
2019-01-21 19:49 ` Documentation about the completion framework Eric Abrahamsen
2019-01-21 22:33   ` Daniele Nicolodi
2019-01-21 23:11     ` Eric Abrahamsen
2019-01-21 23:13   ` Drew Adams
2019-01-22 16:31     ` Eric Abrahamsen
2019-01-22 20:22       ` Drew Adams
2019-01-21 21:17 ` Stefan Monnier
2019-01-21 22:21   ` Daniele Nicolodi
2019-01-22  2:02   ` Daniele Nicolodi
2019-01-22  3:37     ` Stefan Monnier
2019-01-22  3:53       ` Daniele Nicolodi
2019-01-22 12:11         ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=62c8a43a-16f4-cd86-da24-df3dcbe68537@grinta.net \
    --to=daniele@grinta.net \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.