(base64-encode-string): Fix doc string.
[elisp/flim.git] / mime-parse.el
index a61ec05..5442896 100644 (file)
 
 ;;; Code:
 
-(require 'std11)
 (require 'mime-def)
+(require 'std11)
 
-(eval-when-compile (require 'cl))
+(autoload 'mime-entity-body-buffer "mime")
+(autoload 'mime-entity-body-start-point "mime")
+(autoload 'mime-entity-body-end-point "mime")
 
 
 ;;; @ lexical analyzer
@@ -277,8 +279,8 @@ If is is not found, return DEFAULT-ENCODING."
    entity
    (with-current-buffer (mime-entity-body-buffer entity)
      (save-restriction
-       (narrow-to-region (mime-buffer-entity-body-start-internal entity)
-                        (mime-buffer-entity-body-end-internal entity))
+       (narrow-to-region (mime-entity-body-start-point entity)
+                        (mime-entity-body-end-point entity))
        (list (mime-parse-message
              (mime-entity-representation-type-internal entity) nil
              entity (cons 0 (mime-entity-node-id-internal entity))))
@@ -330,7 +332,8 @@ If buffer is omitted, it parses current-buffer."
   (save-excursion
     (if buffer (set-buffer buffer))
     (setq mime-message-structure
-         (mime-parse-message (or representation-type 'buffer) nil))
+         (mime-parse-message (or representation-type
+                                 'mime-buffer-entity) nil))
     ))