aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/casefiddle.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/casefiddle.c b/src/casefiddle.c
index a630025fa19..1e3856100a0 100644
--- a/src/casefiddle.c
+++ b/src/casefiddle.c
@@ -35,6 +35,10 @@ casify_object (flag, obj)
35 register int i, c, len; 35 register int i, c, len;
36 register int inword = flag == CASE_DOWN; 36 register int inword = flag == CASE_DOWN;
37 37
38 /* If the case table is flagged as modified, rescan it. */
39 if (NILP (XCHAR_TABLE (current_buffer->downcase_table)->extras[1]))
40 Fset_case_table (current_buffer->downcase_table);
41
38 while (1) 42 while (1)
39 { 43 {
40 if (INTEGERP (obj)) 44 if (INTEGERP (obj))
@@ -133,6 +137,10 @@ casify_region (flag, b, e)
133 /* Not modifying because nothing marked */ 137 /* Not modifying because nothing marked */
134 return; 138 return;
135 139
140 /* If the case table is flagged as modified, rescan it. */
141 if (NILP (XCHAR_TABLE (current_buffer->downcase_table)->extras[1]))
142 Fset_case_table (current_buffer->downcase_table);
143
136 validate_region (&b, &e); 144 validate_region (&b, &e);
137 start = XFASTINT (b); 145 start = XFASTINT (b);
138 end = XFASTINT (e); 146 end = XFASTINT (e);