From: morioka Date: Thu, 22 Oct 1998 01:34:38 +0000 (+0000) Subject: Use `(featurep 'xemacs)' instead of `running-xemacs'. X-Git-Tag: semi-1_10_0~5 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=9f4e41d47523bd6fb9f0a3edde5c2f2f329e5dec;p=elisp%2Fsemi.git Use `(featurep 'xemacs)' instead of `running-xemacs'. --- diff --git a/mime-edit.el b/mime-edit.el index b07cf72..2187b32 100644 --- a/mime-edit.el +++ b/mime-edit.el @@ -764,7 +764,7 @@ Tspecials means any character that matches with it in header must be quoted.") ) "MIME-edit menubar entry.") -(cond (running-xemacs +(cond ((featurep 'xemacs) ;; modified by Pekka Marjola ;; 1995/9/5 (c.f. [tm-en:69]) (defun mime-edit-define-menu-for-xemacs () @@ -962,7 +962,7 @@ User customizable variables (not documented all of them): ))) -(cond (running-xemacs +(cond ((featurep 'xemacs) (add-minor-mode 'mime-edit-mode-flag '((" MIME-Edit " mime-transfer-level-string)) mime-edit-mode-map @@ -994,7 +994,7 @@ User customizable variables (not documented all of them): (force-mode-line-update) ;; Define menu for XEmacs. - (if running-xemacs + (if (featurep 'xemacs) (mime-edit-define-menu-for-xemacs) ) @@ -1032,7 +1032,7 @@ just return to previous mode." (mime-edit-translate-buffer))) ;; Restore previous state. (setq mime-edit-mode-flag nil) - (if (and running-xemacs + (if (and (featurep 'xemacs) (featurep 'menubar)) (delete-menu-item (list mime-edit-menu-title)) ) diff --git a/mime-view.el b/mime-view.el index 7ef1485..2804365 100644 --- a/mime-view.el +++ b/mime-view.el @@ -760,7 +760,7 @@ MEDIA-TYPE must be (TYPE . SUBTYPE), TYPE or t. t means default." ) "Menu for MIME Viewer") -(cond (running-xemacs +(cond ((featurep 'xemacs) (defvar mime-view-xemacs-popup-menu (cons mime-view-menu-title (mapcar (function @@ -830,7 +830,7 @@ MEDIA-TYPE must be (TYPE . SUBTYPE), TYPE or t. t means default." (define-key mime-view-mode-map [backspace] (function mime-preview-scroll-down-entity)) (if (functionp default) - (cond (running-xemacs + (cond ((featurep 'xemacs) (set-keymap-default-binding mime-view-mode-map default) ) (t @@ -841,7 +841,7 @@ MEDIA-TYPE must be (TYPE . SUBTYPE), TYPE or t. t means default." (define-key mime-view-mode-map mouse-button-2 (function mime-button-dispatcher)) ) - (cond (running-xemacs + (cond ((featurep 'xemacs) (define-key mime-view-mode-map mouse-button-3 (function mime-view-xemacs-popup-menu)) )