diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-01-19 19:32:47 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-01-19 19:32:47 +0000 |
commit | 31f8ab72fb4fb6c13bca39a3adb5b05b92dccebb (patch) | |
tree | e9135624fc16616190026679f85c2336802347c2 /src/marker.c | |
parent | 37f26f3c5a7de8a1b82b9678c77936f138c01308 (diff) | |
download | emacs-31f8ab72fb4fb6c13bca39a3adb5b05b92dccebb.tar.gz |
(clear_charpos_cache): New function.
Diffstat (limited to 'src/marker.c')
-rw-r--r-- | src/marker.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/marker.c b/src/marker.c index 7d601eea70f..e68245db9ec 100644 --- a/src/marker.c +++ b/src/marker.c @@ -31,6 +31,13 @@ static int cached_charpos; static int cached_bytepos; static struct buffer *cached_buffer; static int cached_modiff; + +clear_charpos_cache (b) + struct buffer *b; +{ + if (cached_buffer == b) + cached_buffer = 0; +} /* Converting between character positions and byte positions. */ |