aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-05 18:28:57 +0000
committerRichard M. Stallman1994-06-05 18:28:57 +0000
commit0c2611c5b9cbf5a5ddcfac7ab8a2fa7cfb4edb47 (patch)
tree76f82660356bc3997a63a148dd18b125e2870170 /src/keyboard.c
parent75231bad05057500b760bb117265933da817ce22 (diff)
downloademacs-0c2611c5b9cbf5a5ddcfac7ab8a2fa7cfb4edb47.tar.gz
emacs-0c2611c5b9cbf5a5ddcfac7ab8a2fa7cfb4edb47.zip
(modify_event_symbol): Return nil if out of range.
Include systime.h after xterm.h.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index d7f6851874b..b24ac159300 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -51,13 +51,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
51 51
52#include "syssignal.h" 52#include "syssignal.h"
53#include "systty.h" 53#include "systty.h"
54#include "systime.h"
55 54
56/* This is to get the definitions of the XK_ symbols. */ 55/* This is to get the definitions of the XK_ symbols. */
57#ifdef HAVE_X_WINDOWS 56#ifdef HAVE_X_WINDOWS
58#include "xterm.h" 57#include "xterm.h"
59#endif 58#endif
60 59
60/* Include systime.h after xterm.h to avoid double inclusion of time.h. */
61#include "systime.h"
62
61extern int errno; 63extern int errno;
62 64
63/* Variables for blockinput.h: */ 65/* Variables for blockinput.h: */
@@ -3247,7 +3249,7 @@ modify_event_symbol (symbol_num, modifiers, symbol_kind, name_alist,
3247 3249
3248 /* Is this a request for a valid symbol? */ 3250 /* Is this a request for a valid symbol? */
3249 if (symbol_num < 0 || symbol_num >= table_size) 3251 if (symbol_num < 0 || symbol_num >= table_size)
3250 abort (); 3252 return Qnil;
3251 3253
3252 if (CONSP (*symbol_table)) 3254 if (CONSP (*symbol_table))
3253 value = Fcdr (assq_no_quit (symbol_int, *symbol_table)); 3255 value = Fcdr (assq_no_quit (symbol_int, *symbol_table));