From: Mark Walters Date: Sat, 6 Aug 2016 15:29:32 +0000 (+0100) Subject: [PATCH 0/2] emacs: wash: word-wrap bugfix and tweak X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5dfca80ae9a1526883797e026d36a288c8bedf62;p=notmuch-archives.git [PATCH 0/2] emacs: wash: word-wrap bugfix and tweak --- diff --git a/d1/1d43db58f264f318eb552c95c215c8f5d6cef8 b/d1/1d43db58f264f318eb552c95c215c8f5d6cef8 new file mode 100644 index 000000000..43a4a4548 --- /dev/null +++ b/d1/1d43db58f264f318eb552c95c215c8f5d6cef8 @@ -0,0 +1,113 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 340856DE02AF + for ; Sat, 6 Aug 2016 08:29:52 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.154 +X-Spam-Level: +X-Spam-Status: No, score=0.154 tagged_above=-999 required=5 tests=[AWL=-0.276, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, + SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id q-1iqVHK93u8 for ; + Sat, 6 Aug 2016 08:29:44 -0700 (PDT) +Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com + [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id 8CBD16DE00DF for + ; Sat, 6 Aug 2016 08:29:43 -0700 (PDT) +Received: by mail-wm0-f67.google.com with SMTP id q128so7930203wma.1 + for ; Sat, 06 Aug 2016 08:29:43 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id; + bh=eUQ6MfwCWRwAIopqR8iIk9sZT2meEWJvcoRMsaZ7XtQ=; + b=FI7nH/U3hVR//4RI+x/m5NgcMa3jID6QXQkdndxvy/qygHzRvlNEIq7dWzdMJryM6g + d+BkXs5L+V6QhhbjBx54/L/7gGGp2x//ZNz6+wJo53Ck9AZyhUxsGrGbe/Qg7EUrkq0Z + ZbocEIzPaftPYLSOMCkvf/c/krhEYcbh8dz2uNAWSDTDHz6AFPTuW1279EFqlSXa6+lg + 4c9GmpyHAuRtPF0w82f50IHMTZAjZyr4yQ4r3hOQ9dip3PRvFS0EJBWN0Uw7SqCJGLY/ + n0oGA/kwNPw/irkJfKyRmLYe/0/Cr4iPAkhJng/r5vHrwYxE+AqlGDcMhMXBzsQ4qHXo + a10g== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=eUQ6MfwCWRwAIopqR8iIk9sZT2meEWJvcoRMsaZ7XtQ=; + b=donbDkZ4bFqH9s6389HVW8FBBFtxRuoB1k0ae+9yAefzIrs3Yn600EdB30bo7CTFpH + TrRXeAFh01SY83wf4oDa0EOhBdcNmXH+sqDKUTugiap3rkOBWU39XFraT9hQdGmlXhIU + fU1yRi0JhSFUpBdFNTtJnYcQG0HX78kGtxRNrjN1iIqB/b+7px8Pqb7igsXei3vyC5RM + q9uk4spQ33wzlJlMX4OawdwjFYWm/8nb/Sg+TVRAR4J0qUw6210Jw83IK+hKkU2rMxPG + rKukqaJsgLR15PzyEVTC3mnvOI2autDkn9x/Q5zcGJUPa2jto+H43vTBm7mPP+c3KmI+ + GG3g== +X-Gm-Message-State: + AEkoouv21ocoYH00siO4xa4UaGjkTrzIxhVjByRuvPYxUSeukxWdKK5MmMOHJ8926o51FA== +X-Received: by 10.194.148.202 with SMTP id tu10mr76766285wjb.56.1470497381390; + Sat, 06 Aug 2016 08:29:41 -0700 (PDT) +Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) + by smtp.gmail.com with ESMTPSA id k3sm23386923wjf.7.2016.08.06.08.29.38 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 06 Aug 2016 08:29:39 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH 0/2] emacs: wash: word-wrap bugfix and tweak +Date: Sat, 6 Aug 2016 16:29:32 +0100 +Message-Id: <1470497374-17194-1-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 2.1.4 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 06 Aug 2016 15:29:52 -0000 + +Jani pointed out on irc that there was a bug in notmuch-tree that when +a message very deep in a thread is viewed in the message pane it is +wordwrapped too soon. + +This is actually a bug in notmuch-wash: it assumes that +notmuch-show-indent-messages-width is 1, so that the indentation of +the message is equal to its depth in the thread. + +The first patch fixes the bug, and uses the correct indentation. + +The second patch is a version of +id:1467791251-6823-1-git-send-email-markwalters1009@gmail.com on +on top of the first patch above. + +The first patch is a clear bugfix and can be applied on its own. + +The second is a change; I think the new version is the natural +interpretation of notmuch-word-wrap-lines-length so have removed the +old behaviour. See the message +id:1467791251-6823-1-git-send-email-markwalters1009@gmail.com for more +details of the change. + +Best wishes + +Mark + + + + + +Mark Walters (2): + emacs: wash: word-wrap bugfix + emacs: wash: make word-wrap bound message width + + emacs/notmuch-wash.el | 10 ++++++---- + ...w-thread-maildir-storage-with-fourfold-indentation | 19 ++++++++++++------- + ...ch-show-thread-maildir-storage-without-indentation | 8 ++++---- + 3 files changed, 22 insertions(+), 15 deletions(-) + +-- +2.1.4 +