;; Created: 1994/7/13
;; Renamed: 1994/8/31 from tm-body.el
;; Renamed: 1997/02/19 from tm-view.el
-;; Version: $Revision: 0.19 $
+;; Version: $Revision: 0.20 $
;; 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.19 1997-02-27 06:37:53 tmorioka Exp $")
+ "$Id: mime-view.el,v 0.20 1997-02-28 05:34:21 tmorioka Exp $")
(defconst mime-view-version (get-version-string mime-view-RCS-ID))
)
"Menu for MIME Viewer")
-(if running-xemacs
- (progn
- (defvar mime-view-xemacs-popup-menu
- (cons mime-view-menu-title
- (mapcar (function
- (lambda (item)
- (vector (nth 1 item)(nth 2 item) t)
- ))
- mime-view-menu-list)))
- (defun mime-view-xemacs-popup-menu (event)
- "Popup the menu in the MIME Viewer buffer"
- (interactive "e")
- (select-window (event-window event))
- (set-buffer (event-buffer event))
- (popup-menu 'mime-view-xemacs-popup-menu))
- ))
+(cond (running-xemacs
+ (defvar mime-view-xemacs-popup-menu
+ (cons mime-view-menu-title
+ (mapcar (function
+ (lambda (item)
+ (vector (nth 1 item)(nth 2 item) t)
+ ))
+ mime-view-menu-list)))
+ (defun mime-view-xemacs-popup-menu (event)
+ "Popup the menu in the MIME Viewer buffer"
+ (interactive "e")
+ (select-window (event-window event))
+ (set-buffer (event-buffer event))
+ (popup-menu 'mime-view-xemacs-popup-menu))
+ (defvar mouse-button-2 'button2)
+ )
+ (t
+ (defvar mouse-button-2 [mouse-2])
+ ))
(defun mime-view-define-keymap (&optional default)
(let ((mime-view-mode-map (if (keymapp default)