From: tmorioka Date: Fri, 28 Feb 1997 05:34:21 +0000 (+0000) Subject: (mouse-button-2): New variable; copied from emu-19.el and X-Git-Tag: Hokutetsu-Ishikawa-new~218 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40679abb52fcc75f248ba09d3a6d7005724f3b85;p=elisp%2Fsemi.git (mouse-button-2): New variable; copied from emu-19.el and emu-xemacs.el. --- diff --git a/mime-view.el b/mime-view.el index 6913adf..a4bdaa6 100644 --- a/mime-view.el +++ b/mime-view.el @@ -6,7 +6,7 @@ ;; 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). @@ -40,7 +40,7 @@ ;;; (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)) @@ -709,22 +709,25 @@ The compressed face will be piped to this command.") ) "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)