diff options
author | Jim Blandy <jimb@redhat.com> | 1993-05-14 14:43:30 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-05-14 14:43:30 +0000 |
commit | 04a759c81b944287c3a826eed57ee56a3bea5c03 (patch) | |
tree | 02784ac68d6821607065eb037f3e97dadc8ec13b /src/editfns.c | |
parent | 6c523803b30c3d41a21ce36fbfb0437bf6ce68e5 (diff) | |
download | emacs-04a759c81b944287c3a826eed57ee56a3bea5c03.tar.gz emacs-04a759c81b944287c3a826eed57ee56a3bea5c03.tar.bz2 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/editfns.c')
-rw-r--r-- | src/editfns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c index 7b3db6203d3..86d292f2976 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1001,7 +1001,7 @@ and don't mark the buffer as really changed.") stop = XINT (end); look = XINT (fromchar); - modify_region (pos, stop); + modify_region (current_buffer, pos, stop); if (! NILP (noundo)) { if (MODIFF - 1 == current_buffer->save_modified) @@ -1051,7 +1051,7 @@ for the character with code N. Returns the number of characters changed.") pos = XINT (start); stop = XINT (end); - modify_region (pos, stop); + modify_region (current_buffer, pos, stop); cnt = 0; for (; pos < stop; ++pos) |