From f523e0c3c54c135e24284fe90d8e67120612ff99 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 25 Feb 2006 16:49:00 +0000 Subject: [PATCH] (Fmake_network_process): Init the process's mark. --- src/ChangeLog | 4 ++++ src/process.c | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index a4fdadef1a8..8ea097fa118 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2006-02-25 Stefan Monnier + + * process.c (Fmake_network_process): Init the process's mark. + 2006-02-25 Kim F. Storm * buffer.c (modify_overlay): Force redisplay if we modify an diff --git a/src/process.c b/src/process.c index 5a98ee024c1..1c0b196b3cf 100644 --- a/src/process.c +++ b/src/process.c @@ -1582,7 +1582,7 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) #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 @@ usage: (make-network-process &rest ARGS) */) 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) { -- 2.39.2