;; Created: 1994/7/13
;; Renamed: 1994/8/31 from tm-body.el
;; Renamed: 1997/02/19 from tm-view.el
-;; Version: $Revision: 0.72 $
+;; Version: $Revision: 0.73 $
;; Keywords: MIME, multimedia, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst mime-view-RCS-ID
- "$Id: mime-view.el,v 0.72 1997-03-18 14:40:11 morioka Exp $")
+ "$Id: mime-view.el,v 0.73 1997-03-18 14:56:16 morioka Exp $")
(defconst mime-view-version (get-version-string mime-view-RCS-ID))
(make-variable-buffer-local 'mime::article/content-info)
(defvar mime-view-buffer nil
- "MIME View buffer corresponding with the buffer.")
+ "MIME View buffer corresponding with the (raw) buffer.")
(make-variable-buffer-local 'mime-view-buffer)
(make-variable-buffer-local 'mime::preview/mother-buffer)
-(defvar mime::preview/article-buffer nil)
-(make-variable-buffer-local 'mime::preview/article-buffer)
+(defvar mime-raw-buffer nil
+ "Raw buffer corresponding with the (MIME-View) buffer.")
+(make-variable-buffer-local 'mime-raw-buffer)
(make-variable-buffer-local 'mime::preview/original-major-mode)
(make-variable-buffer-local 'mime::preview/original-window-configuration)
(setq buffer-read-only nil)
(widen)
(erase-buffer)
- (setq mime::preview/article-buffer the-buf)
+ (setq mime-raw-buffer the-buf)
(setq mime::preview/original-major-mode mode)
(setq major-mode 'mime-view-mode)
(setq mode-name "MIME-View")
(defun mime-preview/display-header (beg end)
(save-restriction
(narrow-to-region (point)(point))
- (insert-buffer-substring mime::preview/article-buffer beg end)
+ (insert-buffer-substring mime-raw-buffer beg end)
(let ((f (cdr (assq mime::preview/original-major-mode
mime-view-content-header-filter-alist))))
(if (functionp f)
rcnum cinfo ctype params subj encoding)
(save-restriction
(narrow-to-region (point-max)(point-max))
- (insert-buffer-substring mime::preview/article-buffer beg end)
+ (insert-buffer-substring mime-raw-buffer beg end)
(let ((f (cdr (or (assoc ctype mime-view-content-filter-alist)
(assq t mime-view-content-filter-alist)))))
(and (functionp f)
(new-name (format "%s-%s" (buffer-name) (reverse rcnum)))
new-buf
(the-buf (current-buffer))
- (a-buf mime::preview/article-buffer)
+ (a-buf mime-raw-buffer)
fields)
(save-excursion
(set-buffer (setq new-buf (get-buffer-create new-name)))
(save-excursion
(set-buffer the-buf)
(set-buffer mime::preview/mother-buffer)
- (set-buffer mime::preview/article-buffer)
+ (set-buffer mime-raw-buffer)
(std11-field-body field-name)
)
"\n")))
(defun mime-view-display-x-face ()
(interactive)
(save-window-excursion
- (set-buffer mime::preview/article-buffer)
+ (set-buffer mime-raw-buffer)
(mime-view-x-face-function)
))