From: Jesse Rosenthal Date: Tue, 13 Apr 2010 18:47:19 +0000 (-0400) Subject: Fix bug in adding or removing tag by region. X-Git-Tag: 0.2~56 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=2fbb6d05a931b23c307aee3af05ab488c6bca425;hp=2fbb6d05a931b23c307aee3af05ab488c6bca425 Fix bug in adding or removing tag by region. There was a bug in notmuch-search-{add,remove}-tag-region, which would not behave correctly if the region went beyond the last message. Now, instead of simply iterating to the last line of the region, these functions will iterate to the minimum of the last line of the region and the last possible line, i.e. (- (line-number-at-pos (point-max)) 2) Tested-by: Carl Worth Note that the old, buggy behavior included infinite loops of emacs lisp code, so the new behavior is significantly better than that. ---