From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0D5EE6DE035A for ; Mon, 11 Sep 2017 03:50:43 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.015 X-Spam-Level: X-Spam-Status: No, score=-0.015 tagged_above=-999 required=5 tests=[AWL=0.097, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 576XzrfnAYOe for ; Mon, 11 Sep 2017 03:50:42 -0700 (PDT) Received: from cock.li (cock.li [185.100.85.212]) by arlo.cworth.org (Postfix) with ESMTPS id AB2A56DE0222 for ; Mon, 11 Sep 2017 03:50:41 -0700 (PDT) From: Attic Hermit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1505127032; bh=5kr1ls8sCJD1UK8cTqB8SOlNruYgVCW881BkOW4kGg8=; h=From:To:Subject:In-Reply-To:References:Date:From; b=uggByskDVnQczvzVM0cRwgrPXQDAY0VZgVIj2HTwlsZnlg1qpyG6QuTSmaIm/R76l pXhQKo0uLrx7u+elKXxwERNmskAWqSv6gwgRoOYK7SB5Qvjl3N7RCWv9iyM73I6xez +AcMd9gEDXJ8I0+1dcvZ09XCKRYXmrrpo1b/pOSE7pJLMyZrtvb1UpTijhKzDfbbon iURT+ylC+W3e0DWLvPf6oA1ZcPD2N+/DZJ+W6hAPT96fe+2eT9cZZ4pmjfAZBQBW0a eP99OoZSt2z9tBt6+GDZrlUBSoHgOp+cs/5tTYak46LZM/ALgo5ley3RZDDQSL7ces j76H7SQsgOQPg== To: David Bremner , notmuch@notmuchmail.org Subject: Re: [BUG] Notmuch keeps adding notmuch-address-expand-name to message-completion-alist In-Reply-To: <87r2vd7dad.fsf@tethera.net> References: <8760cpn9v9.fsf@no_dom.tld> <87r2vd7dad.fsf@tethera.net> Date: Mon, 11 Sep 2017 19:50:23 +0900 Message-ID: <87mv61jyq8.fsf@no_dom.tld> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2017 10:50:43 -0000 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 writes: > Attic Hermit 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