aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Dmitry Kurochkin <dmitry.kurochkin@gmail.com>2012-02-04 11:36:37 +0400
committerGravatar David Bremner <bremner@debian.org>2012-02-04 07:33:18 -0500
commit8281430558c1b2eafc847620cd84f5ce40bf6741 (patch)
tree8b7a20fdcae0a08651b174efb09e49aed7a9f180 /test
parent69adeb52b1c095f570f590e8a8db7f219b875b35 (diff)
emacs: fix `notmuch-wash-region-to-button' to work at beginning of buffer
`Notmuch-wash-region-to-button' is the function that creates hidden regions with buttons for signatures, citations and original messages. Before the change, it did not work correctly if the to-be-hidden region started at the beginning of a message: the visibility toggle button was hidden as well. The patch fixes this. There are two parts in the fix: * Use `insert-before-markers' instead of `insert' for creating the button, so that it does not get added to the hidden overlay. * Stop using PREFIX argument for adding a newline before the button. The newline should not be added before a button at the beginning of buffer. The corresponding test is fixed now.
Diffstat (limited to 'test')
-rwxr-xr-xtest/emacs-show1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/emacs-show b/test/emacs-show
index 98005758..5700d2e7 100755
--- a/test/emacs-show
+++ b/test/emacs-show
@@ -4,7 +4,6 @@ test_description="Testing emacs notmuch-show view"
. test-lib.sh
test_begin_subtest "Hiding Original Message region at beginning of a message"
-test_subtest_known_broken
message_id='OriginalMessageHiding.1@notmuchmail.org'
add_message \
[id]="$message_id" \