From: morioka Date: Fri, 3 Jul 1998 08:34:35 +0000 (+0000) Subject: (mmbuffer-write-entity): Use `mime-entity-buffer-internal', X-Git-Tag: flim-1_8_1~21 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88860955220920e6da966aea41a619d812fad0fc;p=elisp%2Fflim.git (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'. --- 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)