From: morioka Date: Sat, 23 Jan 1999 06:06:04 +0000 (+0000) Subject: (insert-entity): New method. X-Git-Tag: flim-1_12-199901231900~11 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=2eb0bf96ffb45eee8ba0de4a3ad0b733e284d039;p=elisp%2Fflim.git (insert-entity): New method. --- diff --git a/mmbuffer.el b/mmbuffer.el index 93b2ff3..7d39adc 100644 --- a/mmbuffer.el +++ b/mmbuffer.el @@ -1,6 +1,6 @@ ;;; mmbuffer.el --- MIME entity module for binary buffer -;; Copyright (C) 1998 Free Software Foundation, Inc. +;; Copyright (C) 1998,1999 Free Software Foundation, Inc. ;; Author: MORIOKA Tomohiko ;; Keywords: MIME, multimedia, mail, news @@ -95,6 +95,12 @@ (or (mime-entity-encoding entity) "7bit")) )) +(mm-define-method insert-entity ((entity buffer)) + (insert-buffer-substring (mime-entity-buffer-internal entity) + (mime-entity-header-start-internal entity) + (mime-entity-body-end-internal entity)) + ) + (mm-define-method write-entity ((entity buffer) filename) (save-excursion (set-buffer (mime-entity-buffer-internal entity)) diff --git a/mmgeneric.el b/mmgeneric.el index 3a7fa7a..a5a7244 100644 --- a/mmgeneric.el +++ b/mmgeneric.el @@ -1,6 +1,6 @@ ;;; mmgeneric.el --- MIME entity module for generic buffer -;; Copyright (C) 1998 Free Software Foundation, Inc. +;; Copyright (C) 1998,1999 Free Software Foundation, Inc. ;; Author: MORIOKA Tomohiko ;; Keywords: MIME, multimedia, mail, news @@ -109,6 +109,12 @@ (or (mime-entity-encoding entity) "7bit")) )) +(mm-define-method insert-entity ((entity generic)) + (insert-buffer-substring (mime-entity-buffer entity) + (mime-entity-header-start-internal entity) + (mime-entity-body-end-internal entity)) + ) + (mm-define-method write-entity ((entity generic) filename) (save-excursion (set-buffer (mime-entity-buffer entity))