diff options
| author | Jim Blandy | 1993-05-14 14:43:30 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-14 14:43:30 +0000 |
| commit | 04a759c81b944287c3a826eed57ee56a3bea5c03 (patch) | |
| tree | 02784ac68d6821607065eb037f3e97dadc8ec13b /src/casefiddle.c | |
| parent | 6c523803b30c3d41a21ce36fbfb0437bf6ce68e5 (diff) | |
| download | emacs-04a759c81b944287c3a826eed57ee56a3bea5c03.tar.gz emacs-04a759c81b944287c3a826eed57ee56a3bea5c03.zip | |
The text property routines can now modify buffers other
than the current one.
* insdel.c (modify_region): New argument BUFFER. Select that
buffer while we prepare for the modification, and switch back when
we're done.
* textprop.c (add_properties, remove_properties): Pass
the buffer being modified as the first argument to modify_region.
* editfns.c (Fsubst_char_in_region, Ftranslate_region): Pass the
current_buffer as the first argument to modify_region.
* casefiddle.c (casify_region): Same.
Diffstat (limited to 'src/casefiddle.c')
| -rw-r--r-- | src/casefiddle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/casefiddle.c b/src/casefiddle.c index d496ffdf6dd..ca5127d5480 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c | |||
| @@ -117,8 +117,8 @@ casify_region (flag, b, e) | |||
| 117 | return; | 117 | return; |
| 118 | 118 | ||
| 119 | validate_region (&b, &e); | 119 | validate_region (&b, &e); |
| 120 | modify_region (XFASTINT (b), XFASTINT (e)); | 120 | modify_region (current_buffer, XFASTINT (b), XFASTINT (e)); |
| 121 | record_change (XFASTINT (b), XFASTINT (e) - XFASTINT (b)); | 121 | record_change (current_buffer, XFASTINT (b), XFASTINT (e) - XFASTINT (b)); |
| 122 | 122 | ||
| 123 | for (i = XFASTINT (b); i < XFASTINT (e); i++) | 123 | for (i = XFASTINT (b); i < XFASTINT (e); i++) |
| 124 | { | 124 | { |