From: Richard M. Stallman Date: Fri, 20 Mar 1998 05:00:31 +0000 (+0000) Subject: (Fgoto_char): If POSITION is a marker pointing a X-Git-Tag: emacs-20.3~1848 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=72ef82ec68f103e7c65a6dd03faaf6c8b0f106e9;p=emacs.git (Fgoto_char): If POSITION is a marker pointing a different buffer, don't rely on the byte position of the marker. --- 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)