;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Created: 1994/08/21 renamed from mime.el
;; Renamed: 1997/2/21 from tm-edit.el
-;; Version: $Revision: 0.69 $
+;; Version: $Revision: 0.70 $
;; Keywords: MIME, multimedia, multilingual, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst mime-edit-RCS-ID
- "$Id: mime-edit.el,v 0.69 1997-03-07 13:52:44 morioka Exp $")
+ "$Id: mime-edit.el,v 0.70 1997-03-07 14:06:53 morioka Exp $")
(defconst mime-edit-version (get-version-string mime-edit-RCS-ID))
"\\):")
"Regexp for deleted header fields when `mime-edit-again' is called.")
-(defun mime-editor::edit-again (code-conversion)
+(defun mime-edit-decode-buffer (not-decode-text)
(save-excursion
(goto-char (point-min))
(let ((ctl (mime/Content-Type)))
)
(save-restriction
(narrow-to-region beg end)
- (mime-editor::edit-again code-conversion)
+ (mime-edit-decode-buffer not-decode-text)
(goto-char (point-max))
))))
))
(setq encoded t
encoding nil)
)))))))
- (if (or code-conversion encoded)
+ (if (or encoded (not not-decode-text))
(decode-mime-charset-region
(point-min)(point-max)
(or charset default-mime-charset))
(concat type "/" stype pstr) encoding))
))
))))
- (if code-conversion
+ (or not-decode-text
(decode-mime-charset-region (point-min) (point-max)
default-mime-charset)
- )
+ )
))))
(defun mime-edit-again (&optional not-decode-text no-separator not-turn-on)
nil t)
(replace-match "\n\n")
)
- (mime-editor::edit-again (not not-decode-text))
+ (mime-edit-decode-buffer not-decode-text)
(goto-char (point-min))
(save-restriction
(std11-narrow-to-header)