Mercurial > hg > xemacs-beta
diff lisp/tm/tm-play.el @ 110:fe104dbd9147 r20-1b7
Import from CVS: tag r20-1b7
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:19:45 +0200 |
parents | 360340f9fd5f |
children | 9f59509498e1 |
line wrap: on
line diff
--- a/lisp/tm/tm-play.el Mon Aug 13 09:18:41 2007 +0200 +++ b/lisp/tm/tm-play.el Mon Aug 13 09:19:45 2007 +0200 @@ -4,7 +4,7 @@ ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp> ;; Created: 1995/9/26 (separated from tm-view.el) -;; Version: $Id: tm-play.el,v 1.3 1997/03/08 23:26:57 steve Exp $ +;; Version: $Id: tm-play.el,v 1.4 1997/03/16 03:05:47 steve Exp $ ;; Keywords: mail, news, MIME, multimedia ;; This file is part of tm (Tools for MIME). @@ -273,7 +273,17 @@ (cons t (mime-charset-to-coding-system default-mime-charset)) )) -(cond (running-mule-merged-emacs +(cond ((boundp 'MULE) ; for MULE 2.3 or older + (defun mime-article::write-region (start end file) + (let ((file-coding-system + (cdr + (or (assq major-mode mime-article/coding-system-alist) + (assq t mime-article/coding-system-alist) + )))) + (write-region start end file) + )) + ) + ((featurep 'mule) ; for Emacs/mule and XEmacs/mule (defun mime-article::write-region (start end file) (let ((coding-system-for-write (cdr @@ -283,18 +293,7 @@ (write-region start end file) )) ) - ((or (boundp 'MULE) - running-xemacs-with-mule) - (defun mime-article::write-region (start end file) - (let ((file-coding-system - (cdr - (or (assq major-mode mime-article/coding-system-alist) - (assq t mime-article/coding-system-alist) - )))) - (write-region start end file) - )) - ) - ((boundp 'NEMACS) + ((boundp 'NEMACS) ; for NEmacs (defun mime-article::write-region (start end file) (let ((kanji-fileio-code (cdr @@ -304,7 +303,7 @@ (write-region start end file) )) ) - (t + (t ; for Emacs 19 or older and XEmacs without mule (defalias 'mime-article::write-region 'write-region) )) @@ -424,9 +423,7 @@ ;;; @ rot13-47 ;;; -(condition-case nil - (require 'view-less) - (error (require 'view))) +(require 'view) (defconst mime-view-text/plain-mode-map (copy-keymap view-mode-map)) (define-key mime-view-text/plain-mode-map