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

Diff of /emacs/src/indent.c

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

revision 1.153 by rms, Thu Jul 11 17:38:49 2002 UTC revision 1.154 by raeburn, Mon Jul 15 00:00:36 2002 UTC
# Line 667  string_display_width (string, beg, end) Line 667  string_display_width (string, beg, end)
667    int b, e;    int b, e;
668    
669    if (NILP (end))    if (NILP (end))
670      e = XSTRING (string)->size;      e = SCHARS (string);
671    else    else
672      {      {
673        CHECK_NUMBER (end);        CHECK_NUMBER (end);
# Line 683  string_display_width (string, beg, end) Line 683  string_display_width (string, beg, end)
683      }      }
684    
685    /* Make a pointer for decrementing through the chars before point.  */    /* Make a pointer for decrementing through the chars before point.  */
686    ptr = XSTRING (string)->data + e;    ptr = SDATA (string) + e;
687    /* Make a pointer to where consecutive chars leave off,    /* Make a pointer to where consecutive chars leave off,
688       going backwards from point.  */       going backwards from point.  */
689    stop = XSTRING (string)->data + b;    stop = SDATA (string) + b;
690    
691    if (tab_width <= 0 || tab_width > 1000) tab_width = 8;    if (tab_width <= 0 || tab_width > 1000) tab_width = 8;
692    

Legend:
Removed from v.1.153  
changed lines
  Added in v.1.154

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