"id buttonization" test failure

David Bremner david at tethera.net
Sat Oct 8 05:33:39 PDT 2016


David Bremner <david at tethera.net> writes:


> 2) I can interactively duplicate a similar, but not identical, bug as
>    follows.
>
>    - add the attached message (extracted from the test suite) to my mail
>      store
>    - open it notmuch-show (emacs 25.1, gtk/GUI)
>    - go to the last line of the body. By using C-u C-x =, we can observe
>      that the first and third copies of mid:abc are buttonized, but not
>      the second.
>    - this can also be seen by using the tab button.


The following "fixes" this test failure. This suggests to me something
that only fails when notmuch-show-buttonise-links is called from the C
redisplay code, and not when it's called from lisp.

diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh
index 0342a87..afa75bd 100755
--- a/test/T450-emacs-show.sh
+++ b/test/T450-emacs-show.sh
@@ -129,7 +129,8 @@ cid:xxx
 mid:abc mid:abc/def
 mid:abc%20def
 mid:abc. mid:abc, mid:abc;"'
-test_emacs '(notmuch-show "id:'$gen_msg_id'")
+test_emacs '(jit-lock-debug-mode)
+	(notmuch-show "id:'$gen_msg_id'")
 	(notmuch-test-mark-links)
 	(test-visible-output "OUTPUT.raw")'
 cat <<EOF >EXPECTED


More information about the notmuch mailing list