aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-12 21:58:16 +0000
committerRichard M. Stallman1993-05-12 21:58:16 +0000
commitdb6f9d952ef975a6cd09e6c2134d1e19d16c18ac (patch)
tree67ab4bdf87aa095eefd195003f29ced9441c1381 /src
parent8b86c9ebbffd33f158d64ea4402ddbfddacc493a (diff)
downloademacs-db6f9d952ef975a6cd09e6c2134d1e19d16c18ac.tar.gz
emacs-db6f9d952ef975a6cd09e6c2134d1e19d16c18ac.zip
(Faccessible_keymaps): Use whatever size the vector has.
(Fwhere_is_internal): Likewise. (describe_vector): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 096a6ca1e4a..5c9daec24d4 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1024,7 +1024,7 @@ so that the KEYS increase in length. The first element is (\"\" . KEYMAP).")
1024 register int i; 1024 register int i;
1025 1025
1026 /* Vector keymap. Scan all the elements. */ 1026 /* Vector keymap. Scan all the elements. */
1027 for (i = 0; i < DENSE_TABLE_SIZE; i++) 1027 for (i = 0; i < XVECTOR (elt)->size; i++)
1028 { 1028 {
1029 register Lisp_Object tem; 1029 register Lisp_Object tem;
1030 register Lisp_Object cmd; 1030 register Lisp_Object cmd;
@@ -1417,7 +1417,7 @@ indirect definition itself.")
1417 /* If we've just finished scanning a vector, advance map 1417 /* If we've just finished scanning a vector, advance map
1418 to the next element, and reset i in anticipation of the 1418 to the next element, and reset i in anticipation of the
1419 next vector we may find. */ 1419 next vector we may find. */
1420 if (i >= DENSE_TABLE_SIZE) 1420 if (i >= XVECTOR (elt)->size)
1421 { 1421 {
1422 map = XCONS (map)->cdr; 1422 map = XCONS (map)->cdr;
1423 i = 0; 1423 i = 0;
@@ -1896,7 +1896,7 @@ describe_vector (vector, elt_prefix, elt_describer, partial, shadow)
1896 if (partial) 1896 if (partial)
1897 suppress = intern ("suppress-keymap"); 1897 suppress = intern ("suppress-keymap");
1898 1898
1899 for (i = 0; i < DENSE_TABLE_SIZE; i++) 1899 for (i = 0; i < XVECTOR (vector)->size; i++)
1900 { 1900 {
1901 QUIT; 1901 QUIT;
1902 tem1 = get_keyelt (XVECTOR (vector)->contents[i]); 1902 tem1 = get_keyelt (XVECTOR (vector)->contents[i]);
@@ -1941,7 +1941,7 @@ describe_vector (vector, elt_prefix, elt_describer, partial, shadow)
1941 insert1 (this); 1941 insert1 (this);
1942 1942
1943 /* Find all consecutive characters that have the same definition. */ 1943 /* Find all consecutive characters that have the same definition. */
1944 while (i + 1 < DENSE_TABLE_SIZE 1944 while (i + 1 < XVECTOR (vector)->size
1945 && (tem2 = get_keyelt (XVECTOR (vector)->contents[i+1]), 1945 && (tem2 = get_keyelt (XVECTOR (vector)->contents[i+1]),
1946 EQ (tem2, tem1))) 1946 EQ (tem2, tem1)))
1947 i++; 1947 i++;