diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-05-06 04:28:18 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-05-06 04:28:18 +0000 |
commit | 718a717bd3a161658f003658e71b641a198cf505 (patch) | |
tree | de71585f3e450e53d3c201bd3153f6a8f93e8c34 /src | |
parent | 25f535bbb4099e3ba1cc7d3716fb00d48cd424e6 (diff) | |
download | emacs-718a717bd3a161658f003658e71b641a198cf505.tar.gz |
(casify_region, casify_object):
If case table has been changed, call Fset_case_table
Diffstat (limited to 'src')
-rw-r--r-- | src/casefiddle.c | 8 |
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) 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); |