From xemacs-m  Wed Feb  5 06:28:34 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 GAA26488
	for <xemacs-beta@xemacs.org>; Wed, 5 Feb 1997 06:28:33 -0600 (CST)
Received: from lspsun16.epfl.ch by sicmail.epfl.ch with SMTP (PP);
          Wed, 5 Feb 1997 13:24:38 +0100
Received: by lspsun16.epfl.ch (5.x/Epfl-4.9-c/MX) id AA12764;
          Wed, 5 Feb 1997 13:26:24 +0100
Date: Wed, 5 Feb 1997 13:26:24 +0100
Message-Id: <9702051226.AA12764@lspsun16.epfl.ch>
From: Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
To: xemacs-beta@xemacs.org
Subject: Re: XEmacs 20.0 w/ MULE enables TM
In-Reply-To: <199702051152.UAA02645@mikan.jaist.ac.jp>
References: <9702050806.AA12414@lspsun16.epfl.ch> <199702051152.UAA02645@mikan.jaist.ac.jp>
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

>>>>> "Tomohiko" == MORIOKA Tomohiko <ISO-2022-JP> writes:

  Tomohiko> [1  <text/plain; ISO-8859-1 (quoted-printable)>]
>>>>> In <9702050806.AA12414@lspsun16.epfl.ch> 
  >>>>>> "Oscar" = Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch> wrote:

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

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

  Tomohiko>   I think it should delete for VM.  However it is not only
  Tomohiko> for VM but also for RMAIL.  

That's the reason why I propose the add-hooks be moved from
mime-setup.el into tm-vm.el AND into tm-rmail.el (and possibly into
tm-mh-e.el also if it uses the same hooks).

  Tomohiko> I think mail-setup-hook or mail-send-hook is originally
  Tomohiko> for mail-mode (RMAIL), not for VM.  If possible, please
  Tomohiko> separate variable between VM and RMAIL.

There is no need for that. VM uses mail-mode for sending mail, there is
no need for another set of variables (we already have two if we
consider message.el)

  Tomohiko>   Maybe current realistic choice is:

  Tomohiko> (if running-xemacs-with-mule
  Tomohiko>     (progn
  Tomohiko>       (add-hook 'mail-setup-hook 'mime/decode-message-header)
  Tomohiko>       (add-hook 'mail-setup-hook 'mime/editor-mode 'append)
  Tomohiko>       (add-hook 'mail-send-hook  'mime-editor/maybe-translate)
  Tomohiko>       ))

The fact that we should install the hooks or not has little to do with
the fact that we are running MULE or not. I don't think this is a good
solution, I would much prefer to move the add-hooks into the
appropriate tm-MUAs extenders.

Oscar

