Commit 72ef82ec authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fgoto_char): If POSITION is a marker pointing a

different buffer, don't rely on the byte position of the marker.
parent 25c9e7fb
...@@ -203,7 +203,8 @@ except in the case that `enable-multibyte-characters' is nil.") ...@@ -203,7 +203,8 @@ except in the case that `enable-multibyte-characters' is nil.")
int pos; int pos;
unsigned char *p; unsigned char *p;
if (MARKERP (position)) if (MARKERP (position)
&& current_buffer == XMARKER (position)->buffer)
{ {
pos = marker_position (position); pos = marker_position (position);
if (pos < BEGV) if (pos < BEGV)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment