(mmbuffer-write-entity): Use `mime-entity-buffer-internal',
authormorioka <morioka>
Fri, 3 Jul 1998 08:34:35 +0000 (08:34 +0000)
committermorioka <morioka>
Fri, 3 Jul 1998 08:34:35 +0000 (08:34 +0000)
`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

index 971d3ca..e9d24b5 100644 (file)
   (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)
   )
 
 
 (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
   (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)