HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a8fd50e
)
(Fcall_interactively): Use next_event only if less
author
Andreas Schwab
<schwab@suse.de>
Mon, 2 Dec 2002 23:30:54 +0000
(23:30 +0000)
committer
Andreas Schwab
<schwab@suse.de>
Mon, 2 Dec 2002 23:30:54 +0000
(23:30 +0000)
than key_count.
src/callint.c
patch
|
blob
|
blame
|
history
diff --git
a/src/callint.c
b/src/callint.c
index
b4b1e19
..
4552b22
100644
(file)
--- a/
src/callint.c
+++ b/
src/callint.c
@@
-409,7
+409,9
@@
supply if the command inquires which events were used to invoke it. */)
{
Lisp_Object event;
- event = XVECTOR (keys)->contents[next_event];
+ event = (next_event < key_count
+ ? XVECTOR (keys)->contents[next_event]
+ : Qnil);
if (EVENT_HAS_PARAMETERS (event)
&& (event = XCDR (event), CONSP (event))
&& (event = XCAR (event), CONSP (event))