From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SNRpC3nc+2IvBgEAbAwnHQ (envelope-from ) for ; Tue, 16 Aug 2022 20:05:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MJuOCnnc+2LphQEAG6o9tA (envelope-from ) for ; Tue, 16 Aug 2022 20:05:45 +0200 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 CB4923860B for ; Tue, 16 Aug 2022 20:05:44 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 185375FD30; Tue, 16 Aug 2022 18:05:42 +0000 (UTC) X-Greylist: delayed 1777 seconds by postgrey-1.36 at yantan; Tue, 16 Aug 2022 18:05:38 UTC Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.31.41]) by mail.notmuchmail.org (Postfix) with ESMTPS id D47B55F3E2 for ; Tue, 16 Aug 2022 18:05:38 +0000 (UTC) Received: from [46.244.219.92] (helo=condition-alpha.com) by smtprelay03.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oO0Uq-0004ET-E0; Tue, 16 Aug 2022 19:36:56 +0200 Message-Id: <108a3b7800978824577c1f99036f280e@condition-alpha.com> From: Alexander Adolf To: David Bremner , notmuch@notmuchmail.org Subject: Re: [Emacs] Using notmuch-address with EUDC, and completion-at-point In-Reply-To: <871qtlhi1j.fsf@tethera.net> References: <8a437e3f646f7972c86c4aae57ae7452@condition-alpha.com> <878roa7p45.fsf@tethera.net> <871qtlhi1j.fsf@tethera.net> Date: Tue, 16 Aug 2022 19:35:58 +0200 MIME-Version: 1.0 X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Message-ID-Hash: DBFAW7LHBFRQV6XYJLOQFR62MT32HAPC X-Message-ID-Hash: DBFAW7LHBFRQV6XYJLOQFR62MT32HAPC X-MailFrom: alexander.adolf@condition-alpha.com 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-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660673144; 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=FtwzO5yWWtr+DaP0qbEcnLcuu+S3Yxg0VVPUiAWMHhc=; b=lQmnZhYCbr7e0g1E3vTzPM6x4VECmORo4uVvXG3iXtt3yewH9iaCw5rkMWT8rOvMJW3kPU GqVGCakdHrTx+CSHngLKXGQ/necLwaEiSuwuNxXom5wHzzy18zcVECLEMjOC7cocMy3qRj YyV5J1g8Sk45JB0UjZuxhii84mrlSjblZ/p8P7T0b/Qt1GD/rn6Ypc4JFufF48iUoP69Fl gnUnui1osfdcjjgIDan2pmDkCtxKWpSIxTsQNZ+jh/X7HvdEeJk9fdfXJCVbO3Km3WuNKx DEhCDj0wY/HUc7NgL43uhLjZ+Ma4FUf+em0N6aKzBnXyH3T64mVtsAHXyqWuDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660673144; a=rsa-sha256; cv=none; b=n1k3CKAJD1LoY1A7joOTI449sroojdpj83ilUjZ3De4fyrYbStRszfAzJU1XC1BIIZlUjD 5gdAmJyAaBzw0GtQl5QaGjiHG6W/e47pqr6ZpY9vBaCNptOsnPNQItrBY0w24rhwqzRCT0 mWbodByiEZsjZOeehDpO25/Fni13DAiYBGBYVsfpBJueou9rIWjQLTCWVwhpyZ/QoRC3qb 5tTaSY4XsRXV86IW57F22hpDO9BXQcsoWiSqWyRZorZEmakW8pkXA/eKKbhoNxQo7MOKQM Wl9yp/khmtqojeruXhYeL91DMeQl+/7HdWxHqaEKP/Vdv7qd/j/4WNCyKWC1XQ== 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: -3.59 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: CB4923860B X-Spam-Score: -3.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: Rn0IslhwrmDQ Hello David, David Bremner writes: > [...] >> You could do >> >> (require 'eudcb-notmuch-address) >> (eudc-notmuch-address-set-server "localhost") >> >> and bind the function eudc-expand-inline to a key chord of your choice >> in message-mode-map. >> >> Then you'd no longer have to tweak message-completion-alist. > > I stopped my investigations at the point it looked like I needed to edit > notmuch-address.el. I guess another patch or two is needed to do notmuch > integration. And of course we would need tests (in the notmuch test > suite) and documentation before actually merging the functionality, but > those can probably wait until we have a clearer idea what benefits the > change would bring. I agree with your assessment that the benefit in the very short term is not too big. If and when the proposal I made on emacs-devel, to modify how email address completion is handled in Emacs's message.el should get accepted & merged, then the enabled changes would be much bigger: no integration with message.el needed (i.e. no more need to hook into message-completion-alist), single point of interface will be EUDC, no more integration with company needed. >From what it sound s like, it would seem to make more sense to wait for that Emacs patch to get merged? Bundling the new code with notmuch, but without any integration with the rest of it, effectively leaving it to users to figure out how to make use of it wouldn't seem to make too much sense, OTOH. >> This assumes that eudc-expand-inline is present in Emacs 27, of course, >> which I admittedly haven't checked. > > The function exists here in Emacs 27.1. > [...] Thanks for confirming! Cheers, --alexander