This commit was generated by cvs2svn to compensate for changes in r542,
[elisp/tm.git] / gnus / tm-gnus.el
index 08f5762..9a7c9df 100644 (file)
@@ -1,30 +1,92 @@
 ;;;
-;;;   A MIME extension for GNUS
+;;; tm-gnus.el --- MIME extension for GNUS
 ;;;
-;;; by Morioka Tomohiko, 1993/11/20
+;;; Copyright (C) 1995 Free Software Foundation, Inc.
+;;; Copyright (C) 1993 .. 1996 MORIOKA Tomohiko
 ;;;
-;;; $Id: tm-gnus.el,v 6.1 1995/05/31 04:38:12 morioka Exp $
+;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
+;;; modified by Shuhei KOBAYASHI <shuhei@cmpt01.phys.tohoku.ac.jp>
+;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
+;;;         and Shuhei KOBAYASHI <shuhei-k@jaist.ac.jp>
+;;; Created: 1993/11/20 (obsolete mol's gnus-mime.el)
+;;; Version:
+;;;    $Id: tm-gnus.el,v 7.24 1996/08/06 12:09:13 morioka Exp $
+;;; Keywords: news, MIME, multimedia, encoded-word, multilingual
 ;;;
+;;; 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.
+;;;
+;;; Commentary: Notice that this module is only for GNUS, not for Gnus.
+;;;
+;;; Code:
 
 (require 'gnus)
 
+
 ;;; @ variables
 ;;;
+
 (defvar tm-gnus/startup-hook nil)
 
 
 ;;; @ set up
 ;;;
-(cond ((string-match "^GNUS [0-3]" gnus-version)
-       (require 'tm-gnus3)
-       )
-      ((string-match "^GNUS 4" gnus-version)
+
+(cond ((fboundp 'gnus-article-prepare)
+       ;; for GNUS 3.15 .. 4.*
+       (require 'tm-gd3)
        (require 'tm-gnus4)
+       (add-hook 'gnus-select-group-hook 'tm-gnus/decode-summary-subjects)
+       (fset 'gnus-article-set-mode-line
+            (function tm-gnus/article-set-mode-line))
+       
+       (or (fboundp 'tm:gnus-article-delete-headers)
+          (fset 'tm:gnus-article-delete-headers
+                (symbol-function 'gnus-article-delete-headers))
+          )
+       (defun gnus-article-delete-headers ()
+        (or tm-gnus/automatic-mime-preview
+            (tm:gnus-article-delete-headers)
+            ))
+       
+       (require 'gnuspost)
+       (or (fboundp 'tm-gnus/original-news-reply)
+          (fset 'tm-gnus/original-news-reply
+                (symbol-function 'gnus-news-reply))
+          )
+       (defun gnus-news-reply (&optional yank)
+        (if (eq major-mode 'mime/viewer-mode)
+            (let ((major-mode 'gnus-article-mode))
+              (tm-gnus/original-news-reply yank)
+              )
+          (tm-gnus/original-news-reply yank)
+          ))
        )
-      ((string-match "(ding)" gnus-version)
-       (require 'tm-dgnus)
+      ((string-match "^GNUS 3" gnus-version)
+       ;; for GNUS 3.14.*
+       (require 'tm-gnus3)
+       (defvar gnus-article-buffer gnus-Article-buffer)
        ))
 
-(run-hooks 'tm-gnus/startup-hook)
+
+;;; @ end
+;;;
 
 (provide 'tm-gnus)
+
+(run-hooks 'tm-gnus-load-hook)
+
+;;; tm-gnus.el ends here