Mercurial > emacs
diff src/insdel.c @ 26404:c3c9cc1c2379
Remove USE_TEXT_PROPERTIES.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 11 Nov 1999 11:45:06 +0000 |
parents | b7aa6ac26872 |
children | 381c4e70f9fb |
line wrap: on
line diff
--- a/src/insdel.c Wed Nov 10 22:53:16 1999 +0000 +++ b/src/insdel.c Thu Nov 11 11:45:06 1999 +0000 @@ -1065,7 +1065,6 @@ ADJUST_CHAR_POS (ZV, ZV_BYTE); if (BUF_INTERVALS (current_buffer) != 0) - /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES. */ offset_intervals (current_buffer, pos, - nbytes); } @@ -1185,15 +1184,12 @@ combined_before_bytes, combined_after_bytes, before_markers); -#ifdef USE_TEXT_PROPERTIES if (BUF_INTERVALS (current_buffer) != 0) - /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES. */ offset_intervals (current_buffer, PT, nchars); if (!inherit && BUF_INTERVALS (current_buffer) != 0) Fset_text_properties (make_number (PT), make_number (PT + nchars), Qnil, Qnil); -#endif { int pos = PT, pos_byte = PT_BYTE; @@ -1371,7 +1367,6 @@ combined_before_bytes, combined_after_bytes, before_markers); - /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ offset_intervals (current_buffer, PT, nchars); intervals = XSTRING (string)->intervals; @@ -1580,10 +1575,8 @@ PT_BYTE + outgoing_nbytes, combined_before_bytes, combined_after_bytes, 0); -#ifdef USE_TEXT_PROPERTIES if (BUF_INTERVALS (current_buffer) != 0) offset_intervals (current_buffer, PT, nchars); -#endif /* Get the intervals for the part of the string we are inserting-- not including the combined-before bytes. */ @@ -1735,12 +1728,10 @@ adjust_overlays_for_insert (from, len - nchars_del); else if (len < nchars_del) adjust_overlays_for_delete (from, nchars_del - len); -#ifdef USE_TEXT_PROPERTIES if (BUF_INTERVALS (current_buffer) != 0) { offset_intervals (current_buffer, from, len - nchars_del); } -#endif { if (from < PT) @@ -2011,7 +2002,6 @@ from + inschars, from_byte + outgoing_insbytes, combined_before_bytes, combined_after_bytes, 0); -#ifdef USE_TEXT_PROPERTIES offset_intervals (current_buffer, from, inschars - nchars_del); /* Get the intervals for the part of the string we are inserting-- @@ -2020,7 +2010,6 @@ /* Insert those intervals. */ graft_intervals_into_buffer (intervals, from, inschars, current_buffer, inherit); -#endif /* Relocate point as if it were a marker. */ if (from < PT) @@ -2250,7 +2239,6 @@ adjust_point (from - (PT < to ? PT : to), from_byte - (PT_BYTE < to_byte ? PT_BYTE : to_byte)); - /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ offset_intervals (current_buffer, from, - nchars_del); /* Adjust the overlay center as needed. This must be done after @@ -2352,7 +2340,6 @@ if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer) ++windows_or_buffers_changed; - /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ if (BUF_INTERVALS (current_buffer) != 0) { if (preserve_ptr)