Re: [PATCH 2/8] lib: private string map (associative array) API
[notmuch-archives.git] / ab / 3d08bbc87f78ad5ebfd7c4c55d17025a8a0456
1 Return-Path: <dme@dme.org>\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 olra.theworths.org (Postfix) with ESMTP id D4E42431FC9\r
6         for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 03:16:33 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id LdHam4X-T8Kb for <notmuch@notmuchmail.org>;\r
17         Fri, 31 Oct 2014 03:16:28 -0700 (PDT)\r
18 Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com\r
19         [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 3203B431FC2\r
22         for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 03:16:28 -0700 (PDT)\r
23 Received: by mail-wi0-f176.google.com with SMTP id h11so871655wiw.3\r
24         for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 03:16:26 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=1e100.net; s=20130820;\r
27         h=x-gm-message-state:user-agent:from:to:subject:date:message-id;\r
28         bh=IeMMGfAEx+kjLf/ZcUVAPv+aUJynreLzANWPVX3qwpE=;\r
29         b=YqGAWj3NvdBoVA9g8Fn4gBQ8gRIkRyOv+tnBKEGDS56rN4apCh2Sx+5+3GyEFPpQzV\r
30         cDbyVfIQ+EPDjXfoYMTwuRG8Hzgdebxy8Rei/kjGHPBYgVQ7Vz/itg0JqbU85RIH7DtF\r
31         tLkRaS9lpJ/bmeIYdv6DxM4viLYp7w5JDRE5H+NrtlYzhy9x8buRhCsy/eHntsv/mevw\r
32         dMM5TqZSGsqIbgJaxIhV6gCGjNaVy2OjSW6xtpWGBJjTc9a4N2XzoE99ZahiuOubyyLK\r
33         RkIo7/khB6HNf7H3EeLFDhO+dvq1tV2APCOzJC72O+wr9/nqVKLY3bLR8/WKJLvN7NGG\r
34         cbRQ==\r
35 X-Gm-Message-State:\r
36  ALoCoQk+R6dMYoGNjXXwHgHuwaCPx+L8RhfRMvxA8hSSnrOhOV9jhOb2KzTCHt3wvYtsoT/LV38g\r
37 X-Received: by 10.194.3.78 with SMTP id a14mr1939353wja.107.1414750586690;\r
38         Fri, 31 Oct 2014 03:16:26 -0700 (PDT)\r
39 Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net.\r
40         [81.149.164.25])\r
41         by mx.google.com with ESMTPSA id j20sm11572643wjn.0.2014.10.31.03.16.25\r
42         for <notmuch@notmuchmail.org>\r
43         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
44         Fri, 31 Oct 2014 03:16:25 -0700 (PDT)\r
45 Received: from localhost (30000@localhost [local]);\r
46         by localhost (OpenSMTPD) with ESMTPA id 11a6aee0;\r
47         for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 10:16:07 +0000 (UTC)\r
48 User-Agent: OpenSMTPD enqueuer (Demoostik)\r
49 From: David Edmondson <dme@dme.org>\r
50 To: notmuch@notmuchmail.org\r
51 Subject: [RFC] [PATCH v1] emacs: More citation washing.\r
52 Date: Fri, 31 Oct 2014 10:16:07 +0000\r
53 Message-Id: <1414750567-25077-1-git-send-email-dme@dme.org>\r
54 X-Mailer: git-send-email 1.9.3 (Apple Git-50)\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Fri, 31 Oct 2014 10:16:34 -0000\r
68 \r
69 Ensure that a citation is preceded and followed by a blank line,\r
70 unless the preceding line looks like a citation leader.\r
71 ---\r
72 \r
73 Washing changes are always a bit risky, as they are heuristic\r
74 based. Testers for this (alleged) improvement welcome!\r
75 \r
76  emacs/notmuch-wash.el | 14 +++++++++++++-\r
77  1 file changed, 13 insertions(+), 1 deletion(-)\r
78 \r
79 diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el\r
80 index 8fe91e1..83621bb 100644\r
81 --- a/emacs/notmuch-wash.el\r
82 +++ b/emacs/notmuch-wash.el\r
83 @@ -276,7 +276,19 @@ Perform several transformations on the message body:\r
84    ;; text.\r
85    (goto-char (point-min))\r
86    (while (re-search-forward "\\(^>[> ]*\n\\)\\(^$\\|^[^>].*\\)" nil t)\r
87 -    (replace-match "\\2")))\r
88 +    (replace-match "\\2"))\r
89 +\r
90 +  ;; Ensure that a citation block has a blank line before it, unless\r
91 +  ;; the previous line ends in ':' (because that's probably the\r
92 +  ;; citation).\r
93 +  (goto-char (point-min))\r
94 +  (while (re-search-forward "^[^>].*[^:]\\(\n\\)>.*" nil t)\r
95 +    (replace-match "\n\n" nil nil nil 1))\r
96 +\r
97 +  ;; Ensure that a citation block has a blank line after it.\r
98 +  (goto-char (point-min))\r
99 +  (while (re-search-forward "^>.*\\(\n\\)[^>].*" nil t)\r
100 +    (replace-match "\n\n" nil nil nil 1)))\r
101  \r
102  ;;\r
103  \r
104 -- \r
105 1.9.3 (Apple Git-50)\r
106 \r