mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 00:01:33 -08:00
(Fdefine_key): Improve error message when KEY begins with a non-prefix key.
This commit is contained in:
parent
cc1eecfd88
commit
9abc5f4519
2 changed files with 10 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-04-30 Richard Stallman <rms@gnu.org>
|
||||
|
||||
* keymap.c (Fdefine_key): Improve error message
|
||||
when KEY begins with a non-prefix key.
|
||||
|
||||
2006-04-30 Martin Rudalics <rudalics@gmx.at> (tiny change)
|
||||
|
||||
* syntax.c (Fforward_comment): Don't forget to break out of the loop
|
||||
|
|
|
|||
|
|
@ -1193,8 +1193,11 @@ binding KEY to DEF is added at the front of KEYMAP. */)
|
|||
if (!CONSP (keymap))
|
||||
/* We must use Fkey_description rather than just passing key to
|
||||
error; key might be a vector, not a string. */
|
||||
error ("Key sequence %s uses invalid prefix characters",
|
||||
SDATA (Fkey_description (key, Qnil)));
|
||||
error ("Key sequence %s starts with non-prefix key %s",
|
||||
SDATA (Fkey_description (key, Qnil)),
|
||||
SDATA (Fkey_description (Fsubstring (key, make_number (0),
|
||||
make_number (idx)),
|
||||
Qnil)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue