From xemacs-m  Thu May 22 04:36:35 1997
Received: from alk.physik.uni-erlangen.de (root@theorie3.physik.uni-erlangen.de [131.188.166.210])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id EAA01166
	for <xemacs-beta@xemacs.org>; Thu, 22 May 1997 04:36:34 -0500 (CDT)
Received: from cognac.physik.uni-erlangen.de (aoppelt@cognac.physik.uni-erlangen.de [131.188.166.201])
          by alk.physik.uni-erlangen.de (8.8.5/8.8.4) with ESMTP
	  id LAA21623 for <xemacs-beta@xemacs.org>; Thu, 22 May 1997 11:36:16 +0200
Received: (from aoppelt@localhost)
	by cognac.physik.uni-erlangen.de (8.8.5/8.8.5) id LAA14674;
	Thu, 22 May 1997 11:36:18 +0200
To: xemacs-beta@xemacs.org
Subject: Change to modes/sendmail.el breaks tm-edit
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Achim Oppelt <aoppelt@theorie3.physik.uni-erlangen.de>
Date: 22 May 1997 11:36:18 +0200
Message-ID: <ub206zc0h9.fsf@cognac.physik.uni-erlangen.de>
Lines: 41
X-Mailer: Gnus v5.4.52/XEmacs 20.3(beta1)

The following change to lisp/modes/sendmail.el (from 20.2 to 20.3b1) breaks 
tm-edit:

--- xemacs-20.2/lisp/modes/sendmail.el  Thu Apr 10 07:55:24 1997
+++ xemacs-20.3-b1/lisp/modes/sendmail.el       Sun May 18 05:39:59 1997
@@ -1005,10 +1005,8 @@
          t)
       (or soft
          (progn (goto-char end)
-                ;; #### FSF has the next two clauses reversed.
-                ;; which is correct?
-                (skip-chars-backward "\n")
-                (insert "\n" field ": ")))
+                (insert "\n" field ": ")
+                (skip-chars-backward "\n")))
       nil)))
 
 (defun mail-text ()

Trying to send a mail with 20.3b1 after loading "mime-setup" results in a
buffer looking like this
----------------------------------------------------------------------
To: aoppelt
Subject: test

Mime-Version: 1.0 (generated by tm-edit 7.106)--text follows this line--

testing ...
----------------------------------------------------------------------
and -- not surprisingly -- I get the following error message in the minibuffer:

Search failed: "^--text follows this line--$"

After reversing the above patch, tm-edit works. So it seems that XEmacs had
it right all along. :-) 

Achim
-- 
Achim Oppelt, Schwedenstr. 25, D-91080 Spardorf, Germany
aoppelt@theorie3.physik.uni-erlangen.de
Tel: +49 9131 85-8816	Tel (private): +49 9131 503693	Fax: +49 9131 503690

