From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oL3zJn7/2WE6+QAAgWs5BA (envelope-from ) for ; Sat, 08 Jan 2022 22:17:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eFl+I37/2WEzSAEAauVa8A (envelope-from ) for ; Sat, 08 Jan 2022 22:17:50 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 45AEB162BB for ; Sat, 8 Jan 2022 22:17:50 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 73F695F72C; Sat, 8 Jan 2022 21:17:46 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by mail.notmuchmail.org (Postfix) with ESMTPS id D4AF65F70B for ; Sat, 8 Jan 2022 21:17:43 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n6J5q-0005Pf-5H for notmuch@notmuchmail.org; Sat, 08 Jan 2022 22:17:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: notmuch@notmuchmail.org From: Igor Sosa Mayor Subject: Re: Notmuch-Company overrides other company backends? Date: Sat, 08 Jan 2022 22:17:35 +0100 Message-ID: <87sfty7wr4.fsf@gmail.com> References: <87lezq6q0f.fsf@gmail.com> <87ee5it6fy.fsf@tethera.net> <874k6e6of9.fsf@gmail.com> <87bl0mt1xv.fsf@tethera.net> Mime-Version: 1.0 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:ZiiG26JmmxoTFbfrG5jPj/PMUu0= Message-ID-Hash: OQFX7RRIWLU5BUOISC6W64HR2THO553K X-Message-ID-Hash: OQFX7RRIWLU5BUOISC6W64HR2THO553K X-MailFrom: gmn-notmuch@m.gmane-mx.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641676670; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-owner:list-unsubscribe: list-subscribe:list-post; bh=qMJ3emHldsLTTDFjWCE//FVfgUrbnVU/QyEsNfR4J2g=; b=ob9TVwmDHWE39hBStGiGxAqz73PuIOdF/GMKB9OkZ/3c/r3h+y9jRJ02p0idnhA7nBM+Zu N2CgpxEDSd+mHRVwYRv8nEPdjM27hlWflrfdH/UInwNXJpazfJYTJlK5s+eWsZz9L5aiq8 thH7Kc3LYEDbd4bkomQwTDmgaIT5AZpZ9XsHkXhC+Kri5haWqVNQQFfhxrWoKDr4WOq1kE q3ore3cmNSiZBi2uxmcPk5wveFAtsO3rqRL9OuM76qhy39tpK8Zprp2Oad5pMBjpffFCk7 /15/g2gJpYoxkSkdkpg3k+e4yBexgcevqkBuaKxRW1RpmMhKJHYh4eg0W5EbVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641676670; a=rsa-sha256; cv=none; b=Tnn6ZloOCK5DQ4c2C6EctyrWnomDY4TJMR3LSYh/+1WoMZmTuto3CAFZ6x3TTzBouDqq3Z LPphQjgdBKLjE+cFoE7Ljh9MK6ay0GigR2JSI0ZNMpHLthkGnvznULFFirEqNoA8yUDpvT vOowTePRJJKjvt1D4ovVKqAq338O4F4NF2/n0Y6iSc6SjGqIRF1b0zNLtfQ0aheCO/gnqB oBljsmLWnKtzKXzumAs9DhTzY+Dfh9B2BXfcZJBDRTWX/q8zBkXnscD6q5y4TkwAfPAb6t fJ2zLAxP8BGwk1TLYjJcyILPqvL+dHpRwbBfCkMLbe8tz2poOZ8L1Lb7jSSt9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.23 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 45AEB162BB X-Spam-Score: -0.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: edFW0X53RbNq David Bremner writes: > Igor Sosa Mayor writes: > >>> >>> I guess you mean that it overrides it in a buffer-local way, in >>> notmuch-message-mode? Or do you see some kind of global overiding going >>> on? >>> >>> d >> >> thanks for your reply. Yes, sorry for not being clear enough. I see in >> the code >> >> (make-local-variable 'company-backends) >> (setq company-backends '(notmuch-company)) >> >> https://github.com/kootenpv/emp/blob/master/.emacs.d/notmuch/notmuch-company.el > > That's kind of an odd reference, since it seems to be some old copy of > our code, possibly mutated. yes, sorry. I think it was google who gave me the reference. I see in the present code there is (setq-local company-backends '(notmuch-company)) https://git.notmuchmail.org/git?p=notmuch;a=blob;f=emacs/notmuch-company.el;h=7e05dc8f2a796aaf2c664fdcc4be63f6a443057f;hb=HEAD >> What is the best method to get the other backends back? > > I would try replacing the (setq company-backends '(notmuch-local)) with > (push 'notmuch-company company-backends) > > In the case of the current code, you'd have to unwind the setq-default > into the two-lines in the old copy you linked to. OK, thanks. I will give it a try! Best, Igor