Remove unused macros from intervals.h.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 10 Aug 2012 09:04:19 +0000 (13:04 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 10 Aug 2012 09:04:19 +0000 (13:04 +0400)
* intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove.
* intervals.c: Adjust comment.

src/ChangeLog
src/intervals.c
src/intervals.h

index b8b8ee7..79dcf0b 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-10  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       Remove unused macros from intervals.h.
+       * intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove.
+       * intervals.c: Adjust comment.
+
 2012-08-10  Eli Zaretskii  <eliz@gnu.org>
 
        * w32fns.c <w32_unicode_gui>: New static variable.
index 02ffe7a..15dd67d 100644 (file)
@@ -1559,11 +1559,9 @@ reproduce_tree_obj (INTERVAL source, Lisp_Object parent)
    cases -- either insertion happened in the middle of some interval,
    or between two intervals.
 
-   If the text goes into the middle of an interval, then new
-   intervals are created in the middle with only the properties of
-   the new text, *unless* the macro MERGE_INSERTIONS is true, in
-   which case the new text has the union of its properties and those
-   of the text into which it was inserted.
+   If the text goes into the middle of an interval, then new intervals
+   are created in the middle, and new text has the union of its properties
+   and those of the text into which it was inserted.
 
    If the text goes between two intervals, then if neither interval
    had its appropriate sticky property set (front_sticky, rear_sticky),
index b50016e..754b33f 100644 (file)
@@ -213,15 +213,6 @@ interval_copy_parent (INTERVAL d, INTERVAL s)
   if ((from)->rear_sticky) (to)->rear_sticky = 1;     \
 }
 
-/* Macro determining whether the properties of an interval being
-   inserted should be merged with the properties of the text where
-   they are being inserted.  */
-#define MERGE_INSERTIONS(i) 1
-
-/* Macro determining if an invisible interval should be displayed
-   as a special glyph, or not at all.  */
-#define DISPLAY_INVISIBLE_GLYPH(i) 0
-
 /* Is this interval visible?  Replace later with cache access.  */
 #define INTERVAL_VISIBLE_P(i) \
   (i && NILP (textget ((i)->plist, Qinvisible)))