From 72ef82ec68f103e7c65a6dd03faaf6c8b0f106e9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 20 Mar 1998 05:00:31 +0000 Subject: [PATCH] (Fgoto_char): If POSITION is a marker pointing a different buffer, don't rely on the byte position of the marker. --- src/editfns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editfns.c b/src/editfns.c index d5b204e6923..1a72bf02929 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -203,7 +203,8 @@ except in the case that `enable-multibyte-characters' is nil.") int pos; unsigned char *p; - if (MARKERP (position)) + if (MARKERP (position) + && current_buffer == XMARKER (position)->buffer) { pos = marker_position (position); if (pos < BEGV) -- 2.39.5