summaryrefslogtreecommitdiff
path: root/src/casefiddle.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-14 14:43:30 +0000
committerJim Blandy <jimb@redhat.com>1993-05-14 14:43:30 +0000
commit0d0861f874251bbda4e53932e0b630305f938ab3 (patch)
tree62bfc9ca5be87be2677353e001065e2d88c48286 /src/casefiddle.c
parentb71a12ded856414d264acf9a27a36ba173b9a2b2 (diff)
downloademacs-0d0861f874251bbda4e53932e0b630305f938ab3.tar.gz
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.c4
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)
return;
validate_region (&b, &e);
- modify_region (XFASTINT (b), XFASTINT (e));
- record_change (XFASTINT (b), XFASTINT (e) - XFASTINT (b));
+ modify_region (current_buffer, XFASTINT (b), XFASTINT (e));
+ record_change (current_buffer, XFASTINT (b), XFASTINT (e) - XFASTINT (b));
for (i = XFASTINT (b); i < XFASTINT (e); i++)
{