From bd47bd35ab7b4c1b5f28c10a10a943b1d4b5bbfb Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 6 May 1996 04:28:18 +0000 Subject: [PATCH] (casify_region, casify_object): If case table has been changed, call Fset_case_table --- src/casefiddle.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) register int i, c, len; register int inword = flag == CASE_DOWN; + /* If the case table is flagged as modified, rescan it. */ + if (NILP (XCHAR_TABLE (current_buffer->downcase_table)->extras[1])) + Fset_case_table (current_buffer->downcase_table); + while (1) { if (INTEGERP (obj)) @@ -133,6 +137,10 @@ casify_region (flag, b, e) /* Not modifying because nothing marked */ return; + /* If the case table is flagged as modified, rescan it. */ + if (NILP (XCHAR_TABLE (current_buffer->downcase_table)->extras[1])) + Fset_case_table (current_buffer->downcase_table); + validate_region (&b, &e); start = XFASTINT (b); end = XFASTINT (e); -- 2.39.2