emacs: fix off-by-one bug in notmuch-show-archive

Text properties change between characters; prev-s-c-property-change
returns the position after the change.  Thus, it is still inside the
invisible region.
This commit is contained in:
Aaron Ecay 2011-12-22 09:24:20 -05:00 committed by David Bremner
parent 49af79cd2a
commit 8392a7cc54

View file

@ -1157,8 +1157,9 @@ current window), advance to the next open message."
(ret nil)) (ret nil))
(while (invisible-p visible-end-of-this-message) (while (invisible-p visible-end-of-this-message)
(setq visible-end-of-this-message (setq visible-end-of-this-message
(previous-single-char-property-change visible-end-of-this-message (max (point-min)
'invisible))) (1- (previous-single-char-property-change
visible-end-of-this-message 'invisible)))))
(cond (cond
;; Ideally we would test `end-of-this-message' against the result ;; Ideally we would test `end-of-this-message' against the result
;; of `window-end', but that doesn't account for the fact that ;; of `window-end', but that doesn't account for the fact that