changeset 69151:08c9c1760e1c

(Fmake_network_process): Init the process's mark.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 25 Feb 2006 16:49:00 +0000
parents 088a76f85c2a
children f2147c1027b6
files src/ChangeLog src/process.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Feb 25 11:25:25 2006 +0000
+++ b/src/ChangeLog	Sat Feb 25 16:49:00 2006 +0000
@@ -1,3 +1,7 @@
+2006-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* process.c (Fmake_network_process): Init the process's mark.
+
 2006-02-25  Kim F. Storm  <storm@cua.dk>
 
 	* buffer.c (modify_overlay): Force redisplay if we modify an
--- a/src/process.c	Sat Feb 25 11:25:25 2006 +0000
+++ b/src/process.c	Sat Feb 25 16:49:00 2006 +0000
@@ -1582,7 +1582,7 @@
 #endif
 
   /* Make the process marker point into the process buffer (if any).  */
-  if (!NILP (buffer))
+  if (BUFFERP (buffer))
     set_marker_both (XPROCESS (proc)->mark, buffer,
 		     BUF_ZV (XBUFFER (buffer)),
 		     BUF_ZV_BYTE (XBUFFER (buffer)));
@@ -3355,6 +3355,12 @@
   if (is_server && socktype == SOCK_STREAM)
     p->status = Qlisten;
 
+  /* Make the process marker point into the process buffer (if any).  */
+  if (BUFFERP (buffer))
+    set_marker_both (p->mark, buffer,
+		     BUF_ZV (XBUFFER (buffer)),
+		     BUF_ZV_BYTE (XBUFFER (buffer)));
+
 #ifdef NON_BLOCKING_CONNECT
   if (is_non_blocking_client)
     {