aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 7ff3f471b0f..c609ed6c4e4 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1186,8 +1186,11 @@ binding KEY to DEF is added at the front of KEYMAP. */)
1186 if (!CONSP (keymap)) 1186 if (!CONSP (keymap))
1187 /* We must use Fkey_description rather than just passing key to 1187 /* We must use Fkey_description rather than just passing key to
1188 error; key might be a vector, not a string. */ 1188 error; key might be a vector, not a string. */
1189 error ("Key sequence %s uses invalid prefix characters", 1189 error ("Key sequence %s starts with non-prefix key %s",
1190 SDATA (Fkey_description (key, Qnil))); 1190 SDATA (Fkey_description (key, Qnil)),
1191 SDATA (Fkey_description (Fsubstring (key, make_number (0),
1192 make_number (idx)),
1193 Qnil)));
1191 } 1194 }
1192} 1195}
1193 1196