;; 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.56 $
+;; Version: $Revision: 0.57 $
;; 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.56 1997-03-04 12:26:38 morioka Exp $")
+ "$Id: mime-edit.el,v 0.57 1997-03-04 12:34:50 morioka Exp $")
(defconst mime-edit-version (get-version-string mime-edit-RCS-ID))
(concat "Emacs " ver ", MULE " mule-version)
ver))))
-
-;;; @@ buffer local variables
-;;;
-
-(defvar mime-edit-mode-old-local-map nil)
-(defvar mime-edit-buffer nil)
-
\f
;;; @ constants
;;;
)
;;; end
+(defvar mime-edit-mode-old-local-map nil) ; buffer local variable
+
;;; @ functions
;;;
;;; @ preview message
;;;
+(defvar mime-edit-buffer nil) ; buffer local variable
+
(defun mime-edit-preview-message ()
"preview editing MIME message. [mime-edit.el]"
(interactive)
)
-;;; @ draft preview
-;;;
-;; by "OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>
-;; Mon, 10 Apr 1995 20:03:07 +0900
-
-(defvar mime-edit-draft-header-separator-alist
- '((news-reply-mode . mail-header-separator)
- (mh-letter-mode . mail-header-separator)
- ))
-
-(defvar mime::article/draft-header-separator nil)
-
-(defun mime-edit-draft-preview ()
- (interactive)
- (let ((sep (cdr (assq major-mode mime-edit-draft-header-separator-alist))))
- (or (stringp sep) (setq sep (eval sep)))
- (make-variable-buffer-local 'mime::article/draft-header-separator)
- (goto-char (point-min))
- (re-search-forward
- (concat "^\\(" (regexp-quote sep) "\\)?$"))
- (setq mime::article/draft-header-separator
- (buffer-substring (match-beginning 0) (match-end 0)))
- (replace-match "")
- (mime-view-mode (current-buffer))
- (pop-to-buffer (current-buffer))
- ))
-
-(defun mime-viewer::quitting-method/draft-preview ()
- (let ((mother mime::preview/mother-buffer))
- (save-excursion
- (switch-to-buffer mother)
- (goto-char (point-min))
- (if (and
- (re-search-forward
- (concat "^\\("
- (regexp-quote mime::article/draft-header-separator)
- "\\)?$") nil t)
- (bolp))
- (progn
- (insert mime::article/draft-header-separator)
- (set-buffer-modified-p (buffer-modified-p))
- )))
- (mime-view-kill-buffer)
- (pop-to-buffer mother)
- ))
-
-(set-alist 'mime-view-quitting-method-alist
- 'mh-letter-mode
- (function mime-viewer::quitting-method/draft-preview)
- )
-
-(set-alist 'mime-view-quitting-method-alist
- 'news-reply-mode
- (function mime-viewer::quitting-method/draft-preview)
- )
-
-
;;; @ edit again
;;;