/[emacs]/emacs/src/textprop.c
ViewVC logotype

Diff of /emacs/src/textprop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.121 by monnier, Mon Nov 26 02:19:38 2001 UTC revision 1.122 by rms, Mon Nov 26 20:10:04 2001 UTC
# Line 1304  set_text_properties (start, end, propert Line 1304  set_text_properties (start, end, propert
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)
# Line 1317  set_text_properties_1 (start, end, prope Line 1317  set_text_properties_1 (start, end, prope
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    

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26