diff options
| author | Dmitry Antipov | 2012-08-10 13:04:19 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-10 13:04:19 +0400 |
| commit | 65e8ee52931d3885fd75491a8f5b22ddc80c7208 (patch) | |
| tree | d7d174c76c216788d8c3e40000a9dc6c1e3c3a03 /src | |
| parent | 9b855fd632dcbb86576a4a97f5f4196f0c75c102 (diff) | |
| download | emacs-65e8ee52931d3885fd75491a8f5b22ddc80c7208.tar.gz emacs-65e8ee52931d3885fd75491a8f5b22ddc80c7208.zip | |
Remove unused macros from intervals.h.
* intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove.
* intervals.c: Adjust comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/intervals.c | 8 | ||||
| -rw-r--r-- | src/intervals.h | 9 |
3 files changed, 9 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b8b8ee7b3f4..79dcf0bbaa6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-08-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | Remove unused macros from intervals.h. | ||
| 4 | * intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove. | ||
| 5 | * intervals.c: Adjust comment. | ||
| 6 | |||
| 1 | 2012-08-10 Eli Zaretskii <eliz@gnu.org> | 7 | 2012-08-10 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * w32fns.c <w32_unicode_gui>: New static variable. | 9 | * w32fns.c <w32_unicode_gui>: New static variable. |
diff --git a/src/intervals.c b/src/intervals.c index 02ffe7ad90d..15dd67d06cb 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -1559,11 +1559,9 @@ reproduce_tree_obj (INTERVAL source, Lisp_Object parent) | |||
| 1559 | cases -- either insertion happened in the middle of some interval, | 1559 | cases -- either insertion happened in the middle of some interval, |
| 1560 | or between two intervals. | 1560 | or between two intervals. |
| 1561 | 1561 | ||
| 1562 | If the text goes into the middle of an interval, then new | 1562 | If the text goes into the middle of an interval, then new intervals |
| 1563 | intervals are created in the middle with only the properties of | 1563 | are created in the middle, and new text has the union of its properties |
| 1564 | the new text, *unless* the macro MERGE_INSERTIONS is true, in | 1564 | and those of the text into which it was inserted. |
| 1565 | which case the new text has the union of its properties and those | ||
| 1566 | of the text into which it was inserted. | ||
| 1567 | 1565 | ||
| 1568 | If the text goes between two intervals, then if neither interval | 1566 | If the text goes between two intervals, then if neither interval |
| 1569 | had its appropriate sticky property set (front_sticky, rear_sticky), | 1567 | had its appropriate sticky property set (front_sticky, rear_sticky), |
diff --git a/src/intervals.h b/src/intervals.h index b50016eeb59..754b33f2ab9 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -213,15 +213,6 @@ interval_copy_parent (INTERVAL d, INTERVAL s) | |||
| 213 | if ((from)->rear_sticky) (to)->rear_sticky = 1; \ | 213 | if ((from)->rear_sticky) (to)->rear_sticky = 1; \ |
| 214 | } | 214 | } |
| 215 | 215 | ||
| 216 | /* Macro determining whether the properties of an interval being | ||
| 217 | inserted should be merged with the properties of the text where | ||
| 218 | they are being inserted. */ | ||
| 219 | #define MERGE_INSERTIONS(i) 1 | ||
| 220 | |||
| 221 | /* Macro determining if an invisible interval should be displayed | ||
| 222 | as a special glyph, or not at all. */ | ||
| 223 | #define DISPLAY_INVISIBLE_GLYPH(i) 0 | ||
| 224 | |||
| 225 | /* Is this interval visible? Replace later with cache access. */ | 216 | /* Is this interval visible? Replace later with cache access. */ |
| 226 | #define INTERVAL_VISIBLE_P(i) \ | 217 | #define INTERVAL_VISIBLE_P(i) \ |
| 227 | (i && NILP (textget ((i)->plist, Qinvisible))) | 218 | (i && NILP (textget ((i)->plist, Qinvisible))) |