(mime-preview-original-major-mode): Don't use `get-text-property' at the end
authoryamaoka <yamaoka>
Tue, 17 Aug 1999 02:27:07 +0000 (02:27 +0000)
committeryamaoka <yamaoka>
Tue, 17 Aug 1999 02:27:07 +0000 (02:27 +0000)
of the buffer.

mime-view.el

index cb3a937..168a73d 100644 (file)
@@ -131,7 +131,10 @@ mother-buffer."
        (mime-preview-original-major-mode recursive)
        )
     (cdr (assq 'major-mode
-              (get-text-property (or point (point)) 'mime-view-situation)))))
+              (get-text-property (or point (if (eobp)
+                                               (1- (point-max))
+                                             (point)))
+                                 'mime-view-situation)))))
 
 
 ;;; @ entity information