aboutsummaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
authorPaul Eggert2015-04-19 13:13:13 -0700
committerPaul Eggert2015-04-19 13:13:52 -0700
commit62e170072e6000b30c37792227dc34e71a31d797 (patch)
tree6a97f0018e883b3daa0ca6d0f1f8f1d29ad89d17 /src/undo.c
parentb5b0e0500eb6fac1b0b2e9ca4da08826225b010b (diff)
downloademacs-62e170072e6000b30c37792227dc34e71a31d797.tar.gz
emacs-62e170072e6000b30c37792227dc34e71a31d797.zip
Use bool for boolean in textprop.c, undo.c
* src/textprop.c (soft, hard): Now constants instead of macros. (validate_plist): Rewrite to avoid need for boolean local. (interval_has_all_properties, interval_has_some_properties) (interval_has_some_properties_list, add_properties) (remove_properties, get_char_property_and_overlay) (Fnext_single_char_property_change) (Fprevious_single_char_property_change, add_text_properties_1) (Fremove_text_properties, Fremove_list_of_text_properties) (copy_text_properties): * src/tparam.c (tparam1): * src/undo.c (record_change, record_property_change) (syms_of_undo): Use 'true' and 'false' for booleans.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/undo.c b/src/undo.c
index 948dcf9ec1a..750bc8afff2 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -212,7 +212,7 @@ record_delete (ptrdiff_t beg, Lisp_Object string, bool record_markers)
212void 212void
213record_change (ptrdiff_t beg, ptrdiff_t length) 213record_change (ptrdiff_t beg, ptrdiff_t length)
214{ 214{
215 record_delete (beg, make_buffer_string (beg, beg + length, 1), false); 215 record_delete (beg, make_buffer_string (beg, beg + length, true), false);
216 record_insert (beg, length); 216 record_insert (beg, length);
217} 217}
218 218
@@ -250,7 +250,7 @@ record_property_change (ptrdiff_t beg, ptrdiff_t length,
250{ 250{
251 Lisp_Object lbeg, lend, entry; 251 Lisp_Object lbeg, lend, entry;
252 struct buffer *obuf = current_buffer, *buf = XBUFFER (buffer); 252 struct buffer *obuf = current_buffer, *buf = XBUFFER (buffer);
253 bool boundary = 0; 253 bool boundary = false;
254 254
255 if (EQ (BVAR (buf, undo_list), Qt)) 255 if (EQ (BVAR (buf, undo_list), Qt))
256 return; 256 return;
@@ -260,7 +260,7 @@ record_property_change (ptrdiff_t beg, ptrdiff_t length,
260 pending_boundary = Fcons (Qnil, Qnil); 260 pending_boundary = Fcons (Qnil, Qnil);
261 261
262 if (buf != last_undo_buffer) 262 if (buf != last_undo_buffer)
263 boundary = 1; 263 boundary = true;
264 last_undo_buffer = buf; 264 last_undo_buffer = buf;
265 265
266 /* Switch temporarily to the buffer that was changed. */ 266 /* Switch temporarily to the buffer that was changed. */
@@ -519,5 +519,5 @@ so it must make sure not to do a lot of consing. */);
519 519
520 DEFVAR_BOOL ("undo-inhibit-record-point", undo_inhibit_record_point, 520 DEFVAR_BOOL ("undo-inhibit-record-point", undo_inhibit_record_point,
521 doc: /* Non-nil means do not record `point' in `buffer-undo-list'. */); 521 doc: /* Non-nil means do not record `point' in `buffer-undo-list'. */);
522 undo_inhibit_record_point = 0; 522 undo_inhibit_record_point = false;
523} 523}