From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alexander Adolf <alexander.adolf@condition-alpha.com>
Cc: emacs-devel@gnu.org
Subject: Re: Thoughts on Refactoring In-Buffer Completion In message.el
Date: Tue, 16 Aug 2022 21:54:44 -0400 [thread overview]
Message-ID: <jwvo7wjeiz3.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <95b238bfd6be9d9b27a8d4c6631e7cdd@condition-alpha.com> (Alexander Adolf's message of "Sat, 13 Aug 2022 15:11:41 +0200")
> - figure out, and implement how to add completion category metadata to
> completion tables;
We really should provide a `completion-table-with-metadata` function to
do that, but basically it can start with something like:
(defun completion-table-with-metadata (table metadata)
(lambda (string pred action)
(if (eq action 'metadata)
metadata
(complete-with-action action table string pred))))
[ You may want to make spice it up in case you want to handle the case
where `table` already provides some metadata which you'd then want
to augment. ]
Stefan
next prev parent reply other threads:[~2022-08-17 1:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-13 13:11 Thoughts on Refactoring In-Buffer Completion In message.el Alexander Adolf
2022-08-17 1:54 ` Stefan Monnier [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-06-23 15:26 Alexander Adolf
2022-06-25 4:35 ` Thomas Fitzsimmons
2022-06-27 15:48 ` Alexander Adolf
2022-06-25 8:22 ` Stefan Monnier
2022-06-27 16:37 ` Alexander Adolf
2022-06-28 15:49 ` Stefan Monnier
2022-07-19 21:41 ` Alexander Adolf
2022-07-19 22:13 ` Stefan Monnier
2022-07-20 20:59 ` Alexander Adolf
2022-07-20 23:59 ` Stefan Monnier
2022-07-22 13:20 ` Alexander Adolf
2022-07-22 13:58 ` Alexander Adolf
2022-07-27 21:16 ` Alexander Adolf
2022-08-17 2:45 ` 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=jwvo7wjeiz3.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=alexander.adolf@condition-alpha.com \
--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.