From 88860955220920e6da966aea41a619d812fad0fc Mon Sep 17 00:00:00 2001 From: morioka Date: Fri, 3 Jul 1998 08:34:35 +0000 Subject: [PATCH] (mmbuffer-write-entity): Use `mime-entity-buffer-internal', `mmbuffer-entity-point-min' and `mmbuffer-entity-point-max'. (mmbuffer-write-entity-body): Use `mime-entity-buffer-internal', `mime-entity-body-start-internal' and `mime-entity-body-end-internal'. (mmbuffer-insert-decoded-header): Use `mime-entity-buffer-internal', `mime-entity-header-start-internal' and `mime-entity-header-end-internal'. --- mmbuffer.el | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/mmbuffer.el b/mmbuffer.el index 971d3ca..e9d24b5 100644 --- a/mmbuffer.el +++ b/mmbuffer.el @@ -30,11 +30,11 @@ (mime-parse-buffer location) ) -(defun mmbuffer-entity-point-min (entity) +(defsubst mmbuffer-entity-point-min (entity) (mime-entity-header-start-internal entity) ) -(defun mmbuffer-entity-point-max (entity) +(defsubst mmbuffer-entity-point-max (entity) (mime-entity-body-end-internal entity) ) @@ -68,16 +68,16 @@ (defun mmbuffer-write-entity (entity filename) (save-excursion - (set-buffer (mime-entity-buffer entity)) - (write-region-as-binary (mime-entity-point-min entity) - (mime-entity-point-max entity) filename) + (set-buffer (mime-entity-buffer-internal entity)) + (write-region-as-binary (mmbuffer-entity-point-min entity) + (mmbuffer-entity-point-max entity) filename) )) (defun mmbuffer-write-entity-body (entity filename) (save-excursion - (set-buffer (mime-entity-buffer entity)) - (write-region-as-binary (mime-entity-body-start entity) - (mime-entity-body-end entity) filename) + (set-buffer (mime-entity-buffer-internal entity)) + (write-region-as-binary (mime-entity-body-start-internal entity) + (mime-entity-body-end-internal entity) filename) )) (defun mmbuffer-insert-decoded-header (entity &optional invisible-fields @@ -85,12 +85,12 @@ (save-restriction (narrow-to-region (point)(point)) (let ((the-buf (current-buffer)) - (src-buf (mime-entity-buffer entity)) - (h-end (mime-entity-header-end entity)) + (src-buf (mime-entity-buffer-internal entity)) + (h-end (mime-entity-header-end-internal entity)) beg p end field-name len field) (save-excursion (set-buffer src-buf) - (goto-char (mime-entity-header-start entity)) + (goto-char (mime-entity-header-start-internal entity)) (save-restriction (narrow-to-region (point) h-end) (while (re-search-forward std11-field-head-regexp nil t) -- 1.7.10.4