emacs: Correctly count the number of lines in a signature.

This commit is contained in:
David Edmondson 2010-11-09 18:15:31 +00:00 committed by Carl Worth
parent d5e4ff0580
commit 1b2ea703e7

View file

@ -145,7 +145,7 @@ is what to put on the button."
(re-search-forward notmuch-wash-signature-regexp nil t)) (re-search-forward notmuch-wash-signature-regexp nil t))
(let* ((sig-start (match-beginning 0)) (let* ((sig-start (match-beginning 0))
(sig-end (match-end 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) (if (<= sig-lines notmuch-wash-signature-lines-max)
(let ((sig-start-marker (make-marker)) (let ((sig-start-marker (make-marker))
(sig-end-marker (make-marker))) (sig-end-marker (make-marker)))