X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=gnus%2Ftm-gnus.el;h=9a7c9df8c897d79bf0a3956186cc8d47b46bf70d;hb=fe8761fcfaa18799752717f6b39c95304e1e6192;hp=08f5762e26c4c39a6454b61f274975c7c84e6b37;hpb=512f3ae410a64c797aee755730d693750b232e6c;p=elisp%2Ftm.git diff --git a/gnus/tm-gnus.el b/gnus/tm-gnus.el index 08f5762..9a7c9df 100644 --- a/gnus/tm-gnus.el +++ b/gnus/tm-gnus.el @@ -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 +;;; modified by Shuhei KOBAYASHI +;;; Maintainer: MORIOKA Tomohiko +;;; and Shuhei KOBAYASHI +;;; 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