Mercurial > emacs
diff src/casefiddle.c @ 2783:789c11177579
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.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Fri, 14 May 1993 14:43:30 +0000 |
parents | 952f2a18f83d |
children | 153a269b1315 |
line wrap: on
line diff
--- a/src/casefiddle.c Fri May 14 14:43:00 1993 +0000 +++ b/src/casefiddle.c Fri May 14 14:43:30 1993 +0000 @@ -117,8 +117,8 @@ 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++) {