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:
parent
25c9e7fbd7
commit
72ef82ec68
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue