From: morioka Date: Thu, 8 May 1997 22:37:47 +0000 (+0000) Subject: (mime-view-define-keymap): Use `set-keymap-default-binding' for X-Git-Tag: Hokutetsu-Ishikawa-new~10 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=f8a66d4ab64c241eb4b13a4b92e19f0c9302e39b;p=elisp%2Fsemi.git (mime-view-define-keymap): Use `set-keymap-default-binding' for XEmacs. --- diff --git a/mime-view.el b/mime-view.el index 3a9d544..7edd1b4 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.85 $ +;; Version: $Revision: 0.86 $ ;; 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.85 1997-05-07 09:33:48 morioka Exp $") + "$Id: mime-view.el,v 0.86 1997-05-08 22:37:47 morioka Exp $") (defconst mime-view-version (get-version-string mime-view-RCS-ID)) @@ -758,9 +758,13 @@ The compressed face will be piped to this command.") (define-key mime-view-mode-map "?" (function describe-mode)) (if (functionp default) - (setq mime-view-mode-map - (append mime-view-mode-map (list (cons t default))) - )) + (cond (running-xemacs + (set-keymap-default-binding mime-view-mode-map default) + ) + (t + (setq mime-view-mode-map + (append mime-view-mode-map (list (cons t default)))) + ))) (if mouse-button-2 (define-key mime-view-mode-map mouse-button-2 (function mime-button-dispatcher))