From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 iHSvMHAr9mIPAQEAbAwnHQ (envelope-from ) for ; Fri, 12 Aug 2022 12:29:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2NmVMHAr9mJV6wAA9RJhRA (envelope-from ) for ; Fri, 12 Aug 2022 12:29:04 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 59A752997E for ; Fri, 12 Aug 2022 12:29:04 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2DEC95F3E7; Fri, 12 Aug 2022 10:29: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 A55EF5F3E2 for ; Fri, 12 Aug 2022 10:28:58 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 7B8C05FBC0; Fri, 12 Aug 2022 06:28:57 -0400 (EDT) Received: (nullmailer pid 2841796 invoked by uid 1000); Fri, 12 Aug 2022 10:28:56 -0000 From: David Bremner To: Alexander Adolf , notmuch@notmuchmail.org Subject: Re: [Emacs] Using notmuch-address with EUDC, and completion-at-point In-Reply-To: References: <8a437e3f646f7972c86c4aae57ae7452@condition-alpha.com> <878roa7p45.fsf@tethera.net> Date: Fri, 12 Aug 2022 07:28:56 -0300 Message-ID: <871qtlhi1j.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 4NTFWLLUKLBM4C2Q4FQ4DN2GTFUQ6MI7 X-Message-ID-Hash: 4NTFWLLUKLBM4C2Q4FQ4DN2GTFUQ6MI7 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-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=1660300144; 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=GpuEdgOF4M2PNir38LryUb0F4eDu2I5v0ibv38WZHmg=; b=UySqt/imIO73T/sRhFBugjCxvbZkXdPSr7E8H30CmhcDXXwceZdY1nr8R4XMKOAbNRUuZv mHkpsTSveYlfIIn7bKhJjy1/Iix3wA245m5TKLDGJZUswfRSicUElh+YXECxDzCfEWRo7P qi1AIV04PbVEtWwupw85ixNJmMUFbY85VpIpZpoyTX0QEF5IZbmZYy0whevLQF/SJnHuo7 sV6xcYZTrzySsrRICp/pUVQ4eAXNIFxjCkdc1bafQaDci7d14PAsr8YaGD4zEl+xkmNxpn 7IVc31FJkjbJNR7yISztSEYJAdUNuiOI+fodLvdp2yAq8y7LiQ5KvV8jYUjr7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660300144; a=rsa-sha256; cv=none; b=g72H8KACJBSX/zsxiSuYw/rK+kDCM0I29oS/s65e3sWPFbOYY7TyGDnst/zRNlkfNndZrk u7ii0+edGnvwZgtOVADX9RioiyZnd14jQ4YQnGtMNAxIBxEVVlxa9n8+0A8XkH/zA5S0+h RBifeqRMCwirH+R3kvDXtlkdtE9H5Fsm7N651K4BoUXqLwMl+LZRva68+sIMh2l0qlfs0H Q1XHgOXdpuUjK4oIWPhDfu3PrrsfuAnHHp0UDneFtrqgs9LmoWwjZwlKktus9sgFPEhp3u Y0q1LLmz7jgw599fe0AeMAr/RY9yMlKbI4/w6TenSLfaUGWopMOz7KVF2QV16w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 59A752997E X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: Cs+Emg7tsyPK Alexander Adolf writes: > Hello David, > > thanks for your comments and questions. > > David Bremner writes: > >> Alexander Adolf writes: >> >>> As I wanted email address completion via completion-at-point in >>> message-mode too, I implemented a new EUDC function to go into >>> completion-at-point-functions [3]. >>> >>> [1] https://company-mode.github.io >>> [2] https://github.com/minad/corfu >>> [3] https://github.com/emacs-mirror/emacs/blob/master/lisp/net/eudc-capf.el >>> >> >> I will have to leave to others to test this, since I'm personally still >> running emacs 27 (and that is likely to continue for a while, at least >> on some machines). > > 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. > 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. > What you'd probably lose (or no longer need, whichever way you view it) > is any company-mode integration. Unless the UX is very close, some people will strongly prefer to stay with the existing completion, so I guess we'd need to make it opt-in. Unfortunately as Tomi already pointed out the configuration is already a bit of a confusing mess.