From 0c00e1bbd3c67ae8f24f7e30ccdf89f99e02e1d3 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 17 Aug 1999 23:03:44 +0000 Subject: [PATCH] (mime-preview-original-major-mode): Modify the way of checking for the end of the buffer. --- mime-view.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mime-view.el b/mime-view.el index 168a73d..964c687 100644 --- a/mime-view.el +++ b/mime-view.el @@ -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))))) -- 1.7.10.4