;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Created: 1994/08/21 renamed from mime.el by UMEDA Masanobu;
;;; 1996/05/24 renamed from tm-edit.el
-;;; Version: $Revision: 0.29 $
+;;; Version: $Revision: 0.30 $
;;; Keywords: mail, news, MIME, multimedia, multilingual
;;;
;;; This file is part of SEMI (September, Emacs MIME Interface)
;;;
(defconst mime-editor/RCS-ID
- "$Id: mime-edit.el,v 0.29 1996-07-03 05:24:44 morioka Exp $")
+ "$Id: mime-edit.el,v 0.30 1996-07-09 13:24:21 morioka Exp $")
(defconst mime-editor/version (get-version-string mime-editor/RCS-ID))
(make-sparse-keymap 'mime-editor/minor-mime-map))
(define-key mime-editor/minor-mime-map mime-prefix mime-editor/mime-map))
+(defun mime-editor/toggle-mode ()
+ (interactive)
+ (if mime/editor-mode-flag
+ (mime-editor/exit 'nomime)
+ (mime/editor-mode)
+ ))
+
(if running-xemacs
(add-minor-mode 'mime/editor-mode-flag
'((" MIME-Edit " mime-editor/transfer-level-string))
mime-editor/minor-mime-map
nil
- 'mime/editor-mode)
+ 'mime-editor/toggle-mode)
(set-alist 'minor-mode-alist
'mime/editor-mode-flag
'((" MIME-Edit " mime-editor/transfer-level-string))))
non-nil."
(interactive)
(if mime/editor-mode-flag
- (mime-editor/exit 'nomime)
+ (error "You are already editing a MIME message.")
(setq mime/editor-mode-flag t)
;; Remember old key bindings.
(if running-xemacs