From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 uHRUOPXx2WEHsgAAgWs5BA (envelope-from ) for ; Sat, 08 Jan 2022 21:20:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sI7vMPXx2WGBeQAAG6o9tA (envelope-from ) for ; Sat, 08 Jan 2022 21:20:05 +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 52618156DA for ; Sat, 8 Jan 2022 21:20:05 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5EB085F729; Sat, 8 Jan 2022 20:20:01 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3A2525F70B for ; Sat, 8 Jan 2022 20:19:59 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 155095FC42; Sat, 8 Jan 2022 15:19:58 -0500 (EST) Received: (nullmailer pid 3179846 invoked by uid 1000); Sat, 08 Jan 2022 20:19:56 -0000 From: David Bremner To: Igor Sosa Mayor , notmuch@notmuchmail.org Subject: Re: Notmuch-Company overrides other company backends? In-Reply-To: <874k6e6of9.fsf@gmail.com> References: <87lezq6q0f.fsf@gmail.com> <87ee5it6fy.fsf@tethera.net> <874k6e6of9.fsf@gmail.com> Date: Sat, 08 Jan 2022 16:19:56 -0400 Message-ID: <87bl0mt1xv.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: QFBFH6T2JSPXMN2O5GLPZAMS27QGS7E5 X-Message-ID-Hash: QFBFH6T2JSPXMN2O5GLPZAMS27QGS7E5 X-MailFrom: david@tethera.net 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=1641673205; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=nfTXcByz3T7wcw4A37fydZEO2rpxHmB+Kvqw3OxfzwQ=; b=muakIO5QMuEAL2Q5yTj5HeQ8MVQgyRcwjFIgD3WAUmqSLvJkz7NTv5h39jQobwxrgBAf1U MvnAnqzeeZl7F56STqa1aBVIHDLuAGnhINkT6O/tkEwVpF7bJo5o96vdlWqCsgME4nAlw2 O89TkHAsXuhuQu6ylPsMhOXdCZd9kIRKNJbPm/BV1c4O9etLQzC14Oc6Zf2PO8eUfi78zZ SQthJtFsdoflVSVVi2c2g5zdokSpiMTXdRqg6nZ3u5e07KbdrZxMU6VmCLGCEYuxVenqpm 2FrV5o4eEd45eva0bsK90tKJJJ8tFSNX34SgdOuz96pnCkvFmfslSyTGFyHPRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641673205; a=rsa-sha256; cv=none; b=dfcDh1fFQlAHR6GRNW3USR1dDJkeI4vffIrXHtUevBU1uxfGJMvZlAaFyQbx0/gu/IbuD3 SE/u0eEt/WC7Fa/NtcMn7WP7Z2uknSyvATueeXd81RhVzfLCE7qa6w2SKPXQkwN2ysKTat heSp8HVNnaTgrCXmKD/7p0CvbMpPbVmK1OlVar0punV6gyNeF15QEAJGc6YGkJ2WWt92li u6wCCWmfSaJbWNSW6LLtwqpiTr7ebzHFB0ud3/xCAeSTkHCSHlhpmBpkjhredg4IM/Ks9Z IutLda+hwNGWI9voLKDLg5RQragvaRKkQ5ni0EctKeKbDEVLFUQrK9m6MVF74A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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.33 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 52618156DA X-Spam-Score: -0.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1xoKhfd//881 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. > 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.