From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YMqTGXF8TmPhxAAAbAwnHQ (envelope-from ) for ; Tue, 18 Oct 2022 12:14:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wDW+GXF8TmMLowAA9RJhRA (envelope-from ) for ; Tue, 18 Oct 2022 12:14:09 +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 E815E14B86 for ; Tue, 18 Oct 2022 12:14:08 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 356C15F379; Tue, 18 Oct 2022 10:14:04 +0000 (UTC) Received: from harrington.uberspace.de (harrington.uberspace.de [185.26.156.85]) by mail.notmuchmail.org (Postfix) with ESMTPS id EA6C45E226 for ; Tue, 18 Oct 2022 10:14:01 +0000 (UTC) Received: (qmail 25904 invoked by uid 500); 18 Oct 2022 10:14:01 -0000 From: Justus Winter To: David Bremner , notmuch@notmuchmail.org Subject: Re: Selection bug In-Reply-To: <871qraagd9.fsf@tethera.net> References: <87fsfuuxwn.fsf@thinkbox> <87edveqpj6.fsf@tethera.net> <874jw9utdg.fsf@thinkbox> <871qraagd9.fsf@tethera.net> Date: Tue, 18 Oct 2022 12:13:51 +0200 Message-ID: <87ilkh782o.fsf@europ.lan> MIME-Version: 1.0 X-Rspamd-Bar: ---- X-Rspamd-Report: R_MISSING_CHARSET(0.5) MIME_GOOD(-0.2) SIGNED_PGP(-2) BAYES_HAM(-2.908289) X-Rspamd-Score: -4.608289 Received: from unknown (HELO unkown) (::1) by harrington.uberspace.de (Haraka/2.8.28) with ESMTPSA; Tue, 18 Oct 2022 12:14:01 +0200 Message-ID-Hash: JWM6GJQIQXTEHFFKDP5OXRYHWNZGN37Z X-Message-ID-Hash: JWM6GJQIQXTEHFFKDP5OXRYHWNZGN37Z X-MailFrom: justus@sequoia-pgp.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: multipart/mixed; boundary="===============6341032448021907376==" 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=1666088049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=6NkMYzd5QmT8//8K0G1460wy2sbgj8a/+l2qQJb2XdU=; b=IS8gxaoWDa8ZoiAOV7udlyfE6om373WAqjMZSOFM19PvK3XJYHxjssooewyj51nlL4npya /7UMd2HzjrvntiY/NJnaJ4BnMa6h9SPzgyGgtsIwK7Jn92Q4xVHVqDynJ+MISJC785kAdh UtKkhMYh/ZAie+j1nyetdXVse6gQoMTZ7ZrJjKVHI68AWpcKwh79yJr2WFsv0SPM25i9NU se/C5hK1pn85mtHuxQkhxCLdKQF2gjqw43HF8IMJmkS8XjAEMnWwBffi15gvEJuQ3lGjCa wFC79VH6ehD7R2eePtqG8vFT4pIBPVYvFrLNomWEQ2AzQxN6AAdJRfKw4TCyXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666088049; a=rsa-sha256; cv=none; b=IMyjO4SbL26IpbREGilgh8GeMrFNBdMjCYmFIXTv7zTrvdQN410E41D0Hnp3fSDdcXiOMW M6qEhvfzZs82sAw30Vww4Pds4u26ulT7O2GNvIzpDhpBVZS+Kw5CpXjPWxaHleC/90LVVX 9quRTp1jW/CiblrqL0o/jxJ+I1y092t8/VdPy6Dpc1Yqd+ZHXyz0rnl9eUqEnvVNcf2f5y ByJj7QmIh4Zjl1cQcUGct9+ss26/jiFevJDD4mWV4A2FLX8mlaIxz+blaVr25zgpviBiFL 21HFOJQV4J3vQp5jQTd1sEt8kMA503U+p41FTrw54r3VXIerCvfzzWytLTTyiw== 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: -4.69 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: E815E14B86 X-Spam-Score: -4.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9B4uQYjodc5X --===============6341032448021907376== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable David Bremner writes: > Justus Winter writes: > >> I think I found a reproducer: >> >> mkdir -p /tmp/selection-bug/{tmp,new,cur} >> echo "[database] >> path=3D/tmp/selection-bug" > /tmp/selection-bug/notmuch-config >> NOTMUCH_CONFIG=3D/tmp/selection-bug/notmuch-config notmuch new >> NOTMUCH_CONFIG=3D/tmp/selection-bug/notmuch-config emacs -q --eval "(req= uire 'notmuch)" >> # M-x notmuch-hello, search for '*' >> notmuch show --format=3Draw id:87edvlanuh.fsf@tethera.net | NOTMUCH_CONF= IG=3D/tmp/selection-bug/notmuch-config notmuch insert >> # refresh search buffer, press down once, i.e. navigate to "End of searc= h results". >> notmuch show --format=3Draw id:87fsfuuxwn.fsf@thinkbox | NOTMUCH_CONFIG= =3D/tmp/selection-bug/notmuch-config notmuch insert >> notmuch show --format=3Draw id:8735buw7gf.fsf@ngraves.fr | NOTMUCH_CONFI= G=3D/tmp/selection-bug/notmuch-config notmuch insert >> # refresh search buffer, bug: Nicolas' mail is green, mine is opened on = pressing enter. > > 1) Do you think the particular messages matter? I don't have > id:8735buw7gf.fsf@ngraves.fr Uh, you are right. I meant to pick mails form notmuch@, but this one is from another list. I actually reduced the example further: mkdir -p /tmp/selection-bug/{tmp,new,cur} echo "[database] path=3D/tmp/selection-bug" > /tmp/selection-bug/notmuch-config NOTMUCH_CONFIG=3D/tmp/selection-bug/notmuch-config notmuch new NOTMUCH_CONFIG=3D/tmp/selection-bug/notmuch-config emacs -q --eval "(requir= e 'notmuch)" # M-x notmuch-hello, search for '*' notmuch show --format=3Draw id:87edvlanuh.fsf@tethera.net | NOTMUCH_CONFIG= =3D/tmp/selection-bug/notmuch-config notmuch insert # refresh search buffer, press down once, i.e. navigate to "End of search r= esults". notmuch show --format=3Draw id:87fsfuuxwn.fsf@thinkbox | NOTMUCH_CONFIG=3D/= tmp/selection-bug/notmuch-config notmuch insert # refresh search buffer, bug: your mail is green, mine is opened on pressin= g enter. (I.e., just drop Nicolas' mail.) The bug can be seen even with just one mail, but then its impact is less severe: mkdir -p /tmp/selection-bug/{tmp,new,cur} echo "[database] path=3D/tmp/selection-bug" > /tmp/selection-bug/notmuch-config NOTMUCH_CONFIG=3D/tmp/selection-bug/notmuch-config notmuch new NOTMUCH_CONFIG=3D/tmp/selection-bug/notmuch-config emacs -q --eval "(requir= e 'notmuch)" # M-x notmuch-hello, search for '*', press down once, i.e. navigate past th= e line "End of search results". notmuch show --format=3Draw id:87edvlanuh.fsf@tethera.net | NOTMUCH_CONFIG= =3D/tmp/selection-bug/notmuch-config notmuch insert # refresh search buffer, bug: your mail is green, but in fact "End of searc= h results" is selected and is "acted upon" when pressing enter. > 2) Just to be clear, that script has to be run manually, with the > comments corresponding to interactive actions in emacs? Yes. As additional data point, I cannot reproduce the problem on my Desktop which has the same emacs version but uses elpa-notmuch 0.31.4-2. On this system, if I run the reproducer, there is no line with a green background, so it is less misleading. Best, Justus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFLBAEBCgA1FiEEJWpOVeSnLZetJGjniNx+MzhfeR0FAmNOfF8XHGp1c3R1c0Bz ZXF1b2lhLXBncC5vcmcACgkQiNx+MzhfeR2D4Qf/WbMtk9wYx/O717XZ9TNAnEFr N0CTniy4baBeaj44XYxDZBZcmN/6/6RXx3JM/YglyhBED2bDrsea+qDFD0HDKFik A1BwNfMNbVCODKh5kjXyeY+531OHX2dBHve7qbS3rz4h4+7KUztc5xo8nu7qtEQD 5VFGYSTl3mGfFFTzLJqsCkziFa4WMbIdRmQVavJ7Cp9qnOLb2R3myoc7I4A40KHs XD/v1LDKNWmSw+WDMW6X2BvclLAa2Kjpgfz7jAA3XKVKXO+yCLxd8YNH9wWtsuO5 /vp6ba+fmjPrUXvUQL0v1UBZ0sqF6KxATBcgkDpBWsMQLp7QRY5xWbumJQzntg== =8kLy -----END PGP SIGNATURE----- --=-=-=-- --===============6341032448021907376== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============6341032448021907376==--