[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/textprop.c
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/src/textprop.c |
Date: |
Sun, 25 Nov 2001 21:19:38 -0500 |
Index: emacs/src/textprop.c
diff -u emacs/src/textprop.c:1.120 emacs/src/textprop.c:1.121
--- emacs/src/textprop.c:1.120 Fri Nov 23 03:07:24 2001
+++ emacs/src/textprop.c Sun Nov 25 21:19:38 2001
@@ -1303,7 +1303,8 @@
properties PROPERTIES. BUFFER is the buffer containing
the text. This does not obey any hooks.
You can provide the interval that START is located in as I,
- or pass NULL for I and this function will find it. */
+ or pass NULL for I and this function will find it.
+ This function assumes that START < END. */
void
set_text_properties_1 (start, end, properties, buffer, i)
@@ -1316,6 +1317,7 @@
s = XINT (start);
len = XINT (end) - s;
+ eassert (len > 0);
if (i == 0)
i = find_interval (BUF_INTERVALS (XBUFFER (buffer)), s);