2 ;;; tm-gnus.el --- MIME extension for GNUS
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1993 .. 1996 MORIOKA Tomohiko
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)
13 ;;; $Id: tm-gnus.el,v 7.24 1996/08/06 12:09:13 morioka Exp $
14 ;;; Keywords: news, MIME, multimedia, encoded-word, multilingual
16 ;;; This file is part of tm (Tools for MIME).
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.
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.
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.
32 ;;; Commentary: Notice that this module is only for GNUS, not for Gnus.
42 (defvar tm-gnus/startup-hook nil)
48 (cond ((fboundp 'gnus-article-prepare)
49 ;; for GNUS 3.15 .. 4.*
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))
56 (or (fboundp 'tm:gnus-article-delete-headers)
57 (fset 'tm:gnus-article-delete-headers
58 (symbol-function 'gnus-article-delete-headers))
60 (defun gnus-article-delete-headers ()
61 (or tm-gnus/automatic-mime-preview
62 (tm:gnus-article-delete-headers)
66 (or (fboundp 'tm-gnus/original-news-reply)
67 (fset 'tm-gnus/original-news-reply
68 (symbol-function 'gnus-news-reply))
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)
75 (tm-gnus/original-news-reply yank)
78 ((string-match "^GNUS 3" gnus-version)
81 (defvar gnus-article-buffer gnus-Article-buffer)
90 (run-hooks 'tm-gnus-load-hook)
92 ;;; tm-gnus.el ends here