From: yamaoka Date: Tue, 17 Aug 1999 23:04:38 +0000 (+0000) Subject: Sync up with the latest semi-1_13 branch. X-Git-Tag: wemi-1_13_6~8 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1528e72bf58d45be32302cdae7f9e54aab8b53ac;p=elisp%2Fsemi.git Sync up with the latest semi-1_13 branch. --- diff --git a/ChangeLog b/ChangeLog index c595dc1..b04d5fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 1999-08-17 Katsumi Yamaoka + * mime-view.el (mime-preview-original-major-mode): Modify the way + of checking for the end of the buffer. + +1999-08-17 Katsumi Yamaoka + * mime-view.el (mime-preview-original-major-mode): Don't use `get-text-property' at the end of the buffer. diff --git a/mime-view.el b/mime-view.el index 68ff42f..ad8c800 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)))))