This commit was generated by cvs2svn to compensate for changes in r542,
[elisp/tm.git] / gnus / tm-gnus.el
1 ;;;
2 ;;; tm-gnus.el --- MIME extension for GNUS
3 ;;;
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1993 .. 1996 MORIOKA Tomohiko
6 ;;;
7 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
8 ;;; modified by Shuhei KOBAYASHI <shuhei@cmpt01.phys.tohoku.ac.jp>
9 ;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
10 ;;;         and Shuhei KOBAYASHI <shuhei-k@jaist.ac.jp>
11 ;;; Created: 1993/11/20 (obsolete mol's gnus-mime.el)
12 ;;; Version:
13 ;;;     $Id: tm-gnus.el,v 7.24 1996/08/06 12:09:13 morioka Exp $
14 ;;; Keywords: news, MIME, multimedia, encoded-word, multilingual
15 ;;;
16 ;;; This file is part of tm (Tools for MIME).
17 ;;;
18 ;;; This program is free software; you can redistribute it and/or
19 ;;; modify it under the terms of the GNU General Public License as
20 ;;; published by the Free Software Foundation; either version 2, or
21 ;;; (at your option) any later version.
22 ;;;
23 ;;; This program is distributed in the hope that it will be useful,
24 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
26 ;;; General Public License for more details.
27 ;;;
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with This program.  If not, write to the Free Software
30 ;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
31 ;;;
32 ;;; Commentary: Notice that this module is only for GNUS, not for Gnus.
33 ;;;
34 ;;; Code:
35
36 (require 'gnus)
37
38
39 ;;; @ variables
40 ;;;
41
42 (defvar tm-gnus/startup-hook nil)
43
44
45 ;;; @ set up
46 ;;;
47
48 (cond ((fboundp 'gnus-article-prepare)
49        ;; for GNUS 3.15 .. 4.*
50        (require 'tm-gd3)
51        (require 'tm-gnus4)
52        (add-hook 'gnus-select-group-hook 'tm-gnus/decode-summary-subjects)
53        (fset 'gnus-article-set-mode-line
54              (function tm-gnus/article-set-mode-line))
55        
56        (or (fboundp 'tm:gnus-article-delete-headers)
57            (fset 'tm:gnus-article-delete-headers
58                  (symbol-function 'gnus-article-delete-headers))
59            )
60        (defun gnus-article-delete-headers ()
61          (or tm-gnus/automatic-mime-preview
62              (tm:gnus-article-delete-headers)
63              ))
64        
65        (require 'gnuspost)
66        (or (fboundp 'tm-gnus/original-news-reply)
67            (fset 'tm-gnus/original-news-reply
68                  (symbol-function 'gnus-news-reply))
69            )
70        (defun gnus-news-reply (&optional yank)
71          (if (eq major-mode 'mime/viewer-mode)
72              (let ((major-mode 'gnus-article-mode))
73                (tm-gnus/original-news-reply yank)
74                )
75            (tm-gnus/original-news-reply yank)
76            ))
77        )
78       ((string-match "^GNUS 3" gnus-version)
79        ;; for GNUS 3.14.*
80        (require 'tm-gnus3)
81        (defvar gnus-article-buffer gnus-Article-buffer)
82        ))
83
84
85 ;;; @ end
86 ;;;
87
88 (provide 'tm-gnus)
89
90 (run-hooks 'tm-gnus-load-hook)
91
92 ;;; tm-gnus.el ends here