From 20bb831c7dd683a51a0f6573768d9e1d2da91dd6 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Thu, 27 Sep 2001 05:30:10 +0000 Subject: [PATCH] * mime-edit.el (mime-edit-content-end): Retuen a value of `point-max' when the function `next-single-property-change' returns nil. --- ChangeLog | 6 ++++++ mime-edit.el | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ac478e8..241ca6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-09-27 Katsumi Yamaoka + + * mime-edit.el (mime-edit-content-end): Retuen the value of + `point-max' when the function `next-single-property-change' + returns nil. + 2001-09-25 Daiki Ueno * mime-view.el (mime-view-entity-content): New function. diff --git a/mime-edit.el b/mime-edit.el index 10052ef..c5f51f1 100644 --- a/mime-edit.el +++ b/mime-edit.el @@ -1277,7 +1277,8 @@ Optional argument ENCODING specifies an encoding method such as base64." (progn (goto-char (1+ (match-end 0))) (if (get-text-property (point) 'mime-edit-invisible) - (next-single-property-change (point) 'mime-edit-invisible) + (or (next-single-property-change (point) 'mime-edit-invisible) + (point-max)) ;; Move to the end of this text. (if (re-search-forward mime-edit-tag-regexp nil 'move) ;; Don't forget a multiline tag. -- 1.7.10.4