emacs: wash: word-wrap bugfix
authorMark Walters <markwalters1009@gmail.com>
Sat, 6 Aug 2016 15:29:33 +0000 (16:29 +0100)
committerDavid Bremner <david@tethera.net>
Tue, 9 Aug 2016 00:34:25 +0000 (09:34 +0900)
commit999d473299781cb2a38fba5d9e2452504799a7a2
treee0331ef685fdeedb6cc83c75b7d81207acc9322d
parent293186d6c6b1c4d158413de5412e6b4345e94970
emacs: wash: word-wrap bugfix

Previously notmuch-wash made the width of the text (approximately) the
window-width minus the depth in thread. This is correct for the
default indentation of 1 per message depth, but is incorrect for any
other setting of notmuch-show-indent-messages-width.

As notmuch-show-indent-messages-width is customisable, and notmuch-tree
sets it to zero to avoid indenting messages in the message pane, this
bug can show up in real use.

Two of the tests had to be updated: when
notmuch-show-indent-messages-width is 0, then the new (correct) word
wrapping happens later, when notmuch-show-indent-messages-width is 4,
then the new word wrapping happens sooner.
emacs/notmuch-wash.el
test/emacs.expected-output/notmuch-show-thread-maildir-storage-with-fourfold-indentation
test/emacs.expected-output/notmuch-show-thread-maildir-storage-without-indentation