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.
(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)))))