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/editfns.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/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.") | |||
| 1001 | stop = XINT (end); | 1001 | stop = XINT (end); |
| 1002 | look = XINT (fromchar); | 1002 | look = XINT (fromchar); |
| 1003 | 1003 | ||
| 1004 | modify_region (pos, stop); | 1004 | modify_region (current_buffer, pos, stop); |
| 1005 | if (! NILP (noundo)) | 1005 | if (! NILP (noundo)) |
| 1006 | { | 1006 | { |
| 1007 | if (MODIFF - 1 == current_buffer->save_modified) | 1007 | if (MODIFF - 1 == current_buffer->save_modified) |
| @@ -1051,7 +1051,7 @@ for the character with code N. Returns the number of characters changed.") | |||
| 1051 | 1051 | ||
| 1052 | pos = XINT (start); | 1052 | pos = XINT (start); |
| 1053 | stop = XINT (end); | 1053 | stop = XINT (end); |
| 1054 | modify_region (pos, stop); | 1054 | modify_region (current_buffer, pos, stop); |
| 1055 | 1055 | ||
| 1056 | cnt = 0; | 1056 | cnt = 0; |
| 1057 | for (; pos < stop; ++pos) | 1057 | for (; pos < stop; ++pos) |