From: Stefan Monnier Date: Sat, 25 Feb 2006 16:49:00 +0000 (+0000) Subject: (Fmake_network_process): Init the process's mark. X-Git-Tag: emacs-pretest-22.0.90~3903 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f523e0c3c54c135e24284fe90d8e67120612ff99;p=emacs.git (Fmake_network_process): Init the process's mark. --- 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) {