Hello,

Eric S. Fraga [09/Jan  5:03pm GMT] wrote:
> Response below/inline for email Sean Whitton wrote:
>> (original email sent  9 Jan 2026 at 15:19)
>>
>> You would need to set up notmuch indexing your mail, then load
>> notmuch-address, and call notmuch-address-setup.
>
> Sean,
>
> maybe you can help by pointing me in the right direction.
>
> If I'm typing an address, I can get completion by
>
> M-: (notmuch-address-expand-name) RET
>
> but if I hit TAB, it expands as if in the text body.  I have edebugged
> my way through the functions and it seems that this code:
>
> (run-hook-wrapped 'completion-at-point-functions
>                   #'completion--capf-wrapper 'all)
>
> in minibuffer.el (function completion-at-point) fails (returns nil).
> completion-at-point-functions looks fine as does
> message-completion-alist.  As a result of that sexp returning nil, the
> text-mode binding for TAB takes over, which is not what I want.
>
> Any idea what I could try to get TAB completion working?

I'm afraid not.  The extent of my configuration is:

--8<---------------cut here---------------start------------->8---
(when (locate-library "notmuch-address")
  (require 'notmuch-address)
  (notmuch-address-setup))
--8<---------------cut here---------------end--------------->8---

I do have icomplete-mode turned on too, and a note saying "This relies
on user.primary_email, user.other_email notmuch config keys."

I see that notmuch adds an entry to message-completion-alist:

    
("^\\(Resent-\\)?\\(To\\|B?Cc\\|Reply-To\\|From\\|Mail-Followup-To\\|Mail-Copies-To\\):"
  . notmuch-address-expand-name)

so I wonder if you are lacking that somehow?

-- 
Sean Whitton

Reply via email to