From 1c62eb6faf2f6a34f2c0c3eb6f1aceb1e5a3e779 Mon Sep 17 00:00:00 2001 From: morioka Date: Mon, 9 Aug 1999 03:26:25 +0000 Subject: [PATCH] (mime-entity-header-start-point): New method. (mime-entity-header-end-point): New method. --- mmbuffer.el | 54 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/mmbuffer.el b/mmbuffer.el index b5ba212..f014aec 100644 --- a/mmbuffer.el +++ b/mmbuffer.el @@ -217,19 +217,44 @@ )) -;;; @ buffer +;;; @ header buffer ;;; (luna-define-method mime-entity-header-buffer ((entity mime-buffer-entity)) (mime-buffer-entity-buffer-internal entity) ) +(luna-define-method mime-goto-header-start-point ((entity mime-buffer-entity)) + (set-buffer (mime-buffer-entity-buffer-internal entity)) + (goto-char (mime-buffer-entity-header-start-internal entity)) + ) + +(luna-define-method mime-entity-header-start-point ((entity + mime-buffer-entity)) + (mime-buffer-entity-header-start-internal entity) + ) + +(luna-define-method mime-entity-header-end-point ((entity + mime-buffer-entity)) + (mime-buffer-entity-header-end-internal entity) + ) + + +;;; @ body buffer +;;; + (luna-define-method mime-entity-body-buffer ((entity mime-buffer-entity)) (mime-buffer-entity-buffer-internal entity) ) -(luna-define-method mime-entity-buffer ((entity mime-buffer-entity)) - (mime-buffer-entity-buffer-internal entity) +(luna-define-method mime-goto-body-start-point ((entity mime-buffer-entity)) + (set-buffer (mime-buffer-entity-buffer-internal entity)) + (goto-char (mime-buffer-entity-body-start-internal entity)) + ) + +(luna-define-method mime-goto-body-end-point ((entity mime-buffer-entity)) + (set-buffer (mime-buffer-entity-buffer-internal entity)) + (goto-char (mime-buffer-entity-body-end-internal entity)) ) (luna-define-method mime-entity-body-start-point ((entity mime-buffer-entity)) @@ -240,27 +265,20 @@ (mime-buffer-entity-body-end-internal entity) ) -(luna-define-method mime-entity-point-min ((entity mime-buffer-entity)) - (mime-buffer-entity-header-start-internal entity) - ) -(luna-define-method mime-entity-point-max ((entity mime-buffer-entity)) - (mime-buffer-entity-body-end-internal entity) - ) +;;; @ buffer (obsolete) +;;; -(luna-define-method mime-goto-header-start-point ((entity mime-buffer-entity)) - (set-buffer (mime-buffer-entity-buffer-internal entity)) - (goto-char (mime-buffer-entity-header-start-internal entity)) +(luna-define-method mime-entity-buffer ((entity mime-buffer-entity)) + (mime-buffer-entity-buffer-internal entity) ) -(luna-define-method mime-goto-body-start-point ((entity mime-buffer-entity)) - (set-buffer (mime-buffer-entity-buffer-internal entity)) - (goto-char (mime-buffer-entity-body-start-internal entity)) +(luna-define-method mime-entity-point-min ((entity mime-buffer-entity)) + (mime-buffer-entity-header-start-internal entity) ) -(luna-define-method mime-goto-body-end-point ((entity mime-buffer-entity)) - (set-buffer (mime-buffer-entity-buffer-internal entity)) - (goto-char (mime-buffer-entity-body-end-internal entity)) +(luna-define-method mime-entity-point-max ((entity mime-buffer-entity)) + (mime-buffer-entity-body-end-internal entity) ) -- 1.7.10.4