From xemacs-m  Mon Feb 10 14:50:37 1997
Received: from mecca.spd.louisville.edu (mecca.spd.louisville.edu [136.165.40.148])
	by xemacs.org (8.8.5/8.8.5) with SMTP id OAA13405
	for <xemacs-beta@xemacs.org>; Mon, 10 Feb 1997 14:50:31 -0600 (CST)
Received: (from tjchol01@localhost) by mecca.spd.louisville.edu (950413.SGI.8.6.12/950213.SGI.AUTOCF) id PAA16176; Mon, 10 Feb 1997 15:50:33 -0500
Date: Mon, 10 Feb 1997 15:50:33 -0500
Message-Id: <199702102050.PAA16176@mecca.spd.louisville.edu>
From: "Tomasz J. Cholewo" <T.Cholewo@ieee.org>
To: xemacs-beta@xemacs.org
Subject: [patch] tm ignores vm-auto-next-message settings
Mime-Version: 1.0 (generated by tm-edit 7.101)
Content-Type: text/plain; charset=US-ASCII

Hi,

tm overrides vm-scroll-forward function but does not check the setting
of vm-auto-next-message variable.  The result is that pressing the space
bar at the end of a message goes to the next message even if this
variable is nil.  (This is for VM 5.97.)

I include two patches: for the tm bundled with 20.0 and for its current
version.

Tom

=========== CUT HERE for tm 7.101 (?) (tm-vm rev. 7.79) ==============
--- tm-vm.el.orig	Mon Feb 10 15:32:07 1997
+++ tm-vm.el	Mon Feb 10 15:24:07 1997
@@ -405,7 +405,8 @@
 	   (select-window pwin)
 	   (set-buffer pbuf)
 	   (if (pos-visible-in-window-p (point-max) pwin)
-	       (tm-vm/next-message)
+	       (if vm-auto-next-message
+		   (tm-vm/next-message))
 	     ;; not end of message. scroll preview buffer only.
 	     (scroll-up)
 	     (tm-vm/howl-if-eom)

=========== CUT HERE for tm 7.103.5 (tm-vm rev. 8.8) =================
--- tm-vm.el.orig	Mon Feb 10 15:26:19 1997
+++ tm-vm.el	Mon Feb 10 15:28:30 1997
@@ -823,7 +823,8 @@
 	 (select-window pwin)
 	 (set-buffer pbuf)
 	 (if (pos-visible-in-window-p (point-max) pwin)
-	     (vm-next-message)
+	     (if vm-auto-next-message
+		 (vm-next-message))
 	   ;; not at the end of message. scroll preview buffer only.
 	   (scroll-up)
 	   (tm-vm/howl-if-eom))

