From 2d7d9b09ad86983344dc13a0c7273888fa29a19c Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 17 Aug 1999 02:27:07 +0000 Subject: [PATCH] (mime-preview-original-major-mode): Don't use `get-text-property' at the end of the buffer. --- mime-view.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mime-view.el b/mime-view.el index cb3a937..168a73d 100644 --- a/mime-view.el +++ b/mime-view.el @@ -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 -- 1.7.10.4