Mercurial > emacs
comparison src/coding.c @ 47942:080b4586492b
Fix typo in comment.
| author | Juanma Barranquero <lekktu@gmail.com> |
|---|---|
| date | Fri, 18 Oct 2002 10:09:43 +0000 |
| parents | 1a71f916ad2f |
| children | d43e830821e0 |
comparison
equal
deleted
inserted
replaced
| 47941:df5fb1f2c113 | 47942:080b4586492b |
|---|---|
| 6311 move_gap_both (to, to_byte); | 6311 move_gap_both (to, to_byte); |
| 6312 /* If we an anchor byte `\0' follows the region, we include it in | 6312 /* If we an anchor byte `\0' follows the region, we include it in |
| 6313 the detecting source. Then code detectors can handle the tailing | 6313 the detecting source. Then code detectors can handle the tailing |
| 6314 byte sequence more accurately. | 6314 byte sequence more accurately. |
| 6315 | 6315 |
| 6316 Fix me: This is not an perfect solution. It is better that we | 6316 Fix me: This is not a perfect solution. It is better that we |
| 6317 add one more argument, say LAST_BLOCK, to all detect_coding_XXX. | 6317 add one more argument, say LAST_BLOCK, to all detect_coding_XXX. |
| 6318 */ | 6318 */ |
| 6319 if (to == Z || (to == GPT && GAP_SIZE > 0)) | 6319 if (to == Z || (to == GPT && GAP_SIZE > 0)) |
| 6320 include_anchor_byte = 1; | 6320 include_anchor_byte = 1; |
| 6321 return detect_coding_system (BYTE_POS_ADDR (from_byte), | 6321 return detect_coding_system (BYTE_POS_ADDR (from_byte), |
| 6536 pos_list = Qnil; | 6536 pos_list = Qnil; |
| 6537 while (p < pend) | 6537 while (p < pend) |
| 6538 { | 6538 { |
| 6539 int len; | 6539 int len; |
| 6540 int c = STRING_CHAR_AND_LENGTH (p, MAX_MULTIBYTE_LENGTH, len); | 6540 int c = STRING_CHAR_AND_LENGTH (p, MAX_MULTIBYTE_LENGTH, len); |
| 6541 | 6541 |
| 6542 if (c >= 128 | 6542 if (c >= 128 |
| 6543 && (CHAR_TABLE_P (safe_chars) | 6543 && (CHAR_TABLE_P (safe_chars) |
| 6544 ? NILP (CHAR_TABLE_REF (safe_chars, c)) | 6544 ? NILP (CHAR_TABLE_REF (safe_chars, c)) |
| 6545 : (NILP (safe_chars) || c < 256))) | 6545 : (NILP (safe_chars) || c < 256))) |
| 6546 { | 6546 { |
