From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mKrBN/Yt2mGTfQAAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 01:36:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WJV+NPYt2mFzcwEAauVa8A (envelope-from ) for ; Sun, 09 Jan 2022 01:36:06 +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 89685201E3 for ; Sun, 9 Jan 2022 01:36:06 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 32C245F72E; Sun, 9 Jan 2022 00:36:02 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by mail.notmuchmail.org (Postfix) with ESMTPS id D01705F5F0 for ; Sun, 9 Jan 2022 00:35:58 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n6MBh-0006Tc-Ls for notmuch@notmuchmail.org; Sun, 09 Jan 2022 01:35:57 +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: Sun, 09 Jan 2022 01:35:50 +0100 Message-ID: <87v8ytzqxl.fsf@gmail.com> References: <87lezq6q0f.fsf@gmail.com> <87ee5it6fy.fsf@tethera.net> <874k6e6of9.fsf@gmail.com> <87bl0mt1xv.fsf@tethera.net> <87sfty7wr4.fsf@gmail.com> Mime-Version: 1.0 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:4e1riIVuCYcwQcnOI1VxM4BuIUg= Message-ID-Hash: FOXTN76G6WH7XHJW3YAOO3SDCVTCXKXG X-Message-ID-Hash: FOXTN76G6WH7XHJW3YAOO3SDCVTCXKXG 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=1641688566; 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=DmwpWKThj4h9/XUxR8y9FE+EdmsrLCmOtUcabPTXfPs=; b=NBKEjTGk+gJqRUFu5QEO3yhNOtTawoUcFM0ZyTbVmBxwMXAjk7Dj9LWO6S1JtfZlu9QB6C EC9MRFSpGjyQoIhtEGhWYpvZZVklSUmKHSM3hev/7Nwcf50yn5COwKIatJ9r4YiYd4Ebra iaeC1ecWXf2H3SNNjk+P5PvDWPHLHkYCnGXo5vyxm6HLXvwlroaxruH8sRs/2uTmVcRmPE ceHP5wWL9jGjqSnWMdgTGN+2/1kSCXxuyJ6oMfvnb4rEze6Op95quBJJj07ztc7JEmdv95 BxB+UgsLuaMqO1ohBeRx7WCHS8inK7TUwUSc9B6gN5tkb3DVlheREAXOx/HLpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641688566; a=rsa-sha256; cv=none; b=UY1Ng3W9W3yuFqKXvw8BrKVCBx6dZNLEoBq1yvQCA77nLu6SOmBFRHxgUzH1yNEGKARhqE emLXLBIKEvW+fW1b/pqiXtxEGDbsMY5le/RO0+PfkKH63cz9elRtiTjvulewJH9kCMpnbX mbBrCu6skci9eRCmMC5SHKC3HgCWQXZGOMXZKIbfCNPVx0LTBE8G7ZEUeiUpY2eGjiddcQ JKIVGhloVGpQ+whAYygKt9MU3yTyk+5OBcqTOLtu/W+2Z/M+tcSeJDdNiZMfWRVKWxHqFm OkTyMGXh3ML0jV1w8TdFRmJbryg/nzQ5lVGGHe7HcvRCJxChCMkqIX+/Rnp5TQ== 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.27 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: 89685201E3 X-Spam-Score: 0.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: lh264gywBxY1 Igor Sosa Mayor writes: > 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) >> Just for the records in case someone in the future has the same problem. This seems to work: (defun my-notmuch-messagemode-hook () (add-to-list 'company-backends '(company-ispell company-dabbrev) t) ) (add-hook 'notmuch-message-mode-hook 'my-notmuch-messagemode-hook)