projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5e4ff0
)
emacs: Correctly count the number of lines in a signature.
author
David Edmondson
<dme@dme.org>
Tue, 9 Nov 2010 18:15:31 +0000
(18:15 +0000)
committer
Carl Worth
<cworth@cworth.org>
Fri, 12 Nov 2010 00:50:22 +0000
(16:50 -0800)
emacs/notmuch-wash.el
patch
|
blob
|
history
diff --git
a/emacs/notmuch-wash.el
b/emacs/notmuch-wash.el
index 26a3f881163f8c6e4b50604faea685b54e66bc93..cfcfb21c01d4982ad2482ea3133708cfd6af40b2 100644
(file)
--- 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)))