David Bremner writes: > Justus Winter 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