1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-08 15:35:02 +00:00
Commit Graph

81 Commits

Author SHA1 Message Date
Kenichi Handa
5740418892 (insert_1_both): If enable-multibyte-characters is nil,
insert each byte as one character.
1998-03-03 07:18:46 +00:00
Kenichi Handa
59a52d5000 (DEFAULT_NONASCII_INSERT_OFFSET): Macro definition is
moved to charset.h.
(copy_text): Don't convert codes in the range 0200..0237 to
multibyte characters.  For codes in the range 0240..0377, use
unibyte_char_to_multibyte.
(count_size_as_multibyte): Likewise.
(adjust_before_replace): Comment fixed.
1998-03-03 01:29:16 +00:00
Karl Heuer
a66afea01c (del_range_2): Reorder args. All callers changed. 1998-02-27 22:09:33 +00:00
Karl Heuer
353800c79a (del_range_both): Reorder args. All callers changed. 1998-02-25 23:18:15 +00:00
Kenichi Handa
2d9eea4477 (adjust_before_replace): Comment added.
(adjust_after_replace): Comment added.  Give correct args to
adjust_point.  Don't call signal_after_change here.
1998-02-20 01:40:47 +00:00
Richard M. Stallman
2c3af3383d (copy_text, count_size_as_multibyte): Use Vnonascii_translate_table. 1998-02-12 05:19:41 +00:00
Kenichi Handa
cb97b980dd (copy_text): When copying from multibyte to unibyte, do
not alter ASCII characters.
1998-02-04 11:23:28 +00:00
Kenichi Handa
1e9c7b7d91 (adjust_before_replace, adjust_after_replace): New
functions.
1998-01-22 01:26:45 +00:00
Richard M. Stallman
4a2f9c6aef Update copyright year. 1998-01-21 23:32:12 +00:00
Kenichi Handa
7792090e89 (insert_from_string_1): Decrement GAP_SIZE by
outgoing_nbytes.
1998-01-12 05:49:45 +00:00
Richard M. Stallman
2b08380873 (count_size_as_multibyte): New function.
(insert_from_string_1, insert_from_buffer_1): Use it.
(copy_text): New function.
(insert_from_buffer_1): Call copy_text to convert between
single-byte and multibyte text.
(insert_from_string_1): Likewise.
(insert_1_both): New function.
(insert_from_string): New args POS_BYTE, LENGTH.
(insert_from_string_before_markers):
(insert_from_string_1): New arg POS_BYTE.  Swap args NCHARS, NBYTES.
Don't fail to use POS_BYTE!
(insert_from_buffer_1): Get both inschars and insbytes from NEW.
1998-01-09 22:46:07 +00:00
Richard M. Stallman
7d92db5882 (make_gap): Set GPT_BYTE along with GPT. 1998-01-02 23:12:03 +00:00
Richard M. Stallman
80f6e77c70 (adjust_markers_gap_motion): Now a no-op.
(adjust_markers_for_delete): Update ->bytepos instead of ->bufpos,
but don't adjust for the gap.
(adjust_markers_for_insert): Likewise.
1998-01-02 21:29:48 +00:00
Richard M. Stallman
3be111318f (move_gap): Use move_gap_both.
(move_gap_both): New function.
(gap_left, gap_right): Take both charpos and bytepos args.
(adjust_markers_gap_motion): Renamed from adjust_markers and simplified.
(adjust_markers_for_delete): New function.
(adjust_markers_for_insert): Take args in chars and bytes.
Also new arg BEFORE_MARKERS.  One call does all marker updating
needed for any insert.
(adjust_point): Take 2 args and update PT and PT_BYTE.
(make_gap): Handle bytes vs chars.
(insert, insert_and_inherit): Handle bytes vs chars.
Pass new BEFORE_MARKERS arg to insert_1.
(insert_before_markers, insert_before_markers_and_inherit): Likewise.
(insert_from_string, insert_from_string_before_markers): Likewise.
(insert_from_buffer): Likewise.
(insert_1): Handle bytes vs chars.  New arg BEFORE_MARKERS.
(insert_from_string_1, insert_from_buffer_1): Likewise.
(replace_range): Likewise.
(del_range_2): New subroutine, taken from del_range_1.
(del_range_1): Use del_range_2.
(del_range_byte, del_range_both): New functions.
1998-01-01 07:03:19 +00:00
Richard M. Stallman
b86e0aaf0f (signal_before_change): Relocate START and END
using markers for subsequent functions, when we run a function.
1997-08-13 04:13:22 +00:00
Richard M. Stallman
c5ca4d3a1b (replace_range): New function. 1997-07-17 06:51:28 +00:00
Richard M. Stallman
d206af1497 (prepare_to_modify_buffer, signal_before_change):
New argument PRESERVE_PTR.
(del_range_1): Use PRESERVE_PTR to preserve FROM.
Save the length of the range separately.
(NULL): Define if not defined.
1997-06-25 06:50:16 +00:00
Richard M. Stallman
9856e2185f (adjust_markers): Don't be confused by the gap
when computing the arg to record_marker_adjustment.
1997-04-14 08:50:23 +00:00
Karl Heuer
e688a0806b (Fcombine_after_change_execute): Fix Lisp_Object/integer confusion. 1997-04-10 22:37:54 +00:00
Karl Heuer
469ff68001 Include charset.h.
(gap_left, gap_right): Put an anchor `\0' at the end of GAP.
(adjust_markers_for_insert): If any markers are adjusted, check
and fix the order of overlays in overlays_before.
(make_gap): Allocate an extra byte and set to `\0' for anchoring.
(insert1, insert_from_buffer_1): Put an anchor `\0' at the head of
GAP.
1997-02-20 06:50:03 +00:00
Richard M. Stallman
fb2e7d144a (signal_after_change): If Vcombine_after_change_calls,
save up changes in combine_after_change_list.
(Fcombine_after_change_execute)
(Fcombine_after_change_execute_1): New subroutines.
(syms_of_insdel): New function.
1996-11-09 21:36:00 +00:00
Richard M. Stallman
894ab63090 (gap_left, gap_right, modify_region):
Compare overlay_unchanged_modified with OVERLAY_MODIFF.
1996-09-15 01:57:44 +00:00
Richard M. Stallman
6022d4938e (signal_before_change): Fix previous change. 1996-09-10 19:52:09 +00:00
Richard M. Stallman
fb4ee5cdb1 (prepare_to_modify_buffer): Take integer arguments.
(signal_before_change): Take integer arguments.
1996-09-04 03:34:04 +00:00
Richard M. Stallman
8b09e5d05c (signal_after_change): Correct the arg to report_overlay_modification. 1996-05-01 21:25:49 +00:00
Richard M. Stallman
8948d3170a (adjust_markers): When a marker is inside text
being deleted, call record_marker_adjustment for it.
(del_range_1): Call adjust_markers before record_delete.
1996-02-03 18:06:29 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Karl Heuer
8e6208c5d2 Comment fixes. 1996-01-05 10:03:17 +00:00
Karl Heuer
68be917ded (BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG):
Rename from SHORTBITS, INTBITS, LONGBITS.
1995-10-31 02:34:16 +00:00
Richard M. Stallman
c5ca07864e (signal_after_change): Call report_interval_modification. 1995-09-12 17:37:02 +00:00
Richard M. Stallman
beecb55b9e (adjust_markers_for_insert): New function.
(insert_from_buffer_1, insert_from_string_1, insert_1): Call it.
1995-09-03 18:51:47 +00:00
Karl Heuer
c82c1da05c (signal_before_change, signal_after_change): Fix
spelling of Vbefore_change_functions and Vafter_change_functions.
1995-08-07 17:53:17 +00:00
Richard M. Stallman
3d1e2d9c91 (signal_before_change, signal_after_change): Major rewrite.
(before_change_function_restore, after_change_function_restore)
(before_change_functions_restore, after_change_functions_restore):
Functions deleted.
1995-08-05 22:57:13 +00:00
Karl Heuer
8449a569e1 (signal_before_change): Use Frun_hook_with_args.
(signal_after_change): Likewise.
1995-07-25 19:57:02 +00:00
Richard M. Stallman
ab6c5c0c36 (prepare_to_modify_buffer): Don't lock the file
if current_buffer->filename is nil.
1995-07-20 20:47:20 +00:00
Karl Heuer
a7f38d28b2 Comment change. 1995-07-20 20:02:38 +00:00
Karl Heuer
7c938215cd Update GPL to version 2. 1995-06-15 20:42:24 +00:00
Karl Heuer
29eb72ac6e (adjust_point): Declare arg AMOUNT. 1995-05-25 18:18:56 +00:00
Richard M. Stallman
14f6194bdc (make_gap): Make this new error check also check exceeding VALBITS.
(insert_1): Delete old error test.
(min): New macro.
1995-05-05 03:02:02 +00:00
Richard M. Stallman
94056516e2 (make_gap): Don't allow buffer size that won't fit in int. 1995-05-04 22:16:18 +00:00
Richard M. Stallman
f173b6507b (prepare_to_modify_buffer): Use file_truename for locking. 1995-05-02 18:13:47 +00:00
Karl Heuer
adde48587a (insert_1): Adjust overlay center after inserting.
(insert_from_string_1, insert_from_buffer_1): Likewise.
(del_range_1): Adjust overlay center after deleting.
1995-04-17 23:16:23 +00:00
Karl Heuer
f8c25f1b67 Update copyright. 1995-04-07 02:21:52 +00:00
Richard M. Stallman
069cdc4fe0 (modify_region): Clear point_before_scroll field. 1995-01-27 07:47:15 +00:00
Karl Heuer
c660b094b9 Declare all non-returning functions `void'.
(insert_1): Make non-static.  New arg PREPARE.  All callers changed.
1995-01-11 01:40:25 +00:00
Richard M. Stallman
9fbf87cd52 Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.

(insert_1, prepare_to_modify_buffer, insert_from_buffer_1): Use BUF_INTERVALS.
(adjust_markers): Use BUF_MARKERS.

(adjust_point): Use BUF_PT.
1995-01-02 09:21:30 +00:00
Richard M. Stallman
835220e853 * buffer.c (report_overlay_modification): Renamed from
verify_overlay_modification.
	* insdel.c: Calls changed.
1994-12-11 11:30:08 +00:00
Richard M. Stallman
d07c080423 (signal_before_change, signal_after_change):
Call verify_overlay_modification here.
(prepare_to_modify_buffer): Don't call it here.
1994-12-11 11:24:16 +00:00
Richard M. Stallman
61bd0e9ccd (insert_from_buffer_1): Don't use min. 1994-10-25 07:53:05 +00:00
Karl Heuer
ef29f21354 (insert_from_buffer, insert_from_buffer_1): New functions. 1994-10-22 04:45:57 +00:00