* [PATCH] emacs: Correctly count the number of lines in a signature.
@ 2010-11-09 18:15 David Edmondson
2010-11-12 0:50 ` Carl Worth
0 siblings, 1 reply; 2+ messages in thread
From: David Edmondson @ 2010-11-09 18:15 UTC (permalink / raw)
To: notmuch
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] emacs: Correctly count the number of lines in a signature.
2010-11-09 18:15 [PATCH] emacs: Correctly count the number of lines in a signature David Edmondson
@ 2010-11-12 0:50 ` Carl Worth
0 siblings, 0 replies; 2+ messages in thread
From: Carl Worth @ 2010-11-12 0:50 UTC (permalink / raw)
To: David Edmondson, notmuch
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
On Tue, 9 Nov 2010 18:15:31 +0000, David Edmondson <dme@dme.org> wrote:
> - (sig-lines (1- (count-lines sig-start (point-max)))))
> + (sig-lines (count-lines sig-start (point-max))))
Thanks. This is pushed.
-Carl
--
carl.d.worth@intel.com
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-12 0:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09 18:15 [PATCH] emacs: Correctly count the number of lines in a signature David Edmondson
2010-11-12 0:50 ` Carl Worth
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).