* (mime-preview-move-to-next): Don't move forward at the end of buffer. semi-1_12-199812241900
authoryamaoka <yamaoka>
Wed, 23 Dec 1998 23:18:21 +0000 (23:18 +0000)
committeryamaoka <yamaoka>
Wed, 23 Dec 1998 23:18:21 +0000 (23:18 +0000)
ChangeLog
mime-view.el

index 6fe0a75..e2f7c95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-12-24  Katsumi Yamaoka   <yamaoka@jpl.org>
+
+       * mime-view.el (mime-preview-move-to-next): Don't move forward at
+       the end of buffer.
+
 1998-12-03  Katsumi Yamaoka   <yamaoka@jpl.org>
 
        * mime-edit.el (mime-edit-user-agent-value): Include
index c9a29ed..b4b1d8f 100644 (file)
@@ -1213,7 +1213,8 @@ variable `mime-preview-over-to-previous-method-alist'."
 If there is no previous entity, it calls function registered in
 variable `mime-preview-over-to-next-method-alist'."
   (interactive)
-  (while (null (get-text-property (point) 'mime-view-entity))
+  (while (and (not (eobp))
+             (null (get-text-property (point) 'mime-view-entity)))
     (forward-char)
     )
   (let ((point (next-single-property-change (point) 'mime-view-entity)))