aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index fb776ae77ee..9836ecc4db0 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -411,6 +411,10 @@ The value is never nil. */)
411 reset_buffer (b); 411 reset_buffer (b);
412 reset_buffer_local_variables (b, 1); 412 reset_buffer_local_variables (b, 1);
413 413
414 b->mark = Fmake_marker ();
415 BUF_MARKERS (b) = Qnil;
416 b->name = name;
417
414 /* Put this in the alist of all live buffers. */ 418 /* Put this in the alist of all live buffers. */
415 XSETBUFFER (buf, b); 419 XSETBUFFER (buf, b);
416 Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); 420 Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil));
@@ -421,9 +425,6 @@ The value is never nil. */)
421 /* buff is on buffer-alist, so no gcpro */ 425 /* buff is on buffer-alist, so no gcpro */
422 call1 (Qucs_set_table_for_input, buf); 426 call1 (Qucs_set_table_for_input, buf);
423 427
424 b->mark = Fmake_marker ();
425 BUF_MARKERS (b) = Qnil;
426 b->name = name;
427 return buf; 428 return buf;
428} 429}
429 430