From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id KK6LIKX8emfKgwAAqHPOHw:P1 (envelope-from ) for ; Sun, 05 Jan 2025 21:41:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id KK6LIKX8emfKgwAAqHPOHw (envelope-from ) for ; Sun, 05 Jan 2025 22:41:57 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=INJFAUJa; 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; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736113317; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wJYtvhbMfHCAhKaYQxPnplC/5wuOM+J9pQLeHSXOYBw=; b=GY4Gko5LUPVxEvlXlVMKbqduw05lZz023O7/ETt/2nQjn1ARjikuxYBdKuuUO8zY4phhiB NH7Fexr5YFQ4HKb/W9vrLb4Bari5rQv+ZvvMcd1K230zCPBvKOaK2MqUY/gZYPxsj9f6uK u1jlaujzZNeZn91AGaTE1vqrBm8UY7+HIcWWKwbriyzc5Hgj04w7pQlJKRrcls2eb+gyQl wft7BazGnsqpHMY1nFcmGtQdDKmC1I7FTDkaCtQ4niWnGUsbR0QLWFNiokHW+SbaCN0uvy 1wGK1E8l5EBskjzFWO9GYhvpNJHl+Dq1O8gZsLc85iwaOP4YTDZdGDZ9Z93FWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=INJFAUJa; 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; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736113317; a=rsa-sha256; cv=none; b=Yrgh88oUmUEAFfwuEwfGTiSAu4sjoACYHe/STv+2nIlA3N+s6EGqvyHPrVwgJbrVkstdqU m5VgZi33McotMZ8qAfLwPLLNNmwZxEJF0up4zNAvyBx9lbnl6VsDNmPStIXDNJ5PMAslQc 3Swq+ORhO8YLowUo3XAfOaz97kRN8P55Co2WKm1MxU6t0kWOS8gNhrb8i0fFW4oe6IXyNQ k3TAzz7uxcdoDFucYzvKnkp0lr//E+mA9vCw1hsEpa53lHb6Ylh0S9gAs13amqRwl6pDu2 pUOvx+TvdQL/c1WrTxkEBCBF1apyPTtK89Vl/UUik+Lboui8Occ1WJ9nZFck0g== 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 1D60891F52 for ; Sun, 05 Jan 2025 22:41:57 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A4D0C5E28F; Sun, 5 Jan 2025 21:11:20 +0000 (UTC) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by mail.notmuchmail.org (Postfix) with ESMTPS id C74305E50F for ; Thu, 2 Jan 2025 17:17:44 +0000 (UTC) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-436637e8c8dso117591975e9.1 for ; Thu, 02 Jan 2025 09:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735838264; x=1736443064; darn=notmuchmail.org; h=mime-version:date:subject:to:from:message-id:from:to:cc:subject :date:message-id:reply-to; bh=nC+4cdUoW/6pSPtP7W/LoyZACw2isl0ocKQE2EUfkKE=; b=INJFAUJaDz643swDPegxgusjcFSuzWGMbkfiwGsFQzH8qZ9tDZP3Fg+3B/EusiDCVm JY9KgLvUiKY1D1qs94RUx8CqNI7/+cj30qk3kwKRAXHyQdPQGTs+8/Q+nJCqkPMTR/E6 IdG0mqdNSeVe56fxpS9yRMpL+7Rn4LI+zTlS4CcqewstnASXGYnKGdTlZlYp4CHWuGmG pAMS9HGUyNGZU8Qnziky5bkpTAGstL/IJUzlYF/Ukd2Ds8D1uV09NtneIfFj0YXah3RB TxHoIVHo94oLRFLd+v/Tm+uQO1OSyxQAs4LTSdSVZl8ei9SoDsWF1Z3/368i+BU6X5bQ X9ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735838264; x=1736443064; h=mime-version:date:subject:to:from:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nC+4cdUoW/6pSPtP7W/LoyZACw2isl0ocKQE2EUfkKE=; b=S6bEFpO7XhxB181L6lGqZP8CiPfsW7NyOvrQSEYIPvXhkW8ViZ10FeGGE1ZdfXHMQs qlXbY1+eJ5Hj1gf+yanor6ASbRCUHWP8sWcDWOBbrb74r8negm7rEkeKTAuUBATklatC vrB4sjqocGv6OIVlpWSOdejBSiasQwEXth6fBP0X4cnBekEa3RRyME2BKNsmPnwmYv30 RyjJNaKJBg6SCSTCP4AnFEy3oBg2XKgXXs8VxjKyOAZ+DHSCtrFYh+2Oy+DcSWi9sFFm ITTemL3UeCZ7wFGzsed9bQE8CCpQZxGsjh8uNiLKQR24nEIUyyZARtPTzjG4wYn4DHAR FUbA== X-Gm-Message-State: AOJu0YzgE5z+xU4/KjgAzfJB8jAAgcSYqpiINakGzuHvH/f+ebnQapoM ijrO/YGvK8gJh0e59GXQO7KxTf4/yaACxk3FmwPRc8fbNg8+rW+0Am/Ugg== X-Gm-Gg: ASbGncv5io0Th3yMnOT8zlRjbRbuMq3T+Gk0s9bh85pN1p3K3fTTPIrS19cKPpSItR1 w08U1hxQOuciqgDC27Wi2HtPwTXpnTocmTDWiQ7BL/BwHdMDONKRSA0ocuJ8OQLm5uYbsz8DbYB ywVKZ5GjPoFvjfZTxclx1XNNxvT+6YtHi11Qa6nW490sC4XQvxaZkGQTYEHYRCGigU2NlyLZhm3 hiHN2lLoSZSRPAyRMW4/gCmF9gUksA7D5w/pjbyiBaDHXq1chIm5Sw= X-Google-Smtp-Source: AGHT+IG/N70DQYRdzhYG1jbnJIM1xNEjAFIEHZG+nHu5ZaP41b1gxhrwNRTP9zhnOdfjID4REaR1WA== X-Received: by 2002:a05:600c:1c9f:b0:434:f623:a004 with SMTP id 5b1f17b1804b1-43671244708mr385664895e9.16.1735838263964; Thu, 02 Jan 2025 09:17:43 -0800 (PST) Received: from localhost ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656af6c25sm491092735e9.8.2025.01.02.09.17.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 09:17:43 -0800 (PST) Message-ID: <6776ca37.7b0a0220.3a5cd0.e1f5@mx.google.com> Received: by localhost (sSMTP sendmail emulation); Thu, 02 Jan 2025 18:17:41 +0100 From: Bruno BARBIER To: notmuch@notmuchmail.org Subject: emacs: address completion: 6 matches but no match Date: Thu, 02 Jan 2025 18:17:41 +0100 MIME-Version: 1.0 X-MailFrom: brubar.cs@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: ZCAZI2R4253EKXUW73UMCI6PXF5VZDSH X-Message-ID-Hash: ZCAZI2R4253EKXUW73UMCI6PXF5VZDSH X-Mailman-Approved-At: Sun, 05 Jan 2025 21:11:19 +0000 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-Country: DE X-Migadu-Flow: FLOW_IN X-Migadu-Spam: Yes X-Migadu-Spam-Score: 8.40 X-Spam: Yes X-Spam-Score: 8.40 X-Migadu-Queue-Id: 1D60891F52 X-Migadu-Scanner: mx10.migadu.com X-TUID: 56PSu4KEqA99 Hello, Thank you so much for notmuch and its integration with Emacs! I discovered a small glitch when completing email addresses. I'm using the raw completion of Emacs (not company or an other package). The variable 'notmuch-address-command' is the default one (i.e. internal). My completion style is partial-completion. Now, here is the case where it doesn't work for me. If I enter "AAA", and I hit completion, I'm getting several choices: xxxAAAyyy, hhAAAhh, etc. (that's what I want). So, notmuch offers me to pick the one I want using completing-read. But, here is the problem: there is no possible match! Indeed, because I'm using partial-completion, the input "AAA" actually doesn't match any of the possible completion (as they all have a prefix, see the documentation of 'completion-styles-alist'). My workaround is to configure 'notmuch-address-selection-function', prepending a "*" to the initial-input. #+begin_src elisp (defun my-notmuch-address-selection (prompt collection initial-input) (notmuch-address-selection-function prompt collection (concat "*" initial-input))) (setq notmuch-address-selection-function #'my-notmuch-address-selection) #+end_src I'm fine with this solution. Maybe that would great if notmuch could detect and warn that something is wrong when the initial input doesn't match any of the addresses that notmuch selected. Best regards, Bruno