Sync up with the latest semi-1_13 branch.
authoryamaoka <yamaoka>
Tue, 17 Aug 1999 23:05:10 +0000 (23:05 +0000)
committeryamaoka <yamaoka>
Tue, 17 Aug 1999 23:05:10 +0000 (23:05 +0000)
ChangeLog
mime-view.el

index 3eae94e..f546a44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-08-17  Katsumi Yamaoka   <yamaoka@jpl.org>
 
+       * mime-view.el (mime-preview-original-major-mode): Modify the way
+       of checking for the end of the buffer.
+
+1999-08-17  Katsumi Yamaoka   <yamaoka@jpl.org>
+
        * mime-view.el (mime-preview-original-major-mode): Don't use
        `get-text-property' at the end of the buffer.
 
index 168a73d..964c687 100644 (file)
@@ -131,9 +131,10 @@ mother-buffer."
        (mime-preview-original-major-mode recursive)
        )
     (cdr (assq 'major-mode
-              (get-text-property (or point (if (eobp)
-                                               (1- (point-max))
-                                             (point)))
+              (get-text-property (or point
+                                     (if (> (point) (buffer-size))
+                                         (max (1- (point-max)) (point-min))
+                                       (point)))
                                  'mime-view-situation)))))