From: Justus Winter <justus@sequoia-pgp.org>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: Selection bug
Date: Tue, 18 Oct 2022 12:13:51 +0200 [thread overview]
Message-ID: <87ilkh782o.fsf@europ.lan> (raw)
In-Reply-To: <871qraagd9.fsf@tethera.net>
[-- Attachment #1.1: Type: text/plain, Size: 3156 bytes --]
David Bremner <david@tethera.net> writes:
> Justus Winter <justus@sequoia-pgp.org> writes:
>
>> I think I found a reproducer:
>>
>> mkdir -p /tmp/selection-bug/{tmp,new,cur}
>> echo "[database]
>> path=/tmp/selection-bug" > /tmp/selection-bug/notmuch-config
>> NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config notmuch new
>> NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config emacs -q --eval "(require 'notmuch)"
>> # M-x notmuch-hello, search for '*'
>> notmuch show --format=raw id:87edvlanuh.fsf@tethera.net | NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config notmuch insert
>> # refresh search buffer, press down once, i.e. navigate to "End of search results".
>> notmuch show --format=raw id:87fsfuuxwn.fsf@thinkbox | NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config notmuch insert
>> notmuch show --format=raw id:8735buw7gf.fsf@ngraves.fr | NOTMUCH_CONFIG=/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=/tmp/selection-bug" > /tmp/selection-bug/notmuch-config
NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config notmuch new
NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config emacs -q --eval "(require 'notmuch)"
# M-x notmuch-hello, search for '*'
notmuch show --format=raw id:87edvlanuh.fsf@tethera.net | NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config notmuch insert
# refresh search buffer, press down once, i.e. navigate to "End of search results".
notmuch show --format=raw id:87fsfuuxwn.fsf@thinkbox | NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config notmuch insert
# refresh search buffer, bug: your mail is green, mine is opened on pressing 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=/tmp/selection-bug" > /tmp/selection-bug/notmuch-config
NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config notmuch new
NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config emacs -q --eval "(require 'notmuch)"
# M-x notmuch-hello, search for '*', press down once, i.e. navigate past the line "End of search results".
notmuch show --format=raw id:87edvlanuh.fsf@tethera.net | NOTMUCH_CONFIG=/tmp/selection-bug/notmuch-config notmuch insert
# refresh search buffer, bug: your mail is green, but in fact "End of search 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
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2022-10-18 10:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-11 16:29 Selection bug Justus Winter
2022-10-11 16:43 ` David Bremner
2022-10-12 12:19 ` Justus Winter
2022-10-14 9:45 ` David Bremner
2022-10-18 10:13 ` Justus Winter [this message]
2023-04-04 9:41 ` Justus Winter
2023-04-04 16:21 ` Carl Worth
2024-06-05 10:54 ` David Bremner
2024-06-19 11:12 ` David Bremner
2024-08-08 11:39 ` David Bremner
2024-08-09 11:45 ` [PATCH] emacs: replace use of hook to draw hl-line in search mode David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilkh782o.fsf@europ.lan \
--to=justus@sequoia-pgp.org \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).