diff options
| author | Dmitry Antipov | 2012-12-03 18:13:06 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-12-03 18:13:06 +0400 |
| commit | 20edc1c9edbb8c896df0a54769a4da825017de22 (patch) | |
| tree | 5c431923887d8e48a1e932c4540f9aa48c611504 /src/editfns.c | |
| parent | 62c2e5ed3a9c991cef2594b44afc74893f6ce26b (diff) | |
| download | emacs-20edc1c9edbb8c896df0a54769a4da825017de22.tar.gz emacs-20edc1c9edbb8c896df0a54769a4da825017de22.zip | |
* lisp.h (modify_region): Rename to...
(modify_region_1): ...new prototype.
* textprop.c (modify_region): Now static. Adjust users.
* insdel.c (modify_region): Rename to...
(modify_region_1): ...new function to work with current buffer.
Adjust comment and users. Use true and false for boolean arg.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/editfns.c b/src/editfns.c index 390ce21bbca..d60f417e561 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2922,7 +2922,7 @@ Both characters must have the same length of multi-byte form. */) | |||
| 2922 | else if (!changed) | 2922 | else if (!changed) |
| 2923 | { | 2923 | { |
| 2924 | changed = -1; | 2924 | changed = -1; |
| 2925 | modify_region (current_buffer, pos, XINT (end), 0); | 2925 | modify_region_1 (pos, XINT (end), false); |
| 2926 | 2926 | ||
| 2927 | if (! NILP (noundo)) | 2927 | if (! NILP (noundo)) |
| 2928 | { | 2928 | { |
| @@ -3098,7 +3098,7 @@ It returns the number of characters changed. */) | |||
| 3098 | pos = XINT (start); | 3098 | pos = XINT (start); |
| 3099 | pos_byte = CHAR_TO_BYTE (pos); | 3099 | pos_byte = CHAR_TO_BYTE (pos); |
| 3100 | end_pos = XINT (end); | 3100 | end_pos = XINT (end); |
| 3101 | modify_region (current_buffer, pos, end_pos, 0); | 3101 | modify_region_1 (pos, end_pos, false); |
| 3102 | 3102 | ||
| 3103 | cnt = 0; | 3103 | cnt = 0; |
| 3104 | for (; pos < end_pos; ) | 3104 | for (; pos < end_pos; ) |
| @@ -4622,7 +4622,7 @@ Transposing beyond buffer boundaries is an error. */) | |||
| 4622 | 4622 | ||
| 4623 | if (end1 == start2) /* adjacent regions */ | 4623 | if (end1 == start2) /* adjacent regions */ |
| 4624 | { | 4624 | { |
| 4625 | modify_region (current_buffer, start1, end2, 0); | 4625 | modify_region_1 (start1, end2, false); |
| 4626 | record_change (start1, len1 + len2); | 4626 | record_change (start1, len1 + len2); |
| 4627 | 4627 | ||
| 4628 | tmp_interval1 = copy_intervals (cur_intv, start1, len1); | 4628 | tmp_interval1 = copy_intervals (cur_intv, start1, len1); |
| @@ -4681,8 +4681,8 @@ Transposing beyond buffer boundaries is an error. */) | |||
| 4681 | { | 4681 | { |
| 4682 | USE_SAFE_ALLOCA; | 4682 | USE_SAFE_ALLOCA; |
| 4683 | 4683 | ||
| 4684 | modify_region (current_buffer, start1, end1, 0); | 4684 | modify_region_1 (start1, end1, false); |
| 4685 | modify_region (current_buffer, start2, end2, 0); | 4685 | modify_region_1 (start2, end2, false); |
| 4686 | record_change (start1, len1); | 4686 | record_change (start1, len1); |
| 4687 | record_change (start2, len2); | 4687 | record_change (start2, len2); |
| 4688 | tmp_interval1 = copy_intervals (cur_intv, start1, len1); | 4688 | tmp_interval1 = copy_intervals (cur_intv, start1, len1); |
| @@ -4715,7 +4715,7 @@ Transposing beyond buffer boundaries is an error. */) | |||
| 4715 | { | 4715 | { |
| 4716 | USE_SAFE_ALLOCA; | 4716 | USE_SAFE_ALLOCA; |
| 4717 | 4717 | ||
| 4718 | modify_region (current_buffer, start1, end2, 0); | 4718 | modify_region_1 (start1, end2, false); |
| 4719 | record_change (start1, (end2 - start1)); | 4719 | record_change (start1, (end2 - start1)); |
| 4720 | tmp_interval1 = copy_intervals (cur_intv, start1, len1); | 4720 | tmp_interval1 = copy_intervals (cur_intv, start1, len1); |
| 4721 | tmp_interval_mid = copy_intervals (cur_intv, end1, len_mid); | 4721 | tmp_interval_mid = copy_intervals (cur_intv, end1, len_mid); |
| @@ -4748,7 +4748,7 @@ Transposing beyond buffer boundaries is an error. */) | |||
| 4748 | USE_SAFE_ALLOCA; | 4748 | USE_SAFE_ALLOCA; |
| 4749 | 4749 | ||
| 4750 | record_change (start1, (end2 - start1)); | 4750 | record_change (start1, (end2 - start1)); |
| 4751 | modify_region (current_buffer, start1, end2, 0); | 4751 | modify_region_1 (start1, end2, false); |
| 4752 | 4752 | ||
| 4753 | tmp_interval1 = copy_intervals (cur_intv, start1, len1); | 4753 | tmp_interval1 = copy_intervals (cur_intv, start1, len1); |
| 4754 | tmp_interval_mid = copy_intervals (cur_intv, end1, len_mid); | 4754 | tmp_interval_mid = copy_intervals (cur_intv, end1, len_mid); |