;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Created: 1995/09/24
-;;; Version: $Revision: 7.54 $
+;;; Version: $Revision: 7.55 $
;;; 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.54 1996/04/29 01:55:32 morioka Exp $")
+ "$Id: tm-sgnus.el,v 7.55 1996/05/07 18:19:39 morioka Exp $")
(defconst tm-gnus/version
(concat (get-version-string tm-gnus/RCS-ID) " for September"))
(setq gnus-decode-encoded-word-method
(function tm-gnus/article-decode-encoded-word))
-;; (if (boundp 'MULE)
-;; (progn
-;; (define-service-coding-system gnus-nntp-service nil *noconv*)
-;; (if (and (boundp 'nntp-server-process)
-;; (processp nntp-server-process)
-;; )
-;; (set-process-coding-system nntp-server-process *noconv* *noconv*)
-;; )
-;;
-;; (or (fboundp 'tm-gnus/original-request-article)
-;; (fset 'tm-gnus/original-request-article
-;; (symbol-function 'gnus-request-article))
-;; )
-;;
-;; (defun gnus-request-article (article group &optional buffer)
-;; (let ((file-coding-system-for-read *noconv*))
-;; (tm-gnus/original-request-article article group buffer)
-;; ))
-;;
-;; (defun tm-gnus/nnheader-find-file-noselect (&rest args)
-;; (let ((file-coding-system-for-read *noconv*))
-;; (apply (function find-file-noselect) args)
-;; ))
-;; (eval-after-load
-;; "nnheader"
-;; '(fset 'nnheader-find-file-noselect
-;; 'tm-gnus/nnheader-find-file-noselect)
-;; )
-;;
-;; (defun tm-gnus/nnmail-get-new-mail (&rest args)
-;; (let ((file-coding-system-for-read *noconv*))
-;; (apply (function tm-gnus/original-nnmail-get-new-mail) args)
-;; ))
-;; (eval-after-load
-;; "nnmail"
-;; '(progn (or (fboundp 'tm-gnus/original-nnmail-get-new-mail)
-;; (fset 'tm-gnus/original-nnmail-get-new-mail
-;; (symbol-function 'nnmail-get-new-mail))
-;; )
-;; (fset 'nnmail-get-new-mail 'tm-gnus/nnmail-get-new-mail)
-;; ))
-;; ))
-
;;; @ for MULE
;;;
cs))
(cond
- ((boundp 'MULE)
- (define-service-coding-system gnus-nntp-service nil *noconv*)
+ ((featurep 'mule)
+ (if (boundp 'MULE)
+ (define-service-coding-system gnus-nntp-service nil *noconv*)
+ )
(if (and (boundp 'nntp-server-process)
(processp nntp-server-process)
)
'nnheader
(lambda ()
(defun nnheader-find-file-noselect (filename &optional nowarn rawfile)
- (let ((file-coding-system-for-read '*noconv*))
+ (let ((file-coding-system-for-read *noconv*))
(find-file-noselect filename nowarn rawfile)
))
(defun nnheader-insert-raw-file-contents
(filename &optional visit beg end replace)
- (let ((file-coding-system-for-read '*noconv*))
+ (let ((file-coding-system-for-read *noconv*))
(insert-file-contents filename visit beg end replace)
))
;;(fset 'nnheader-raw-write-region 'si:write-region)
)
(add-hook 'nnmail-prepare-save-mail-hook
'tm-gnus/prepare-save-mail-function)
- ;; (add-hook 'nnmbox-prepare-save-mail-hook
- ;; 'tm-gnus/prepare-save-mail-function)
- ;; (add-hook 'nnbabyl-prepare-save-mail-hook
- ;; 'tm-gnus/prepare-save-mail-function)
- ;; (add-hook 'nnml-prepare-save-mail-hook
- ;; 'tm-gnus/prepare-save-mail-function)
- ;; (add-hook 'nnmh-prepare-save-mail-hook
- ;; 'tm-gnus/prepare-save-mail-function)
- ;; (add-hook 'nnfolder-prepare-save-mail-hook
- ;; 'tm-gnus/prepare-save-mail-function)
- (gnus-set-newsgroup-default-coding-system "alt.chinese.text" '*hz*)
- (gnus-set-newsgroup-default-coding-system "alt.chinese.text.big5" '*big5*)
- (gnus-set-newsgroup-default-coding-system "han" '*euc-kr*)
- (gnus-set-newsgroup-default-coding-system "relcom" '*koi8*)
+ (gnus-set-newsgroup-default-coding-system "alt.chinese.text" *hz*)
+ (gnus-set-newsgroup-default-coding-system "alt.chinese.text.big5" *big5*)
+ (gnus-set-newsgroup-default-coding-system "han" *euc-kr*)
+ (gnus-set-newsgroup-default-coding-system "relcom" *koi8*)
))