X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-wash.el;h=07fc1a1f6325363df0e0a55268899851dd3cc109;hp=065af16fb071baeb9cd53e1b43ffec85f2beca86;hb=07dff496304d6dc2e8033a18691b095ed9cd212f;hpb=0cf457b73b4b666314d1a09ac3e31bd0fa2346a6 diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el index 065af16f..07fc1a1f 100644 --- a/emacs/notmuch-wash.el +++ b/emacs/notmuch-wash.el @@ -16,7 +16,7 @@ ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License -;; along with Notmuch. If not, see . +;; along with Notmuch. If not, see . ;; ;; Authors: Carl Worth ;; David Edmondson @@ -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)))