Gnus development mailing list
 help / color / mirror / Atom feed
From: Arash Esbati <>
Subject: In-buffer completion of BBDB mail addresses with corfu
Date: Tue, 25 Oct 2022 16:43:53 +0200	[thread overview]
Message-ID: <> (raw)

Hi all,

I'm playing with corfu instead of company-mode and it occurred to me
that I don't get any in-buffer completion in 'To' field when I hit TAB
from my BBDB database.  I looked at message.el and it seems to have some
functions to this purpose (message-completion-function, message-tab,
message-expand-name, ...) but it doesn't work for me.

This is the value of `completion-at-point-functions' for me while
writing this message.

| completion-at-point-functions is a variable defined in ‘minibuffer.el’.
| Its value is
| (eudc-capf-complete message-completion-function t)
| Local in buffer *unsent mail*; global value is 
| (tags-completion-at-point-function)

Before adding something like this to my .gnus:

  (add-hook 'message-mode-hook
            (lambda ()
              (add-to-list 'completion-at-point-functions
                           (cape-company-to-capf 'company-bbdb))))

Does message.el has a prefabbed Capf for BBDB or any other trick to make
this work?

Best, Arash

             reply	other threads:[~2022-10-25 15:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 14:43 Arash Esbati [this message]
2022-10-25 16:04 ` Eric S Fraga
2022-10-26  7:01   ` Arash Esbati
2022-10-26  7:58     ` Eric S Fraga
2022-10-26  9:03       ` Arash Esbati
2022-10-26 10:04         ` Eric S Fraga
2022-10-26 11:10           ` Arash Esbati
2022-10-26 14:38             ` Eric S Fraga

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:

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

  git send-email \ \ \ \

* 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 NNTP newsgroup(s).