1304 |
the text. This does not obey any hooks. |
the text. This does not obey any hooks. |
1305 |
You can provide the interval that START is located in as I, |
You can provide the interval that START is located in as I, |
1306 |
or pass NULL for I and this function will find it. |
or pass NULL for I and this function will find it. |
1307 |
This function assumes that START < END. */ |
START and END can be in any order. */ |
1308 |
|
|
1309 |
void |
void |
1310 |
set_text_properties_1 (start, end, properties, buffer, i) |
set_text_properties_1 (start, end, properties, buffer, i) |
1317 |
|
|
1318 |
s = XINT (start); |
s = XINT (start); |
1319 |
len = XINT (end) - s; |
len = XINT (end) - s; |
1320 |
eassert (len > 0); |
if (len == 0) |
1321 |
|
return; |
1322 |
|
if (len < 0) |
1323 |
|
{ |
1324 |
|
s = s + len; |
1325 |
|
len = - len; |
1326 |
|
} |
1327 |
|
|
1328 |
if (i == 0) |
if (i == 0) |
1329 |
i = find_interval (BUF_INTERVALS (XBUFFER (buffer)), s); |
i = find_interval (BUF_INTERVALS (XBUFFER (buffer)), s); |
1330 |
|
|