Gnus development mailing list
 help / color / mirror / Atom feed
* In-buffer completion of BBDB mail addresses with corfu
@ 2022-10-25 14:43 Arash Esbati
  2022-10-25 16:04 ` Eric S Fraga
  0 siblings, 1 reply; 8+ messages in thread
From: Arash Esbati @ 2022-10-25 14:43 UTC (permalink / raw)
  To: ding

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-26 14:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 14:43 In-buffer completion of BBDB mail addresses with corfu Arash Esbati
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

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).