;;; ;;; tm-gnus.el --- MIME extension for GNUS ;;; ;;; Copyright (C) 1995 Free Software Foundation, Inc. ;;; Copyright (C) 1993,1994,1995 MORIOKA Tomohiko ;;; ;;; Author: MORIOKA Tomohiko ;;; modified by KOBAYASHI Shuhei ;;; Maintainer: MORIOKA Tomohiko ;;; Created: 1993/11/20 (obsolete mol's gnus-mime.el) ;;; Version: ;;; $Id: tm-gnus.el,v 7.13 1995/12/08 22:35:14 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. (require 'gnus) ;;; @ variables ;;; (defvar tm-gnus/startup-hook nil) ;;; @ set up ;;; (cond ((boundp 'gnus-original-article-buffer) ;; for September Gnus and Gnus 5.2 .. (require 'tm-sgnus) ) ((or (string-match "^\\((ding) Gnus\\|Gnus v5\\|September Gnus\\)" gnus-version) (fboundp 'mail-header-from)) ;; for Gnus 5.0 .. 5.1.* (require 'tm-gd5) (require 'tm-gnus4) ) ((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)) ) ((string-match "^GNUS 3" gnus-version) ;; for GNUS 3.14.* (require 'tm-gnus3) (defvar gnus-article-buffer gnus-Article-buffer) )) ;;; @ for tm-edit ;;; ;; suggested by OKABE Yasuo ;; 1995/11/08 (c.f. [tm ML:1067]) (defun tm-gnus/insert-article (&optional message) (interactive) (let (;; for Emacs 19 (mail-citation-hook '(mime-editor/inserted-message-filter)) news-reply-header-hook mail-yank-hooks ;; for Emacs 18 (mail-yank-ignored-headers mime-editor/yank-ignored-field-regexp) (news-make-reply-yank-header (function (lambda (message-id from) "") )) (news-yank-original-quoting-indicator "") ;; select raw article buffer (mail-reply-buffer (save-excursion (set-buffer gnus-article-buffer) (if (eq major-mode 'mime/viewer-mode) mime::preview/article-buffer gnus-article-buffer))) ) (news-reply-yank-original 0) )) ;;; modified by Steven L. Baur ;;; 1995/12/6 (c.f. [tm-en:209]) (defun mime-editor/attach-to-news-reply-menu () "Arrange to attach MIME editor's popup menu to VM's" (if (boundp 'news-reply-menu) (progn (setq news-reply-menu (append news-reply-menu '("---") mime-editor/popup-menu-for-xemacs)) (remove-hook 'news-setup-hook 'mime-editor/attach-to-news-reply-menu) ))) (call-after-loaded 'tm-edit (function (lambda () (set-alist 'mime-editor/message-inserter-alist 'news-reply-mode (function tm-gnus/insert-article)) (autoload 'tm-mail/insert-message "tm-mail") (set-alist 'mime-editor/message-inserter-alist 'mail-mode (function tm-mail/insert-message)) (if (string-match "XEmacs\\|Lucid" emacs-version) (add-hook 'news-setup-hook 'mime-editor/attach-to-news-reply-menu) ) ))) ;;; @ end ;;; (provide 'tm-gnus) (run-hooks 'tm-gnus-load-hook)