Commit cb0290df authored by Paul Eggert's avatar Paul Eggert
Browse files

* insdel.c (adjust_after_replace): Use bool for boolean.

parent 25c09217
2013-03-11 Paul Eggert <eggert@cs.ucla.edu>
* insdel.c (adjust_after_replace): Use bool for boolean.
2013-03-11 Stefan Monnier <monnier@iro.umontreal.ca> 2013-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
   
* keyboard.c: Move keyboard decoding to read_key_sequence. * keyboard.c: Move keyboard decoding to read_key_sequence.
......
...@@ -1162,16 +1162,16 @@ insert_from_buffer_1 (struct buffer *buf, ...@@ -1162,16 +1162,16 @@ insert_from_buffer_1 (struct buffer *buf,
/* Record undo information and adjust markers and position keepers for /* Record undo information and adjust markers and position keepers for
a replacement of a text PREV_TEXT at FROM to a new text of LEN a replacement of a text PREV_TEXT at FROM to a new text of LEN
chars (LEN_BYTE bytes). If TEXT_AT_GAP_TAIL is zero, the new text chars (LEN_BYTE bytes). If TEXT_AT_GAP_TAIL, the new text
resides in the gap just after GPT_BYTE. Otherwise, the text resides at the gap tail; i.e. at (GAP_END_ADDR - LEN_BNYTE)
resides at the gap tail; i.e. at (GAP_END_ADDR - LEN_BNYTE). Otherwise, the text resides in the gap just after GPT_BYTE.
PREV_TEXT nil means the new text was just inserted. */ PREV_TEXT nil means the new text was just inserted. */
void void
adjust_after_replace (ptrdiff_t from, ptrdiff_t from_byte, adjust_after_replace (ptrdiff_t from, ptrdiff_t from_byte,
Lisp_Object prev_text, ptrdiff_t len, ptrdiff_t len_byte, Lisp_Object prev_text, ptrdiff_t len, ptrdiff_t len_byte,
int text_at_gap_tail) bool text_at_gap_tail)
{ {
ptrdiff_t nchars_del = 0, nbytes_del = 0; ptrdiff_t nchars_del = 0, nbytes_del = 0;
......
...@@ -2900,10 +2900,8 @@ extern Lisp_Object del_range_2 (ptrdiff_t, ptrdiff_t, ...@@ -2900,10 +2900,8 @@ extern Lisp_Object del_range_2 (ptrdiff_t, ptrdiff_t,
extern void modify_region_1 (ptrdiff_t, ptrdiff_t, bool); extern void modify_region_1 (ptrdiff_t, ptrdiff_t, bool);
extern void prepare_to_modify_buffer (ptrdiff_t, ptrdiff_t, ptrdiff_t *); extern void prepare_to_modify_buffer (ptrdiff_t, ptrdiff_t, ptrdiff_t *);
extern void signal_after_change (ptrdiff_t, ptrdiff_t, ptrdiff_t); extern void signal_after_change (ptrdiff_t, ptrdiff_t, ptrdiff_t);
extern void adjust_after_replace (ptrdiff_t from, ptrdiff_t from_byte, extern void adjust_after_replace (ptrdiff_t, ptrdiff_t, Lisp_Object,
Lisp_Object prev_text, ptrdiff_t, ptrdiff_t, bool);
ptrdiff_t len, ptrdiff_t len_byte,
int text_at_gap_tail);
extern void adjust_after_insert (ptrdiff_t, ptrdiff_t, ptrdiff_t, extern void adjust_after_insert (ptrdiff_t, ptrdiff_t, ptrdiff_t,
ptrdiff_t, ptrdiff_t); ptrdiff_t, ptrdiff_t);
extern void adjust_markers_for_delete (ptrdiff_t, ptrdiff_t, extern void adjust_markers_for_delete (ptrdiff_t, ptrdiff_t,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment