Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 22 / e64b03837c0a7035bbafd12c68893ece476813
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 439F740DAF9\r
6         for <notmuch@notmuchmail.org>; Tue,  9 Nov 2010 10:17:02 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id R7KCMQhM9mHW for <notmuch@notmuchmail.org>;\r
16         Tue,  9 Nov 2010 10:16:52 -0800 (PST)\r
17 Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com\r
18         [209.85.215.181])\r
19         by olra.theworths.org (Postfix) with ESMTP id D674A40DAFA\r
20         for <notmuch@notmuchmail.org>; Tue,  9 Nov 2010 10:16:51 -0800 (PST)\r
21 Received: by eyb6 with SMTP id 6so4420911eyb.26\r
22         for <notmuch@notmuchmail.org>; Tue, 09 Nov 2010 10:16:51 -0800 (PST)\r
23 Received: by 10.216.59.77 with SMTP id r55mr5552466wec.6.1289326610617;\r
24         Tue, 09 Nov 2010 10:16:50 -0800 (PST)\r
25 Received: from ut.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com\r
26         [81.149.164.25])\r
27         by mx.google.com with ESMTPS id 7sm1080578wet.0.2010.11.09.10.16.47\r
28         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
29         Tue, 09 Nov 2010 10:16:48 -0800 (PST)\r
30 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
31         id 4E1E559405B; Tue,  9 Nov 2010 18:15:32 +0000 (GMT)\r
32 From: David Edmondson <dme@dme.org>\r
33 To: notmuch@notmuchmail.org\r
34 Subject: [PATCH] emacs: Correctly count the number of lines in a signature.\r
35 Date: Tue,  9 Nov 2010 18:15:31 +0000\r
36 Message-Id: <1289326531-27252-1-git-send-email-dme@dme.org>\r
37 X-Mailer: git-send-email 1.7.2.3\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Tue, 09 Nov 2010 18:17:02 -0000\r
51 \r
52 ---\r
53  emacs/notmuch-wash.el |    2 +-\r
54  1 files changed, 1 insertions(+), 1 deletions(-)\r
55 \r
56 diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el\r
57 index 26a3f88..cfcfb21 100644\r
58 --- a/emacs/notmuch-wash.el\r
59 +++ b/emacs/notmuch-wash.el\r
60 @@ -145,7 +145,7 @@ is what to put on the button."\r
61            (re-search-forward notmuch-wash-signature-regexp nil t))\r
62        (let* ((sig-start (match-beginning 0))\r
63              (sig-end (match-end 0))\r
64 -            (sig-lines (1- (count-lines sig-start (point-max)))))\r
65 +            (sig-lines (count-lines sig-start (point-max))))\r
66         (if (<= sig-lines notmuch-wash-signature-lines-max)\r
67             (let ((sig-start-marker (make-marker))\r
68                   (sig-end-marker (make-marker)))\r
69 -- \r
70 1.7.2.3\r
71 \r