# HG changeset patch # User Richard M. Stallman # Date 766447099 0 # Node ID 34435700529da748f8ce9b9e6c037257686e922b # Parent b97b29f3ea7ae58172df564eb2e4b844fd1b65b7 (modify_event_symbol): Use the cdr of the alist entry. Whenever value is nil, intern a new symbol. diff -r b97b29f3ea7a -r 34435700529d src/keyboard.c --- a/src/keyboard.c Fri Apr 15 21:55:25 1994 +0000 +++ b/src/keyboard.c Fri Apr 15 21:58:19 1994 +0000 @@ -3195,10 +3195,11 @@ { /* No; let's create it. */ if (!NILP (name_alist)) - value = Fassq (symbol_int, name_alist); + value = Fcdr_safe (Fassq (symbol_int, name_alist)); else if (name_table[symbol_num]) value = intern (name_table[symbol_num]); - else + + if (NILP (value)) { char buf[20]; sprintf (buf, "key-%d", symbol_num);