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

Diff of /emacs/src/search.c

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

revision 1.162.2.2 by handa, Tue May 7 12:46:21 2002 UTC revision 1.162.2.3 by handa, Tue Aug 20 08:32:34 2002 UTC
# Line 2245  since only regular expressions have dist Line 2245  since only regular expressions have dist
2245      {      {
2246        /* Decide how to casify by examining the matched text. */        /* Decide how to casify by examining the matched text. */
2247        int last;        int last;
2248          int multibyte;
2249    
2250        pos = search_regs.start[sub];        pos = search_regs.start[sub];
2251        last = search_regs.end[sub];        last = search_regs.end[sub];
2252    
2253        if (NILP (string))        if (NILP (string))
2254          pos_byte = CHAR_TO_BYTE (pos);          {
2255              pos_byte = CHAR_TO_BYTE (pos);
2256              multibyte = ! NILP (current_buffer->enable_multibyte_characters);
2257        else        else
2258          pos_byte = string_char_to_byte (string, pos);          {
2259              pos_byte = string_char_to_byte (string, pos);
2260              multibyte = STRING_MULTIBYTE (string);
2261            }
2262    
2263        prevc = '\n';        prevc = '\n';
2264        case_action = all_caps;        case_action = all_caps;
# Line 2273  since only regular expressions have dist Line 2279  since only regular expressions have dist
2279              }              }
2280            else            else
2281              FETCH_STRING_CHAR_ADVANCE (c, string, pos, pos_byte);              FETCH_STRING_CHAR_ADVANCE (c, string, pos, pos_byte);
2282              if (! multibyte)
2283                {
2284                  MAKE_CHAR_MULTIBYTE (c);
2285                }
2286    
2287            if (LOWERCASEP (c))            if (LOWERCASEP (c))
2288              {              {

Legend:
Removed from v.1.162.2.2  
changed lines
  Added in v.1.162.2.3

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