comparison src/insdel.h @ 272:c5d627a313b1 r21-0b34

Import from CVS: tag r21-0b34
author cvs
date Mon, 13 Aug 2007 10:28:48 +0200
parents 376386a54a3c
children 6240c7796c7a
comparison
equal deleted inserted replaced
271:c7b7086b0a39 272:c5d627a313b1
27 27
28 /************************************************************************/ 28 /************************************************************************/
29 /* changing a buffer's text */ 29 /* changing a buffer's text */
30 /************************************************************************/ 30 /************************************************************************/
31 31
32 extern int begin_multiple_change (struct buffer *buf, Bufpos start, 32 int begin_multiple_change (struct buffer *buf, Bufpos start, Bufpos end);
33 Bufpos end); 33 void end_multiple_change (struct buffer *buf, int count);
34 extern void end_multiple_change (struct buffer *buf, int count);
35 34
36 /* flags for functions below */ 35 /* flags for functions below */
37 36
38 #define INSDEL_BEFORE_MARKERS 1 37 #define INSDEL_BEFORE_MARKERS 1
39 #define INSDEL_NO_LOCKING 2 38 #define INSDEL_NO_LOCKING 2
73 #define buffer_insert_emacs_char(buf, ch) \ 72 #define buffer_insert_emacs_char(buf, ch) \
74 buffer_insert_emacs_char_1 (buf, -1, ch, 0) 73 buffer_insert_emacs_char_1 (buf, -1, ch, 0)
75 #define buffer_insert_from_buffer(buf, b, index, length) \ 74 #define buffer_insert_from_buffer(buf, b, index, length) \
76 buffer_insert_from_buffer_1 (buf, -1, b, index, length, 0) 75 buffer_insert_from_buffer_1 (buf, -1, b, index, length, 0)
77 76
78 extern void buffer_delete_range (struct buffer *buf, Bufpos from, Bufpos to, 77 void buffer_delete_range (struct buffer *buf, Bufpos from, Bufpos to,
79 int flags); 78 int flags);
80 extern void buffer_replace_char (struct buffer *b, Bufpos pos, Emchar ch, 79 void buffer_replace_char (struct buffer *b, Bufpos pos, Emchar ch,
81 int not_real_change, int force_lock_check); 80 int not_real_change, int force_lock_check);
82
83
84 81
85 82
86 /************************************************************************/ 83 /************************************************************************/
87 /* tracking buffer changes */ 84 /* tracking buffer changes */
88 /************************************************************************/ 85 /************************************************************************/
129 ((buf)->changes->end_extent_unchanged) 126 ((buf)->changes->end_extent_unchanged)
130 127
131 #define BUF_NEWLINE_WAS_DELETED(buf) \ 128 #define BUF_NEWLINE_WAS_DELETED(buf) \
132 ((buf)->changes->newline_was_deleted) 129 ((buf)->changes->newline_was_deleted)
133 130
134 extern void buffer_extent_signal_changed_region (struct buffer *buf, 131 void buffer_extent_signal_changed_region (struct buffer *buf,
135 Bufpos start, 132 Bufpos start,
136 Bufpos end); 133 Bufpos end);
137 extern void buffer_reset_changes (struct buffer *buf); 134 void buffer_reset_changes (struct buffer *buf);
138
139 135
140 136
141 137
142 /************************************************************************/ 138 /************************************************************************/
143 /* other related functions */ 139 /* other related functions */
144 /************************************************************************/ 140 /************************************************************************/
145 141
146 extern Memind do_marker_adjustment (Memind mpos, Memind from, 142 Memind do_marker_adjustment (Memind mpos, Memind from,
147 Memind to, int amount); 143 Memind to, int amount);
148 144
149 extern void fixup_internal_substring (CONST Bufbyte *nonreloc, 145 void fixup_internal_substring (CONST Bufbyte *nonreloc,
150 Lisp_Object reloc, 146 Lisp_Object reloc,
151 int offset, int *len); 147 int offset, int *len);
152 148
153 /* In font-lock.c */ 149 /* In font-lock.c */
154 extern void font_lock_maybe_update_syntactic_caches (struct buffer *buf, 150 void font_lock_maybe_update_syntactic_caches (struct buffer *buf,
155 Bufpos start, 151 Bufpos start,
156 Bufpos orig_end, 152 Bufpos orig_end,
157 Bufpos new_end); 153 Bufpos new_end);
158 extern void font_lock_buffer_was_killed (struct buffer *buf); 154 void font_lock_buffer_was_killed (struct buffer *buf);
159 155
160 extern void barf_if_buffer_read_only (struct buffer *buf, Bufpos from, 156 void barf_if_buffer_read_only (struct buffer *buf, Bufpos from,
161 Bufpos to); 157 Bufpos to);
162 158
163 /* In marker.c */ 159 void init_buffer_text (struct buffer *b, int indirect_p);
164 void init_buffer_markers (struct buffer *b); 160 void uninit_buffer_text (struct buffer *b, int indirect_p);
165 void uninit_buffer_markers (struct buffer *b);
166
167 extern Lisp_Object make_string_from_buffer (struct buffer *buf, Bufpos pos,
168 Charcount length);
169 extern void init_buffer_text (struct buffer *b, int indirect_p);
170 extern void uninit_buffer_text (struct buffer *b, int indirect_p);
171
172
173 161
174 #endif /* _XEMACS_INSDEL_H_ */ 162 #endif /* _XEMACS_INSDEL_H_ */