diff options
| author | Richard M. Stallman | 1995-10-07 22:00:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-07 22:00:06 +0000 |
| commit | b5585f5c189bc0779936a673281025025103ee12 (patch) | |
| tree | a078924542d820ca85e2812319ee7998f2441467 /src | |
| parent | 8ea151b23b874bc3802fc228d828cf91b9cf5ffb (diff) | |
| download | emacs-b5585f5c189bc0779936a673281025025103ee12.tar.gz emacs-b5585f5c189bc0779936a673281025025103ee12.zip | |
(describe_vector): Use Flength to get length of vector.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c index fd98df15d2b..b7cb8486056 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2295,6 +2295,7 @@ describe_vector (vector, elt_prefix, elt_describer, | |||
| 2295 | Lisp_Object suppress; | 2295 | Lisp_Object suppress; |
| 2296 | Lisp_Object kludge; | 2296 | Lisp_Object kludge; |
| 2297 | int first = 1; | 2297 | int first = 1; |
| 2298 | int size; | ||
| 2298 | struct gcpro gcpro1, gcpro2, gcpro3; | 2299 | struct gcpro gcpro1, gcpro2, gcpro3; |
| 2299 | 2300 | ||
| 2300 | definition = Qnil; | 2301 | definition = Qnil; |
| @@ -2308,7 +2309,10 @@ describe_vector (vector, elt_prefix, elt_describer, | |||
| 2308 | if (partial) | 2309 | if (partial) |
| 2309 | suppress = intern ("suppress-keymap"); | 2310 | suppress = intern ("suppress-keymap"); |
| 2310 | 2311 | ||
| 2311 | for (i = 0; i < XVECTOR (vector)->size; i++) | 2312 | /* This does the right thing for char-tables as well as ordinary vectors. */ |
| 2313 | size = XFASTINT (Flength (vector)); | ||
| 2314 | |||
| 2315 | for (i = 0; i < size; i++) | ||
| 2312 | { | 2316 | { |
| 2313 | QUIT; | 2317 | QUIT; |
| 2314 | definition = get_keyelt (XVECTOR (vector)->contents[i], 0); | 2318 | definition = get_keyelt (XVECTOR (vector)->contents[i], 0); |