diff options
| author | Richard M. Stallman | 1996-05-06 04:28:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-05-06 04:28:18 +0000 |
| commit | bd47bd35ab7b4c1b5f28c10a10a943b1d4b5bbfb (patch) | |
| tree | d3fa080727a25f138ce9a1814b8fce002937c9e7 /src/casefiddle.c | |
| parent | f42be8fd1c37e241b0d24f071cf997c06e1d8996 (diff) | |
| download | emacs-bd47bd35ab7b4c1b5f28c10a10a943b1d4b5bbfb.tar.gz emacs-bd47bd35ab7b4c1b5f28c10a10a943b1d4b5bbfb.zip | |
(casify_region, casify_object):
If case table has been changed, call Fset_case_table
Diffstat (limited to 'src/casefiddle.c')
| -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) | |||
| 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); |