Mercurial > hg > xemacs-beta
comparison src/line-number.c @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 3ecd8885ac67 |
children | b39c14581166 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
96 Qzero); | 96 Qzero); |
97 narrow_line_number_cache (b); | 97 narrow_line_number_cache (b); |
98 } | 98 } |
99 | 99 |
100 /* Flag LINE_NUMBER_BEGV (b) as dirty. Do it only if the line number | 100 /* Flag LINE_NUMBER_BEGV (b) as dirty. Do it only if the line number |
101 cache is already initialized. */ | 101 cache is already initialized. */ |
102 void | 102 void |
103 narrow_line_number_cache (struct buffer *b) | 103 narrow_line_number_cache (struct buffer *b) |
104 { | 104 { |
105 if (NILP (b->text->line_number_cache)) | 105 if (NILP (b->text->line_number_cache)) |
106 return; | 106 return; |
156 after POS without prior search. | 156 after POS without prior search. |
157 | 157 |
158 This will do nothing if the cache is uninitialized. */ | 158 This will do nothing if the cache is uninitialized. */ |
159 void | 159 void |
160 insert_invalidate_line_number_cache (struct buffer *b, Bufpos pos, | 160 insert_invalidate_line_number_cache (struct buffer *b, Bufpos pos, |
161 CONST Bufbyte *nonreloc, Bytecount length) | 161 const Bufbyte *nonreloc, Bytecount length) |
162 { | 162 { |
163 if (NILP (b->text->line_number_cache)) | 163 if (NILP (b->text->line_number_cache)) |
164 return; | 164 return; |
165 | 165 |
166 if (length > LINE_NUMBER_LARGE_STRING | 166 if (length > LINE_NUMBER_LARGE_STRING |