diff options
| author | Paul Eggert | 2011-03-14 18:39:30 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-14 18:39:30 -0700 |
| commit | 62137a95f36f5d8b1d43e805811c8f7a15cb8f44 (patch) | |
| tree | aa4eabdf511d08f533dfb03314471bd5e932e672 /src | |
| parent | 5716756ee39eacd9bb08a20f46ac1424bf182f86 (diff) | |
| download | emacs-62137a95f36f5d8b1d43e805811c8f7a15cb8f44.tar.gz emacs-62137a95f36f5d8b1d43e805811c8f7a15cb8f44.zip | |
* minibuf.c (Ftry_completion, Fall_completions): Rename or remove locals
to avoid shadowing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/minibuf.c | 42 |
2 files changed, 22 insertions, 22 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6354508250e..2fb5e03ca96 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2011-03-15 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-15 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * minibuf.c (choose_minibuf_frame_1): Now static. | 3 | * minibuf.c (choose_minibuf_frame_1): Now static. |
| 4 | (Ftry_completion, Fall_completions): Rename or remove locals | ||
| 5 | to avoid shadowing. | ||
| 4 | 6 | ||
| 5 | * marker.c (bytepos_to_charpos): Remove; unused. | 7 | * marker.c (bytepos_to_charpos): Remove; unused. |
| 6 | 8 | ||
diff --git a/src/minibuf.c b/src/minibuf.c index caf41115305..8ff861b2403 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1212,7 +1212,7 @@ is used to further constrain the set of candidates. */) | |||
| 1212 | && (!SYMBOLP (XCAR (collection)) | 1212 | && (!SYMBOLP (XCAR (collection)) |
| 1213 | || NILP (XCAR (collection))))) | 1213 | || NILP (XCAR (collection))))) |
| 1214 | ? list_table : function_table)); | 1214 | ? list_table : function_table)); |
| 1215 | int index = 0, obsize = 0; | 1215 | int idx = 0, obsize = 0; |
| 1216 | int matchcount = 0; | 1216 | int matchcount = 0; |
| 1217 | int bindcount = -1; | 1217 | int bindcount = -1; |
| 1218 | Lisp_Object bucket, zero, end, tem; | 1218 | Lisp_Object bucket, zero, end, tem; |
| @@ -1231,7 +1231,7 @@ is used to further constrain the set of candidates. */) | |||
| 1231 | { | 1231 | { |
| 1232 | collection = check_obarray (collection); | 1232 | collection = check_obarray (collection); |
| 1233 | obsize = XVECTOR (collection)->size; | 1233 | obsize = XVECTOR (collection)->size; |
| 1234 | bucket = XVECTOR (collection)->contents[index]; | 1234 | bucket = XVECTOR (collection)->contents[idx]; |
| 1235 | } | 1235 | } |
| 1236 | 1236 | ||
| 1237 | while (1) | 1237 | while (1) |
| @@ -1262,23 +1262,23 @@ is used to further constrain the set of candidates. */) | |||
| 1262 | else | 1262 | else |
| 1263 | XSETFASTINT (bucket, 0); | 1263 | XSETFASTINT (bucket, 0); |
| 1264 | } | 1264 | } |
| 1265 | else if (++index >= obsize) | 1265 | else if (++idx >= obsize) |
| 1266 | break; | 1266 | break; |
| 1267 | else | 1267 | else |
| 1268 | { | 1268 | { |
| 1269 | bucket = XVECTOR (collection)->contents[index]; | 1269 | bucket = XVECTOR (collection)->contents[idx]; |
| 1270 | continue; | 1270 | continue; |
| 1271 | } | 1271 | } |
| 1272 | } | 1272 | } |
| 1273 | else /* if (type == hash_table) */ | 1273 | else /* if (type == hash_table) */ |
| 1274 | { | 1274 | { |
| 1275 | while (index < HASH_TABLE_SIZE (XHASH_TABLE (collection)) | 1275 | while (idx < HASH_TABLE_SIZE (XHASH_TABLE (collection)) |
| 1276 | && NILP (HASH_HASH (XHASH_TABLE (collection), index))) | 1276 | && NILP (HASH_HASH (XHASH_TABLE (collection), idx))) |
| 1277 | index++; | 1277 | idx++; |
| 1278 | if (index >= HASH_TABLE_SIZE (XHASH_TABLE (collection))) | 1278 | if (idx >= HASH_TABLE_SIZE (XHASH_TABLE (collection))) |
| 1279 | break; | 1279 | break; |
| 1280 | else | 1280 | else |
| 1281 | elt = eltstring = HASH_KEY (XHASH_TABLE (collection), index++); | 1281 | elt = eltstring = HASH_KEY (XHASH_TABLE (collection), idx++); |
| 1282 | } | 1282 | } |
| 1283 | 1283 | ||
| 1284 | /* Is this element a possible completion? */ | 1284 | /* Is this element a possible completion? */ |
| @@ -1333,7 +1333,7 @@ is used to further constrain the set of candidates. */) | |||
| 1333 | tem = (type == hash_table | 1333 | tem = (type == hash_table |
| 1334 | ? call2 (predicate, elt, | 1334 | ? call2 (predicate, elt, |
| 1335 | HASH_VALUE (XHASH_TABLE (collection), | 1335 | HASH_VALUE (XHASH_TABLE (collection), |
| 1336 | index - 1)) | 1336 | idx - 1)) |
| 1337 | : call1 (predicate, elt)); | 1337 | : call1 (predicate, elt)); |
| 1338 | UNGCPRO; | 1338 | UNGCPRO; |
| 1339 | } | 1339 | } |
| @@ -1477,7 +1477,7 @@ with a space are ignored unless STRING itself starts with a space. */) | |||
| 1477 | : NILP (collection) || (CONSP (collection) | 1477 | : NILP (collection) || (CONSP (collection) |
| 1478 | && (!SYMBOLP (XCAR (collection)) | 1478 | && (!SYMBOLP (XCAR (collection)) |
| 1479 | || NILP (XCAR (collection)))); | 1479 | || NILP (XCAR (collection)))); |
| 1480 | int index = 0, obsize = 0; | 1480 | int idx = 0, obsize = 0; |
| 1481 | int bindcount = -1; | 1481 | int bindcount = -1; |
| 1482 | Lisp_Object bucket, tem, zero; | 1482 | Lisp_Object bucket, tem, zero; |
| 1483 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 1483 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
| @@ -1494,7 +1494,7 @@ with a space are ignored unless STRING itself starts with a space. */) | |||
| 1494 | { | 1494 | { |
| 1495 | collection = check_obarray (collection); | 1495 | collection = check_obarray (collection); |
| 1496 | obsize = XVECTOR (collection)->size; | 1496 | obsize = XVECTOR (collection)->size; |
| 1497 | bucket = XVECTOR (collection)->contents[index]; | 1497 | bucket = XVECTOR (collection)->contents[idx]; |
| 1498 | } | 1498 | } |
| 1499 | 1499 | ||
| 1500 | while (1) | 1500 | while (1) |
| @@ -1525,23 +1525,23 @@ with a space are ignored unless STRING itself starts with a space. */) | |||
| 1525 | else | 1525 | else |
| 1526 | XSETFASTINT (bucket, 0); | 1526 | XSETFASTINT (bucket, 0); |
| 1527 | } | 1527 | } |
| 1528 | else if (++index >= obsize) | 1528 | else if (++idx >= obsize) |
| 1529 | break; | 1529 | break; |
| 1530 | else | 1530 | else |
| 1531 | { | 1531 | { |
| 1532 | bucket = XVECTOR (collection)->contents[index]; | 1532 | bucket = XVECTOR (collection)->contents[idx]; |
| 1533 | continue; | 1533 | continue; |
| 1534 | } | 1534 | } |
| 1535 | } | 1535 | } |
| 1536 | else /* if (type == 3) */ | 1536 | else /* if (type == 3) */ |
| 1537 | { | 1537 | { |
| 1538 | while (index < HASH_TABLE_SIZE (XHASH_TABLE (collection)) | 1538 | while (idx < HASH_TABLE_SIZE (XHASH_TABLE (collection)) |
| 1539 | && NILP (HASH_HASH (XHASH_TABLE (collection), index))) | 1539 | && NILP (HASH_HASH (XHASH_TABLE (collection), idx))) |
| 1540 | index++; | 1540 | idx++; |
| 1541 | if (index >= HASH_TABLE_SIZE (XHASH_TABLE (collection))) | 1541 | if (idx >= HASH_TABLE_SIZE (XHASH_TABLE (collection))) |
| 1542 | break; | 1542 | break; |
| 1543 | else | 1543 | else |
| 1544 | elt = eltstring = HASH_KEY (XHASH_TABLE (collection), index++); | 1544 | elt = eltstring = HASH_KEY (XHASH_TABLE (collection), idx++); |
| 1545 | } | 1545 | } |
| 1546 | 1546 | ||
| 1547 | /* Is this element a possible completion? */ | 1547 | /* Is this element a possible completion? */ |
| @@ -1566,8 +1566,6 @@ with a space are ignored unless STRING itself starts with a space. */) | |||
| 1566 | { | 1566 | { |
| 1567 | /* Yes. */ | 1567 | /* Yes. */ |
| 1568 | Lisp_Object regexps; | 1568 | Lisp_Object regexps; |
| 1569 | Lisp_Object zero; | ||
| 1570 | XSETFASTINT (zero, 0); | ||
| 1571 | 1569 | ||
| 1572 | /* Ignore this element if it fails to match all the regexps. */ | 1570 | /* Ignore this element if it fails to match all the regexps. */ |
| 1573 | { | 1571 | { |
| @@ -1603,7 +1601,7 @@ with a space are ignored unless STRING itself starts with a space. */) | |||
| 1603 | GCPRO4 (tail, eltstring, allmatches, string); | 1601 | GCPRO4 (tail, eltstring, allmatches, string); |
| 1604 | tem = type == 3 | 1602 | tem = type == 3 |
| 1605 | ? call2 (predicate, elt, | 1603 | ? call2 (predicate, elt, |
| 1606 | HASH_VALUE (XHASH_TABLE (collection), index - 1)) | 1604 | HASH_VALUE (XHASH_TABLE (collection), idx - 1)) |
| 1607 | : call1 (predicate, elt); | 1605 | : call1 (predicate, elt); |
| 1608 | UNGCPRO; | 1606 | UNGCPRO; |
| 1609 | } | 1607 | } |