;;; 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.35 $
+;;; Version: $Revision: 0.36 $
;;; 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.35 1996-07-10 12:05:05 morioka Exp $")
+ "$Id: mime-edit.el,v 0.36 1996-07-11 14:16:32 morioka Exp $")
(defconst mime-editor/version (get-version-string mime-editor/RCS-ID))
(defconst mime-editor/mime-map (make-sparse-keymap)
"Keymap for MIME commands.")
-(defconst mime-editor/minor-mime-map nil
- "Keymap for MIME commands.")
-
;;; @ keymap and menu
;;;
(mime-editor/define-keymap mime-editor/mime-map)
-(if mime-editor/minor-mime-map
- ()
- (setq mime-editor/minor-mime-map
- (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-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/toggle-mode)
- (set-alist 'minor-mode-alist
- 'mime/editor-mode-flag
- '((" MIME-Edit " mime-editor/transfer-level-string))))
+(cond (running-xemacs
+ (defconst mime-editor/minor-mime-map nil "Keymap for MIME commands.")
+ (or mime-editor/minor-mime-map
+ (progn
+ (setq mime-editor/minor-mime-map
+ (make-sparse-keymap 'mime-editor/minor-mime-map))
+ (define-key
+ mime-editor/minor-mime-map mime-prefix mime-editor/mime-map)
+ ))
+ (add-minor-mode 'mime/editor-mode-flag
+ '((" MIME-Edit " mime-editor/transfer-level-string))
+ mime-editor/minor-mime-map
+ nil
+ 'mime-editor/toggle-mode)
+ )
+ (t
+ (set-alist 'minor-mode-alist
+ 'mime/editor-mode-flag
+ '((" MIME-Edit " mime-editor/transfer-level-string))))
+ )
(defconst mime-editor/menu-title "MIME-Edit")