X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-wash.el;h=07fc1a1f6325363df0e0a55268899851dd3cc109;hp=57e6dfa3048d1fc41489e0fd166cc6d880eb4a37;hb=999d473299781cb2a38fba5d9e2452504799a7a2;hpb=293186d6c6b1c4d158413de5412e6b4345e94970 diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el index 57e6dfa3..07fc1a1f 100644 --- a/emacs/notmuch-wash.el +++ b/emacs/notmuch-wash.el @@ -26,6 +26,7 @@ (require 'coolj) (declare-function notmuch-show-insert-bodypart "notmuch-show" (msg part depth &optional hide)) +(defvar notmuch-show-indent-messages-width) ;; @@ -335,12 +336,13 @@ message at the window width. When doing so, citation leaders in the wrapped text are maintained." (let* ((coolj-wrap-follows-window-size nil) + (indent (* depth notmuch-show-indent-messages-width)) (limit (if (numberp notmuch-wash-wrap-lines-length) (min notmuch-wash-wrap-lines-length (window-width)) (window-width))) (fill-column (- limit - depth + indent ;; 2 to avoid poor interaction with ;; `word-wrap'. 2)))