Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / d1 / 1d43db58f264f318eb552c95c215c8f5d6cef8
1 Return-Path: <markwalters1009@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 340856DE02AF\r
6  for <notmuch@notmuchmail.org>; Sat,  6 Aug 2016 08:29:52 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.154\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.154 tagged_above=-999 required=5 tests=[AWL=-0.276,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13  FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1,\r
14  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\r
15  SPF_PASS=-0.001] autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id q-1iqVHK93u8 for <notmuch@notmuchmail.org>;\r
19  Sat,  6 Aug 2016 08:29:44 -0700 (PDT)\r
20 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com\r
21  [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id 8CBD16DE00DF for\r
22  <notmuch@notmuchmail.org>; Sat,  6 Aug 2016 08:29:43 -0700 (PDT)\r
23 Received: by mail-wm0-f67.google.com with SMTP id q128so7930203wma.1\r
24  for <notmuch@notmuchmail.org>; Sat, 06 Aug 2016 08:29:43 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=from:to:cc:subject:date:message-id;\r
27  bh=eUQ6MfwCWRwAIopqR8iIk9sZT2meEWJvcoRMsaZ7XtQ=;\r
28  b=FI7nH/U3hVR//4RI+x/m5NgcMa3jID6QXQkdndxvy/qygHzRvlNEIq7dWzdMJryM6g\r
29  d+BkXs5L+V6QhhbjBx54/L/7gGGp2x//ZNz6+wJo53Ck9AZyhUxsGrGbe/Qg7EUrkq0Z\r
30  ZbocEIzPaftPYLSOMCkvf/c/krhEYcbh8dz2uNAWSDTDHz6AFPTuW1279EFqlSXa6+lg\r
31  4c9GmpyHAuRtPF0w82f50IHMTZAjZyr4yQ4r3hOQ9dip3PRvFS0EJBWN0Uw7SqCJGLY/\r
32  n0oGA/kwNPw/irkJfKyRmLYe/0/Cr4iPAkhJng/r5vHrwYxE+AqlGDcMhMXBzsQ4qHXo\r
33  a10g==\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
35  d=1e100.net; s=20130820;\r
36  h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
37  bh=eUQ6MfwCWRwAIopqR8iIk9sZT2meEWJvcoRMsaZ7XtQ=;\r
38  b=donbDkZ4bFqH9s6389HVW8FBBFtxRuoB1k0ae+9yAefzIrs3Yn600EdB30bo7CTFpH\r
39  TrRXeAFh01SY83wf4oDa0EOhBdcNmXH+sqDKUTugiap3rkOBWU39XFraT9hQdGmlXhIU\r
40  fU1yRi0JhSFUpBdFNTtJnYcQG0HX78kGtxRNrjN1iIqB/b+7px8Pqb7igsXei3vyC5RM\r
41  q9uk4spQ33wzlJlMX4OawdwjFYWm/8nb/Sg+TVRAR4J0qUw6210Jw83IK+hKkU2rMxPG\r
42  rKukqaJsgLR15PzyEVTC3mnvOI2autDkn9x/Q5zcGJUPa2jto+H43vTBm7mPP+c3KmI+\r
43  GG3g==\r
44 X-Gm-Message-State:\r
45  AEkoouv21ocoYH00siO4xa4UaGjkTrzIxhVjByRuvPYxUSeukxWdKK5MmMOHJ8926o51FA==\r
46 X-Received: by 10.194.148.202 with SMTP id tu10mr76766285wjb.56.1470497381390;\r
47   Sat, 06 Aug 2016 08:29:41 -0700 (PDT)\r
48 Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
49  by smtp.gmail.com with ESMTPSA id k3sm23386923wjf.7.2016.08.06.08.29.38\r
50  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
51  Sat, 06 Aug 2016 08:29:39 -0700 (PDT)\r
52 From: Mark Walters <markwalters1009@gmail.com>\r
53 To: notmuch@notmuchmail.org\r
54 Subject: [PATCH 0/2] emacs: wash: word-wrap bugfix and tweak\r
55 Date: Sat,  6 Aug 2016 16:29:32 +0100\r
56 Message-Id: <1470497374-17194-1-git-send-email-markwalters1009@gmail.com>\r
57 X-Mailer: git-send-email 2.1.4\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.20\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62  <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
64  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
69  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Sat, 06 Aug 2016 15:29:52 -0000\r
71 \r
72 Jani pointed out on irc that there was a bug in notmuch-tree that when\r
73 a message very deep in a thread is viewed in the message pane it is\r
74 wordwrapped too soon.\r
75 \r
76 This is actually a bug in notmuch-wash: it assumes that\r
77 notmuch-show-indent-messages-width is 1, so that the indentation of\r
78 the message is equal to its depth in the thread.\r
79 \r
80 The first patch fixes the bug, and uses the correct indentation.\r
81 \r
82 The second patch is a version of\r
83 id:1467791251-6823-1-git-send-email-markwalters1009@gmail.com on\r
84 on top of the first patch above.\r
85 \r
86 The first patch is a clear bugfix and can be applied on its own.\r
87 \r
88 The second is a change; I think the new version is the natural\r
89 interpretation of notmuch-word-wrap-lines-length so have removed the\r
90 old behaviour. See the message\r
91 id:1467791251-6823-1-git-send-email-markwalters1009@gmail.com for more\r
92 details of the change.\r
93 \r
94 Best wishes\r
95 \r
96 Mark\r
97 \r
98 \r
99 \r
100 \r
101 \r
102 Mark Walters (2):\r
103   emacs: wash: word-wrap bugfix\r
104   emacs: wash: make word-wrap bound message width\r
105 \r
106  emacs/notmuch-wash.el                                 | 10 ++++++----\r
107  ...w-thread-maildir-storage-with-fourfold-indentation | 19 ++++++++++++-------\r
108  ...ch-show-thread-maildir-storage-without-indentation |  8 ++++----\r
109  3 files changed, 22 insertions(+), 15 deletions(-)\r
110 \r
111 -- \r
112 2.1.4\r
113 \r