diff options
| author | Richard M. Stallman | 1998-03-20 05:00:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-03-20 05:00:31 +0000 |
| commit | 72ef82ec68f103e7c65a6dd03faaf6c8b0f106e9 (patch) | |
| tree | 6b93fcebb5c726bf76cab54a491ad8fdf46e1aae /src/editfns.c | |
| parent | 25c9e7fbd77af28b66c505750e962f3465064e51 (diff) | |
| download | emacs-72ef82ec68f103e7c65a6dd03faaf6c8b0f106e9.tar.gz emacs-72ef82ec68f103e7c65a6dd03faaf6c8b0f106e9.zip | |
(Fgoto_char): If POSITION is a marker pointing a
different buffer, don't rely on the byte position of the marker.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index d5b204e6923..1a72bf02929 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -203,7 +203,8 @@ except in the case that `enable-multibyte-characters' is nil.") | |||
| 203 | int pos; | 203 | int pos; |
| 204 | unsigned char *p; | 204 | unsigned char *p; |
| 205 | 205 | ||
| 206 | if (MARKERP (position)) | 206 | if (MARKERP (position) |
| 207 | && current_buffer == XMARKER (position)->buffer) | ||
| 207 | { | 208 | { |
| 208 | pos = marker_position (position); | 209 | pos = marker_position (position); |
| 209 | if (pos < BEGV) | 210 | if (pos < BEGV) |