aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-19 19:32:47 +0000
committerRichard M. Stallman1998-01-19 19:32:47 +0000
commit31f8ab72fb4fb6c13bca39a3adb5b05b92dccebb (patch)
treee9135624fc16616190026679f85c2336802347c2 /src
parent37f26f3c5a7de8a1b82b9678c77936f138c01308 (diff)
downloademacs-31f8ab72fb4fb6c13bca39a3adb5b05b92dccebb.tar.gz
emacs-31f8ab72fb4fb6c13bca39a3adb5b05b92dccebb.zip
(clear_charpos_cache): New function.
Diffstat (limited to 'src')
-rw-r--r--src/marker.c7
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;
31static int cached_bytepos; 31static int cached_bytepos;
32static struct buffer *cached_buffer; 32static struct buffer *cached_buffer;
33static int cached_modiff; 33static int cached_modiff;
34
35clear_charpos_cache (b)
36 struct buffer *b;
37{
38 if (cached_buffer == b)
39 cached_buffer = 0;
40}
34 41
35/* Converting between character positions and byte positions. */ 42/* Converting between character positions and byte positions. */
36 43