]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fgoto_char): If POSITION is a marker pointing a
authorRichard M. Stallman <rms@gnu.org>
Fri, 20 Mar 1998 05:00:31 +0000 (05:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 20 Mar 1998 05:00:31 +0000 (05:00 +0000)
different buffer, don't rely on the byte position of the marker.

src/editfns.c

index d5b204e6923bb357d3883b64c02bcde4eac28529..1a72bf02929edb89c81689cbe5c1845e4becd023 100644 (file)
@@ -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)