unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Attic Hermit <fjdksl@cock.li>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: [BUG] Notmuch keeps adding notmuch-address-expand-name to message-completion-alist
Date: Mon, 11 Sep 2017 19:50:23 +0900	[thread overview]
Message-ID: <87mv61jyq8.fsf@no_dom.tld> (raw)
In-Reply-To: <87r2vd7dad.fsf@tethera.net>

You can get rid of the bug by using `member` instead of `memq` in
`nomtuch-address-setup`:

diff -u a/notmuch-address.el b/notmuch-address.el
--- a/notmuch-address.el	2017-08-05 18:45:40.000000000 +0900
+++ b/notmuch-address.el	2017-09-11 19:40:41.230872915 +0900
@@ -159,7 +159,7 @@
 		       #'notmuch-address-expand-name)))
       (when setup-company
 	(notmuch-company-setup))
-      (unless (memq pair message-completion-alist)
+      (unless (member pair message-completion-alist)
 	(setq message-completion-alist
 	      (push pair message-completion-alist)))))

David Bremner <david@tethera.net> writes:

> Attic Hermit <fjdksl@cock.li> writes:
>
>> When I invocate compose-mail or something related with the message-mode
>> buffer and Notmuch, Notmuch keeps adding a pair like below to
>> `message-completion-alist`:
>>
>>   ("^\\(Resent-\\)?\\(To\\|B?Cc\\|Reply-To\\|From\\|Mail-Followup-To\\|Mail-Copies-To\\):"
>>   . notmuch-address-expand-name)
>>
>
> I don't know much about the cause, but I can confirm that many such
> pairs are added to this list.
>
> d
-- 
Attic Hermit

  reply	other threads:[~2017-09-11 10:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11  4:21 [BUG] Notmuch keeps adding notmuch-address-expand-name to message-completion-alist Attic Hermit
2017-09-11 10:14 ` David Bremner
2017-09-11 10:50   ` Attic Hermit [this message]
2017-09-13  1:31     ` [PATCH] emacs/address: use member instead of memq to check for pair David Bremner
2017-09-13  7:55       ` David Edmondson
2017-09-13 12:07       ` David Bremner
2017-09-13 12:48         ` Attic Hermit

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

  List information: https://notmuchmail.org/

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

  git send-email \
    --in-reply-to=87mv61jyq8.fsf@no_dom.tld \
    --to=fjdksl@cock.li \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.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 public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).