aboutsummaryrefslogtreecommitdiffstats
path: root/src/marker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/marker.c')
-rw-r--r--src/marker.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/marker.c b/src/marker.c
index 91fcea5f25f..d377efbc4fa 100644
--- a/src/marker.c
+++ b/src/marker.c
@@ -455,21 +455,8 @@ attach_marker (struct Lisp_Marker *m, struct buffer *b,
455static struct buffer * 455static struct buffer *
456live_buffer (Lisp_Object buffer) 456live_buffer (Lisp_Object buffer)
457{ 457{
458 struct buffer *b; 458 struct buffer *b = decode_buffer (buffer);
459 459 return BUFFER_LIVE_P (b) ? b : NULL;
460 if (NILP (buffer))
461 {
462 b = current_buffer;
463 eassert (BUFFER_LIVE_P (b));
464 }
465 else
466 {
467 CHECK_BUFFER (buffer);
468 b = XBUFFER (buffer);
469 if (!BUFFER_LIVE_P (b))
470 b = NULL;
471 }
472 return b;
473} 460}
474 461
475/* Internal function to set MARKER in BUFFER at POSITION. Non-zero 462/* Internal function to set MARKER in BUFFER at POSITION. Non-zero