comparison src/ChangeLog @ 1296:87084e8445a7

[xemacs-hg @ 2003-02-14 09:50:15 by ben] syntax-table fixes 1. the updating of mirror tables every time a syntax table was modified was taking up huge amounts of time so i added a dirty flag and made the updating "just-in-time". 2. no-longer-used char-table-entries were not getting "freed", generating tons of garbage. 3. syntax_match() was being incorrectly called on mirror tables in the cache, not the original syntax table. buffer.c, syntax.c: Move syntax table description from buffer.c to syntax.c. chartab.c, chartab.h: Free extra char table entries to avoid excessive garbage. Add flags for dirty and mirror_table_p to char tables. Add a back pointer from mirror tables to the original syntax table. When modifying a syntax table, don't update the mirror table right away, just mark as dirty. Add various asserts to make sure we are dealing with the right type of table (mirror or non-mirror). font-lock.c, syntax.c, syntax.h: Add entry to syntax caches for the non-mirror table. Set it appropriately when initializing the syntax table. Use it, not the mirror table, for calls to syntax_match(). Don't create a bogus float each time, just once at startup. Add some asserts, as in chartab.c. syntax.h: When retrieving the syntax code, check the dirty flag and update the mirror tables as appropriate. Add some asserts, as above.
author ben
date Fri, 14 Feb 2003 09:50:17 +0000
parents 064ef1d07d63
children f99d3d25df86
comparison
equal deleted inserted replaced
1295:064ef1d07d63 1296:87084e8445a7
1 2003-02-14 Ben Wing <ben@xemacs.org>
2
3 * buffer.c:
4 * syntax.c:
5 Move syntax table description from buffer.c to syntax.c.
6
7 * chartab.c:
8 * chartab.c (set_char_table_dirty):
9 * chartab.c (fill_char_table):
10 * chartab.c (Fmake_char_table):
11 * chartab.c (Fcopy_char_table):
12 * chartab.c (get_range_char_table_1):
13 * chartab.c (get_range_char_table):
14 * chartab.c (put_char_table):
15 * chartab.h:
16 * chartab.h (struct Lisp_Char_Table):
17 Free extra char table entries to avoid excessive garbage.
18 Add flags for dirty and mirror_table_p to char tables.
19 Add a back pointer from mirror tables to the original syntax table.
20 When modifying a syntax table, don't update the mirror table right
21 away, just mark as dirty.
22 Add various asserts to make sure we are dealing with the right type
23 of table (mirror or non-mirror).
24
25 * font-lock.c:
26 * font-lock.c (find_context):
27 * syntax.c (init_syntax_cache):
28 * syntax.c (setup_syntax_cache):
29 * syntax.c (mark_buffer_syntax_cache):
30 * syntax.c (init_buffer_syntax_cache):
31 * syntax.c (syntax_cache_table_was_changed):
32 * syntax.c (update_syntax_cache):
33 * syntax.c (scan_lists):
34 * syntax.c (scan_sexps_forward):
35 * syntax.c (copy_if_not_already_present):
36 * syntax.c (update_just_this_syntax_table):
37 * syntax.c (update_syntax_table):
38 * syntax.c (vars_of_syntax):
39 * syntax.h:
40 * syntax.h (struct syntax_cache):
41 Add entry to syntax caches for the non-mirror table. Set it
42 appropriately when initializing the syntax table. Use it, not
43 the mirror table, for calls to syntax_match().
44 Don't create a bogus float each time, just once at startup.
45 Add some asserts, as in chartab.c.
46
47 * syntax.h (SYNTAX_CODE_FROM_CACHE):
48 When retrieving the syntax code, check the dirty flag and update
49 the mirror tables as appropriate.
50 Add some asserts, as above.
51
1 2003-02-14 Ben Wing <ben@xemacs.org> 52 2003-02-14 Ben Wing <ben@xemacs.org>
2 53
3 * scrollbar.c (specifier_vars_of_scrollbar): 54 * scrollbar.c (specifier_vars_of_scrollbar):
4 Don't generate fallbacks for TTY's when not HAVE_TTY. 55 Don't generate fallbacks for TTY's when not HAVE_TTY.
5 56