+Mon Apr 29 02:29:21 1996 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * tl: Version 7.22.1 was released.
+ * tm: Version 7.56 was released.
+ * tm/gnus: Version 7.54 was released.
+
+ * tm-edit.el (mime-editor::edit-again): Use function
+ `decode-coding-region' instead of `code-convert-region'.
+
+ * tm-view.el (mime-viewer/make-preview-buffer): use `make-list'
+ and `setcar'.
+ (mime-preview/display-content): renamed from
+ `mime-viewer/display-content'.
+
+Sat Apr 27 15:32:23 1996 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * README.en: typo was fixed. (cf. [tm-ja:1807])
+
+Sat Apr 27 15:30:29 1996 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * tm-def.el (mime/charset-coding-system-alist): initial setting
+ was modified for XEmacs 20 with Mule.
+
+Sat Apr 27 13:17:56 1996 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * tm-pgp.el (mime-article/view-application/pgp):
+ fixed about code-converting.
+
+\f
Fri Apr 26 05:31:57 1996 MORIOKA Tomohiko <morioka@jaist.ac.jp>
* tl: Version 7.22 was released.
FILES = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
-TARFILE = tm7.54.tar.gz
+TARFILE = tm7.56.tar.gz
elc:
$(EMACS) $(FLAGS) -l inst-tm -f compile-tm
[README for tm (English Version)]
by MORIOKA Tomohiko <morioka@jaist.ac.jp>
and KOBAYASHI Shuhei <shuhei-k@jaist.ac.jp>
-$Id: README.en,v 7.17 1996/04/19 17:29:32 morioka Exp $
+$Id: README.en,v 7.18 1996/04/27 15:32:23 morioka Exp $
1 What's tm?
You can specify Emacs command name, for example if you want to use
`xemacs' as Emacs command:
- % make all EMACS=xemacs
+ % make install EMACS=xemacs
6 .emacs
+Mon Apr 29 01:55:32 1996 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * tm/gnus: Version 7.54 was released.
+
+ * tm-sgnus.el (tm-gnus/article-decode-encoded-word): Use function
+ `decode-coding-region' instead of `code-convert-region'.
+ (tm-gnus/decode-summary-from-and-subjects): Use function
+ `decode-coding-string' instead of `code-convert-string'.
+
+\f
Thu Apr 25 12:07:08 1996 MORIOKA Tomohiko <morioka@jaist.ac.jp>
* tm/gnus: Version 7.53 was released.
tm/gnus/*.el tm/gnus/ChangeLog tm/doc/tm-gnus*.texi
-TARFILE = tm-gnus7.53.tar
+TARFILE = tm-gnus7.54.tar
gnus:
;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Created: 1995/09/24
-;;; Version: $Revision: 7.53 $
+;;; Version: $Revision: 7.54 $
;;; Keywords: news, MIME, multimedia, multilingual, encoded-word
;;;
;;; This file is part of tm (Tools for MIME).
;;;
(defconst tm-gnus/RCS-ID
- "$Id: tm-sgnus.el,v 7.53 1996/04/25 12:07:08 morioka Exp $")
+ "$Id: tm-sgnus.el,v 7.54 1996/04/29 01:55:32 morioka Exp $")
(defconst tm-gnus/version
(concat (get-version-string tm-gnus/RCS-ID) " for September"))
(setq gnus-show-mime-method (function tm-gnus/preview-article))
(defun tm-gnus/article-decode-encoded-word ()
- (code-convert-region (point-min)(point-max)
- (save-excursion
- (set-buffer gnus-summary-buffer)
- mime/default-coding-system)
- *internal*)
+ (decode-coding-region (point-min)(point-max)
+ (save-excursion
+ (set-buffer gnus-summary-buffer)
+ mime/default-coding-system))
(mime/decode-message-header)
(run-hooks 'tm-gnus/article-prepare-hook)
)
(if (eq method 'nntp)
(progn
(setq from
- (code-convert-string
- from mime/default-coding-system *internal*))
+ (decode-coding-string from mime/default-coding-system))
(setq subj
- (code-convert-string
- subj mime/default-coding-system *internal*))
+ (decode-coding-string subj mime/default-coding-system))
))
(mail-header-set-from
header (mime-eword/decode-string from))
;;;
;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Version:
-;;; $Id: tm-def.el,v 7.35 1996/04/25 14:29:51 morioka Exp $
+;;; $Id: tm-def.el,v 7.36 1996/04/27 15:30:29 morioka Exp $
;;; Keywords: mail, news, MIME, multimedia, definition
;;;
;;; This file is part of tm (Tools for MIME).
;;;
(defvar mime/charset-coding-system-alist
- (foldr (function
- (lambda (a cell)
- (if (boundp (cdr cell))
- (cons (cons (car cell) (symbol-value (cdr cell))) a)
- a)))
- nil
- '(("ISO-2022-JP" . *junet*)
- ("ISO-2022-KR" . *iso-2022-kr*)
- ("EUC-KR" . *euc-kr*)
- ("ISO-8859-1" . *ctext*)
- ("ISO-8859-2" . *iso-8859-2*)
- ("ISO-8859-3" . *iso-8859-3*)
- ("ISO-8859-4" . *iso-8859-4*)
- ("ISO-8859-5" . *iso-8859-5*)
- ("KOI8-R" . *koi8*)
- ("ISO-8859-7" . *iso-8859-7*)
- ("ISO-8859-8" . *iso-8859-8*)
- ("ISO-8859-9" . *iso-8859-9*)
- ("ISO-2022-JP-2" . *iso-2022-ss2-7*)
- ("X-ISO-2022-JP-2" . *iso-2022-ss2-7*)
- ("ISO-2022-INT-1" . *iso-2022-int-1*)
- ("SHIFT_JIS" . *sjis*)
- ("X-SHIFTJIS" . *sjis*)
- ("BIG5" . *big5*)
- )))
+ (let* (csl
+ (f (if (and running-xemacs-20 (featurep 'mule))
+ (progn
+ (setq csl (coding-system-list))
+ (function
+ (lambda (a cell)
+ (if (memq (cdr cell) csl)
+ (cons cell a)
+ a))))
+ (function
+ (lambda (a cell)
+ (let ((sym (symbol-concat "*" (cdr cell) "*")))
+ (if (boundp sym)
+ (cons (cons (car cell) (symbol-value sym)) a)
+ a))))
+ )))
+ (foldr f nil
+ '(("ISO-2022-JP" . junet)
+ ("ISO-2022-KR" . iso-2022-kr)
+ ("EUC-KR" . euc-kr)
+ ("ISO-8859-1" . ctext)
+ ("ISO-8859-2" . iso-8859-2)
+ ("ISO-8859-3" . iso-8859-3)
+ ("ISO-8859-4" . iso-8859-4)
+ ("ISO-8859-5" . iso-8859-5)
+ ("KOI8-R" . koi8)
+ ("ISO-8859-7" . iso-8859-7)
+ ("ISO-8859-8" . iso-8859-8)
+ ("ISO-8859-9" . iso-8859-9)
+ ("ISO-2022-JP-2" . iso-2022-ss2-7)
+ ("X-ISO-2022-JP-2" . iso-2022-ss2-7)
+ ("ISO-2022-INT-1" . iso-2022-int-1)
+ ("SHIFT_JIS" . sjis)
+ ("X-SHIFTJIS" . sjis)
+ ("BIG5" . big5)
+ ))))
(defvar mime/default-coding-system *ctext*)
(defun mime/convert-string-to-emacs (str charset)
(let ((cs (assoc charset mime/charset-coding-system-alist)))
(if cs
- (code-convert-string str (cdr cs) *internal*)
+ (decode-coding-string str (cdr cs))
)))
(defun mime/convert-string-from-emacs (str charset)
(let ((cs (assoc charset mime/charset-coding-system-alist)))
(if cs
- (code-convert-string str *internal* (cdr cs))
+ (encode-coding-string str (cdr cs))
)))
(defun mime/code-convert-region-to-emacs (beg end charset &optional encoding)
(cdr (assoc (upcase charset) mime/charset-coding-system-alist))
mime/default-coding-system)))
(if ct
- (code-convert-region beg end ct *internal*)
+ (decode-coding-region beg end ct)
)))
(defun mime/code-convert-region-from-emacs (beg end charset &optional encoding)
(cdr (assoc (upcase charset) mime/charset-coding-system-alist))
mime/default-coding-system)))
(if ct
- (code-convert-region beg end *internal* ct)
+ (encode-coding-region beg end ct)
)))
;;; MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Created: 1994/08/21 renamed from mime.el
-;;; Version: $Revision: 7.52 $
+;;; Version: $Revision: 7.53 $
;;; Keywords: mail, news, MIME, multimedia, multilingual
;;;
;;; This file is part of tm (Tools for MIME).
;;;
(defconst mime-editor/RCS-ID
- "$Id: tm-edit.el,v 7.52 1996/04/19 13:40:55 shuhei-k Exp $")
+ "$Id: tm-edit.el,v 7.53 1996/04/29 01:52:53 morioka Exp $")
(defconst mime-editor/version (get-version-string mime-editor/RCS-ID))
(if charset
(mime/code-convert-region-to-emacs
(point-min) (point-max) charset)
- (code-convert-region
+ (decode-coding-region
(point-min) (point-max)
- mime/default-coding-system *internal*)
+ mime/default-coding-system)
))
(and str
(setq pstr (concat pstr "\n" str))
))
))))
(if code-conversion
- (code-convert-region (point-min) (point-max)
- mime/default-coding-system *internal*)
+ (decode-coding-region (point-min) (point-max)
+ mime/default-coding-system)
)
))))
;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Created: 1995/12/7
;;; Version:
-;;; $Id: tm-pgp.el,v 7.10 1996/02/03 00:56:20 morioka Exp $
+;;; $Id: tm-pgp.el,v 7.13 1996/04/27 15:11:21 morioka Exp $
;;; Keywords: mail, news, MIME, multimedia, PGP, security
;;;
;;; This file is part of tm (Tools for MIME).
(cur-buf (current-buffer))
(new-name (format "%s-%s" (buffer-name) cnum))
(mother mime::article/preview-buffer)
- (code-converter (function mime-viewer/default-code-convert-region))
- str)
+ (mode major-mode)
+ code-converter str)
(setq str (buffer-substring beg end))
(switch-to-buffer new-name)
(erase-buffer)
(while (re-search-forward "^- -" nil t)
(replace-match "-")
)
+ (setq code-converter
+ (or
+ (cdr (assq mode mime-viewer/code-converter-alist))
+ (function mime-viewer/default-code-convert-region)))
)
((progn
(goto-char (point-min))
(re-search-forward "^-+BEGIN PGP MESSAGE-+$" nil t)
)
- (mc-decrypt)
+ (let ((program-coding-system-alist
+ (if (boundp 'program-coding-system-alist)
+ (cons '((nil . ".*pgp.*") *noconv* . *noconv*)
+ program-coding-system-alist))
+ ))
+ (mc-decrypt)
+ )
(goto-char (point-min))
(delete-region (point-min)
(and
(search-forward "\n\n")
(match-end 0)))
+ (setq code-converter (function mime/code-convert-region-to-emacs))
))
(setq major-mode 'mime/show-message-mode)
(setq mime::article/code-converter code-converter)
;;; modified by Steven L. Baur <steve@miranova.com>
;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Created: 1994/7/13 (1994/8/31 obsolete tm-body.el)
-;;; Version: $Revision: 7.54 $
+;;; Version: $Revision: 7.56 $
;;; Keywords: mail, news, MIME, multimedia
;;;
;;; This file is part of tm (Tools for MIME).
;;;
(defconst mime-viewer/RCS-ID
- "$Id: tm-view.el,v 7.54 1996/04/25 22:43:33 morioka Exp $")
+ "$Id: tm-view.el,v 7.56 1996/04/29 02:29:21 morioka Exp $")
(defconst mime-viewer/version (get-version-string mime-viewer/RCS-ID))
(defconst mime/viewer-version mime-viewer/version)
ret))
(defun mime-viewer/make-preview-buffer (&optional obuf)
- (let ((cinfo mime::article/content-info)
- (the-buf (current-buffer))
- (mode major-mode)
- pcl dest)
+ (let* ((cinfo mime::article/content-info)
+ (pcl (mime/flatten-content-info cinfo))
+ (dest (make-list (length pcl) nil))
+ (the-buf (current-buffer))
+ (mode major-mode)
+ )
(or obuf
- (setq obuf (concat "*Preview-" (buffer-name the-buf) "*"))
- )
- (setq pcl (mime/flatten-content-info cinfo))
- (let ((bf (get-buffer obuf)))
- (if bf
- (progn
- (set-buffer obuf)
- (setq buffer-read-only nil)
- (erase-buffer)
- )
- (setq bf (get-buffer-create obuf))
- (set-buffer obuf)
- ))
+ (setq obuf (concat "*Preview-" (buffer-name the-buf) "*")))
+ (set-buffer (get-buffer-create obuf))
+ (erase-buffer)
(setq mime::preview/article-buffer the-buf)
(setq mime::preview/original-major-mode mode)
(setq major-mode 'mime/viewer-mode)
(setq mode-name "MIME-View")
- (while pcl
- (setq dest
- (cons (mime-viewer/display-content (car pcl) cinfo the-buf obuf)
- dest)
- pcl (cdr pcl))
- )
+ (let ((drest dest))
+ (while pcl
+ (setcar drest
+ (mime-preview/display-content (car pcl) cinfo the-buf obuf))
+ (setq pcl (cdr pcl)
+ drest (cdr drest))
+ ))
(set-buffer-modified-p nil)
(setq buffer-read-only t)
(set-buffer the-buf)
- (list obuf (nreverse dest))
+ (list obuf dest)
))
-(defun mime-viewer/display-content (content cinfo ibuf obuf)
+(defun mime-preview/display-content (content cinfo ibuf obuf)
(let* ((beg (mime::content-info/point-min content))
(end (mime::content-info/point-max content))
(ctype (mime::content-info/type content))