X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=tm-orig.el;h=43e5ec5810d1b62950c5f358aaefe72dc468fb8c;hb=a7388c9a369504a8de494bed38b72f386e5e004d;hp=16dd3431270ee1ca10a02253fe10e1087cb21741;hpb=c9f83ccae961d3a02a0f9e065d3f5f9d78eb90bd;p=elisp%2Ftm.git diff --git a/tm-orig.el b/tm-orig.el index 16dd343..43e5ec5 100644 --- a/tm-orig.el +++ b/tm-orig.el @@ -1,54 +1,71 @@ ;;; -;;; $Id: tm-orig.el,v 5.2 1994/10/26 14:44:58 morioka Exp $ +;;; tm-orig.el --- tm definitions depended on FSF Original Emacs ;;; +;;; Copyright (C) 1995 Free Software Foundation, Inc. +;;; Copyright (C) 1994,1995,1996 MORIOKA Tomohiko +;;; +;;; Author: MORIOKA Tomohiko +;;; Version: +;;; $Id: tm-orig.el,v 7.6 1996/01/11 05:15:05 morioka Exp $ +;;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word +;;; +;;; This file is part of tm (Tools for MIME). +;;; +;;; This program is free software; you can redistribute it and/or +;;; modify it under the terms of the GNU General Public License as +;;; published by the Free Software Foundation; either version 2, or +;;; (at your option) any later version. +;;; +;;; This program is distributed in the hope that it will be useful, +;;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with This program. If not, write to the Free Software +;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +;;; +;;; Code: -(provide 'tm-orig) - -(require 'tl-orig) +(require 'emu) ;;; @ variables ;;; -(defvar mime/lc-charset-and-encoding-alist +(defvar mime/default-coding-system nil) + +(defvar mime/lc-charset-alist (list - (cons lc-ascii nil) - (cons lc-ltn1 '("ISO-8859-1" . "Q")) + (cons (list lc-ascii) "US-ASCII") + (cons (list lc-ascii lc-ltn1) "ISO-8859-1") )) -(defvar mime/latin-lc-list - (list lc-ascii lc-ltn1)) - -(defvar mime/decoding-charset-list '("US-ASCII" "ISO-8859-1")) +(defvar mime/unknown-charset "ISO-8859-1") ;;; @ functions ;;; -;; by mol. 1993/10/4 (defun mime/convert-string-to-emacs (charset str) - (cond ((string-match "^US-ASCII$" charset) str) - ((string-match "^ISO-8859-1$" charset) str) - )) - -;; by mol. 1993/11/2 -(defun mime/convert-string-from-emacs (string charset) - (cond ((equal charset "US-ASCII") string) - ((equal charset "ISO-8859-1") string) - )) - -(defun mime/decode-encoded-text (charset encoding str) - (if (member charset mime/decoding-charset-list) - (cond ((string-match "^B$" encoding) - (mime/base64-decode-string str)) - ((string-match "^Q$" encoding) - (mime/Quoted-Printable-decode-string str)) - (t (message "unknown encoding %s" encoding) - (concat "=?" charset "?" encoding "?" str "?=") - )) - (concat "=?" charset "?" encoding "?" str "?=") - )) - - -(defun mime/code-convert-region-to-emacs (beg end charset) + (if (or (string= "US-ASCII" charset) + (string= "ISO-8859-1" charset)) + str)) + +(defun mime/convert-string-from-emacs (str charset) + (if (or (string= charset "US-ASCII") + (string= charset "ISO-8859-1")) + str)) + +(defun mime/code-convert-region-to-emacs (beg end charset &optional encoding) ) + + +;;; @ end +;;; + +(provide 'tm-orig) + +(run-hooks 'tm-orig-load-hook) + +;;; tm-orig.el ends here