Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 439F740DAF9 for ; Tue, 9 Nov 2010 10:17:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R7KCMQhM9mHW for ; Tue, 9 Nov 2010 10:16:52 -0800 (PST) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by olra.theworths.org (Postfix) with ESMTP id D674A40DAFA for ; Tue, 9 Nov 2010 10:16:51 -0800 (PST) Received: by eyb6 with SMTP id 6so4420911eyb.26 for ; Tue, 09 Nov 2010 10:16:51 -0800 (PST) Received: by 10.216.59.77 with SMTP id r55mr5552466wec.6.1289326610617; Tue, 09 Nov 2010 10:16:50 -0800 (PST) Received: from ut.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com [81.149.164.25]) by mx.google.com with ESMTPS id 7sm1080578wet.0.2010.11.09.10.16.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Nov 2010 10:16:48 -0800 (PST) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id 4E1E559405B; Tue, 9 Nov 2010 18:15:32 +0000 (GMT) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH] emacs: Correctly count the number of lines in a signature. Date: Tue, 9 Nov 2010 18:15:31 +0000 Message-Id: <1289326531-27252-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.7.2.3 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Tue, 09 Nov 2010 18:17:02 -0000 --- emacs/notmuch-wash.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el index 26a3f88..cfcfb21 100644 --- a/emacs/notmuch-wash.el +++ b/emacs/notmuch-wash.el @@ -145,7 +145,7 @@ is what to put on the button." (re-search-forward notmuch-wash-signature-regexp nil t)) (let* ((sig-start (match-beginning 0)) (sig-end (match-end 0)) - (sig-lines (1- (count-lines sig-start (point-max))))) + (sig-lines (count-lines sig-start (point-max)))) (if (<= sig-lines notmuch-wash-signature-lines-max) (let ((sig-start-marker (make-marker)) (sig-end-marker (make-marker))) -- 1.7.2.3