changeset 21226:c8d0df2cbd3d

(Fgoto_char): If POSITION is a marker pointing a different buffer, don't rely on the byte position of the marker.
author Richard M. Stallman <rms@gnu.org>
date Fri, 20 Mar 1998 05:00:31 +0000
parents 47e189a470d2
children be147fbd56f1
files src/editfns.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Fri Mar 20 04:59:15 1998 +0000
+++ b/src/editfns.c	Fri Mar 20 05:00:31 1998 +0000
@@ -203,7 +203,8 @@
   int pos;
   unsigned char *p;
 
-  if (MARKERP (position))
+  if (MARKERP (position)
+      && current_buffer == XMARKER (position)->buffer)
     {
       pos = marker_position (position);
       if (pos < BEGV)