diff options
| author | Richard M. Stallman | 1996-05-01 21:25:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-05-01 21:25:49 +0000 |
| commit | 8b09e5d05c3ffa597702346cc4d181ef9a3077cf (patch) | |
| tree | 14520728d6bedbe34b6fba456c2d1e11955f0210 /src | |
| parent | 0b1f1b099f3ea8bc196cdfe91d3369e43dadd5bb (diff) | |
| download | emacs-8b09e5d05c3ffa597702346cc4d181ef9a3077cf.tar.gz emacs-8b09e5d05c3ffa597702346cc4d181ef9a3077cf.zip | |
(signal_after_change): Correct the arg to report_overlay_modification.
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/insdel.c b/src/insdel.c index 1058de734de..9f505361cc0 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -836,9 +836,8 @@ signal_before_change (start, end) | |||
| 836 | POS is the address of the start of the changed text. | 836 | POS is the address of the start of the changed text. |
| 837 | LENDEL is the number of characters of the text before the change. | 837 | LENDEL is the number of characters of the text before the change. |
| 838 | (Not the whole buffer; just the part that was changed.) | 838 | (Not the whole buffer; just the part that was changed.) |
| 839 | LENINS is the number of characters in the changed text. | 839 | LENINS is the number of characters in that part of the text |
| 840 | 840 | after the change. */ | |
| 841 | (Hence POS + LENINS - LENDEL is the position after the changed text.) */ | ||
| 842 | 841 | ||
| 843 | void | 842 | void |
| 844 | signal_after_change (pos, lendel, lenins) | 843 | signal_after_change (pos, lendel, lenins) |
| @@ -885,7 +884,7 @@ signal_after_change (pos, lendel, lenins) | |||
| 885 | if (!NILP (current_buffer->overlays_before) | 884 | if (!NILP (current_buffer->overlays_before) |
| 886 | || !NILP (current_buffer->overlays_after)) | 885 | || !NILP (current_buffer->overlays_after)) |
| 887 | report_overlay_modification (make_number (pos), | 886 | report_overlay_modification (make_number (pos), |
| 888 | make_number (pos + lenins - lendel), | 887 | make_number (pos + lenins), |
| 889 | 1, | 888 | 1, |
| 890 | make_number (pos), make_number (pos + lenins), | 889 | make_number (pos), make_number (pos + lenins), |
| 891 | make_number (lendel)); | 890 | make_number (lendel)); |