2 ;;; tm-gnus.el --- MIME extension for GNUS
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1993,1994,1995 MORIOKA Tomohiko
7 ;;; Author: Morioka Tomohiko <morioka@jaist.ac.jp>
9 ;;; $Id: tm-gnus.el,v 7.5 1995/11/16 15:28:58 morioka Exp $
10 ;;; Keywords: news, MIME, multimedia, encoded-word, multilingual
12 ;;; This file is part of tm (Tools for MIME).
21 (defvar tm-gnus/startup-hook nil)
27 (cond ((boundp 'gnus-original-article-buffer)
30 ((string-match "^\\(Gnus v5\\|September Gnus\\)" gnus-version)
33 ((string-match "(ding)" gnus-version)
36 ((string-match "^GNUS 4" gnus-version)
39 ((string-match "^GNUS 3" gnus-version)
41 (defvar gnus-article-buffer gnus-Article-buffer)
47 ;; suggested by OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>
48 ;; 1995/11/08 (c.f. [tm ML:1067])
49 (defun tm-gnus/insert-article (&optional message)
52 (mail-citation-hook '(mime-editor/inserted-message-filter))
53 news-reply-header-hook
57 (mail-yank-ignored-headers mime-editor/yank-ignored-field-regexp)
58 (news-make-reply-yank-header (function
59 (lambda (message-id from) "")
61 (news-yank-original-quoting-indicator "")
63 ;; select raw article buffer
66 (set-buffer gnus-article-buffer)
67 (if (eq major-mode 'mime/viewer-mode)
68 mime::preview/article-buffer
69 gnus-article-buffer)))
71 (news-reply-yank-original 0)
79 'mime-editor/message-inserter-alist
80 'news-reply-mode (function tm-gnus/insert-article))
89 (run-hooks 'tm-gnus-load-hook)