diff options
| author | Paul Eggert | 2011-03-18 17:16:45 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-18 17:16:45 -0700 |
| commit | 8f5201aeebe612c1028a5912d81280b67b94039a (patch) | |
| tree | 95c5ef0ebe112fa87d716bfb7491dcf9180ebb5f /src | |
| parent | 760fbc2c7d8c1f3e8b38583c28d655f11f9bc0e2 (diff) | |
| download | emacs-8f5201aeebe612c1028a5912d81280b67b94039a.tar.gz emacs-8f5201aeebe612c1028a5912d81280b67b94039a.zip | |
* composite.c (composition_compute_stop_pos): Rename local to
avoid shadowing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/composite.c | 17 |
2 files changed, 13 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b614091bdbb..1aa87aec661 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-03-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * composite.c (composition_compute_stop_pos): Rename local to | ||
| 4 | avoid shadowing. | ||
| 5 | |||
| 1 | 2011-03-18 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-03-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | character.h: Rename locals to avoid shadowing. | 8 | character.h: Rename locals to avoid shadowing. |
diff --git a/src/composite.c b/src/composite.c index 0b0602bf283..ddb0004b15b 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -1115,7 +1115,7 @@ composition_compute_stop_pos (struct composition_it *cmp_it, EMACS_INT charpos, | |||
| 1115 | if (! NILP (val)) | 1115 | if (! NILP (val)) |
| 1116 | { | 1116 | { |
| 1117 | Lisp_Object elt; | 1117 | Lisp_Object elt; |
| 1118 | int ridx, back, len; | 1118 | int ridx, back, blen; |
| 1119 | 1119 | ||
| 1120 | for (ridx = 0; CONSP (val); val = XCDR (val), ridx++) | 1120 | for (ridx = 0; CONSP (val); val = XCDR (val), ridx++) |
| 1121 | { | 1121 | { |
| @@ -1132,17 +1132,17 @@ composition_compute_stop_pos (struct composition_it *cmp_it, EMACS_INT charpos, | |||
| 1132 | bpos = (NILP (string) ? CHAR_TO_BYTE (cpos) | 1132 | bpos = (NILP (string) ? CHAR_TO_BYTE (cpos) |
| 1133 | : string_char_to_byte (string, cpos)); | 1133 | : string_char_to_byte (string, cpos)); |
| 1134 | if (STRINGP (AREF (elt, 0))) | 1134 | if (STRINGP (AREF (elt, 0))) |
| 1135 | len = fast_looking_at (AREF (elt, 0), cpos, bpos, | 1135 | blen = fast_looking_at (AREF (elt, 0), cpos, bpos, |
| 1136 | start + 1, limit, string); | 1136 | start + 1, limit, string); |
| 1137 | else | 1137 | else |
| 1138 | len = 1; | 1138 | blen = 1; |
| 1139 | if (len > 0) | 1139 | if (blen > 0) |
| 1140 | { | 1140 | { |
| 1141 | /* Make CPOS point to the last character of | 1141 | /* Make CPOS point to the last character of |
| 1142 | match. Note that LEN is byte-length. */ | 1142 | match. Note that BLEN is byte-length. */ |
| 1143 | if (len > 1) | 1143 | if (blen > 1) |
| 1144 | { | 1144 | { |
| 1145 | bpos += len; | 1145 | bpos += blen; |
| 1146 | if (NILP (string)) | 1146 | if (NILP (string)) |
| 1147 | cpos = BYTE_TO_CHAR (bpos) - 1; | 1147 | cpos = BYTE_TO_CHAR (bpos) - 1; |
| 1148 | else | 1148 | else |
| @@ -2032,4 +2032,3 @@ See also the documentation of `auto-composition-mode'. */); | |||
| 2032 | defsubr (&Sfind_composition_internal); | 2032 | defsubr (&Sfind_composition_internal); |
| 2033 | defsubr (&Scomposition_get_gstring); | 2033 | defsubr (&Scomposition_get_gstring); |
| 2034 | } | 2034 | } |
| 2035 | |||