1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 03:20:39 -08:00

(Fgoto_char): If POSITION is a marker pointing a

different buffer, don't rely on the byte position of the marker.
This commit is contained in:
Richard M. Stallman 1998-03-20 05:00:31 +00:00
parent 25c9e7fbd7
commit 72ef82ec68

View 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)