From xemacs-m  Wed Feb  5 02:07:06 1997
Received: from sicmail.epfl.ch (sicmail.epfl.ch [128.178.50.31])
	by xemacs.org (8.8.5/8.8.5) with SMTP id CAA24866
	for <xemacs-beta@xemacs.org>; Wed, 5 Feb 1997 02:07:05 -0600 (CST)
Received: from lspsun16.epfl.ch by sicmail.epfl.ch with SMTP (PP);
          Wed, 5 Feb 1997 09:05:04 +0100
Received: by lspsun16.epfl.ch (5.x/Epfl-4.9-c/MX) id AA12414;
          Wed, 5 Feb 1997 09:06:49 +0100
Date: Wed, 5 Feb 1997 09:06:49 +0100
Message-Id: <9702050806.AA12414@lspsun16.epfl.ch>
From: Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
To: xemacs-beta@xemacs.org
Cc: Tomohiko Morioka <morioka@jaist.ac.jp>
Subject: Re: XEmacs 20.0 w/ MULE enables TM
In-Reply-To: <m2bua0f28o.fsf@altair.xemacs.org>
References: <199702042330.PAA28471@roy> <m2raiwf4qu.fsf@altair.xemacs.org> <QQcbmz05130.199702050126@crystal.WonderWorks.COM> <m2bua0f28o.fsf@altair.xemacs.org>
X-Attribution: Oscar
X-Face: &f0TVPZirOQ$"C[5pZkDY(1~+M1p0&edTtJPL-*?u$b(vr<1m?~iZBqp2YoDS[IyxDHV<MN 
        x;/;<I]H;2OOZd:+cj^}L-,Hixp!@].>U~)KHl|Kpm"='5OF?vT]k_HQ1]|^}Pm>,;+]iJCt_-Y[S\ 
        EpwT);2R8#[4dt8~*}&#3$6xI4jNZM9lVHua'vIM[PEx*#cgxCVruf1zN0}
X-Mailer: ViewMail (vm) Version 6.11 with Emacs 19.14 XEmacs Lucid
Mime-Version: 1.0 (generated by tm-edit 7.102)
Content-Type: text/plain; charset=US-ASCII

>>>>> "Steven" == Steven L Baur <steve@miranova.com> writes:

  Steven> Kyle Jones writes:
  >> Steven L. Baur writes [about TM being dumped in XEmacs]:

  >>> It is a feature only when you have SunPro enabled.  Otherwise it is
  >>> not dumped.

  >> O boy.  Is there some recommended way for VM to detect this, so I
  >> can avoid a slew of bug reports?

  Steven> How about:
  Steven> (and (featurep 'sunpro)
  Steven>      (featurep 'mime-setup))

  >> I really, really don't want to make VM aggressively remove TM hooks
  >> when vm-send-using-mime is set non-nil, but I may have to in
  >> self-defense.  Either that or make VM bitch unceasingly about it.
  >> Because when it bombs, _I_ am going to get the bug reports.

I agree with Kyle. Given the current state of development, I think
that TM should insinuate into VM only upon explicit user request. My
suggestion to Tomohiko is thus to move the lines:

(add-hook 'mail-setup-hook 'mime/decode-message-header)
(add-hook 'mail-setup-hook 'mime/editor-mode 'append)
(add-hook 'mail-send-hook  'mime-editor/maybe-translate)
(set-alist 'mime-editor/split-message-sender-alist
           'mail-mode (function
                       (lambda ()
                         (interactive)
                         (funcall send-mail-function)
                         )))

from mime-setup.el to the various tm-MUA extenders that need it. Thus
mime-setup could still be dumped into XEmacs without interaction with
VM. Users who would want to use to TM in VM for a more complete MIME
support than the one currently provided natively by VM would simply
need to add (require 'tm-vm) to their .vm

Oscar

-- 
                   _____
    _             / ___ \  Oscar Figueiredo: EPFL / DI-LSP
   / \_____      / /\_/ /\                   CH 1015 Lausanne - Switzerland
  /  _   _ \    / _____/ / Tel:+(41)(21) 693 2039    Fax:+(41)(21) 693 6680
 / / / / / /\  / /\____\/         WWW: http://diwww.epfl.ch/~figueire/
/_/ /_/ /_/ / /_/ /        Quote: "What's the best way to accelerate a PC ?
\_\/\_\/\_\/  \_\/                          ... 9.81 m/s/s"

