]> git.eshelyaron.com Git - emacs.git/commitdiff
(modify_event_symbol): Return nil if out of range.
authorRichard M. Stallman <rms@gnu.org>
Sun, 5 Jun 1994 18:28:57 +0000 (18:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 5 Jun 1994 18:28:57 +0000 (18:28 +0000)
Include systime.h after xterm.h.

src/keyboard.c

index d7f6851874bbd37072bd6ee370e506eba312c878..b24ac159300f9cd2b679e4c28d14917bfcd80ae3 100644 (file)
@@ -51,13 +51,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "syssignal.h"
 #include "systty.h"
-#include "systime.h"
 
 /* This is to get the definitions of the XK_ symbols.  */
 #ifdef HAVE_X_WINDOWS
 #include "xterm.h"
 #endif
 
+/* Include systime.h after xterm.h to avoid double inclusion of time.h. */
+#include "systime.h"
+
 extern int errno;
 
 /* Variables for blockinput.h: */
@@ -3247,7 +3249,7 @@ modify_event_symbol (symbol_num, modifiers, symbol_kind, name_alist,
 
   /* Is this a request for a valid symbol?  */
   if (symbol_num < 0 || symbol_num >= table_size)
-    abort ();
+    return Qnil;
 
   if (CONSP (*symbol_table))
     value = Fcdr (assq_no_quit (symbol_int, *symbol_table));