value of `next-single-property-change' is greater than `point-max'.
(mime-preview-move-to-previous): Don't move backward at the beginning of
the buffer; attempt to go to the previous page if the return value of
`previous-single-property-change' is less than `point-min'.
+1999-10-04 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mime-view.el (mime-preview-move-to-next): Attempt to go to the
+ next page if the return value of `next-single-property-change' is
+ greater than `point-max'.
+ (mime-preview-move-to-previous): Don't move backward at the
+ beginning of the buffer; attempt to go to the previous page if the
+ return value of `previous-single-property-change' is less than
+ `point-min'.
+
1999-09-29 MORIOKA Tomohiko <tomo@m17n.org>
* mime-view.el (mime-display-multipart/mixed): Share cell of
If there is no previous entity, it calls function registered in
variable `mime-preview-over-to-previous-method-alist'."
(interactive)
- (while (null (get-text-property (point) 'mime-view-entity))
+ (while (and (not (bobp))
+ (null (get-text-property (point) 'mime-view-entity)))
(backward-char)
)
(let ((point (previous-single-property-change (point) 'mime-view-entity)))
- (if point
+ (if (and point
+ (>= point (point-min)))
(if (get-text-property (1- point) 'mime-view-entity)
(goto-char point)
(goto-char (1- point))
(forward-char)
)
(let ((point (next-single-property-change (point) 'mime-view-entity)))
- (if point
+ (if (and point
+ (<= point (point-max)))
(progn
(goto-char point)
(if (null (get-text-property point 'mime-view-entity))