comparison src/keyboard.c @ 86099:48dc79c663f4

* subr.el (event-modifiers): Use internal-event-symbol-parse-modifiers. * keyboard.c (Fevent_symbol_parse_modifiers): New function. (syms_of_keyboard): Defsubr it.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 15 Nov 2007 16:03:00 +0000
parents 70564a109512
children ebee80eef208
comparison
equal deleted inserted replaced
86098:388dd3c79510 86099:48dc79c663f4
6543 6543
6544 return elements; 6544 return elements;
6545 } 6545 }
6546 } 6546 }
6547 6547
6548 DEFUN ("internal-event-symbol-parse-modifiers", Fevent_symbol_parse_modifiers,
6549 Sevent_symbol_parse_modifiers, 1, 1, 0,
6550 doc: /* Parse the event symbol. For internal use. */)
6551 (symbol)
6552 {
6553 /* Fill the cache if needed. */
6554 parse_modifiers (symbol);
6555 /* Ignore the result (which is stored on Qevent_symbol_element_mask)
6556 and use the Lispier representation stored on Qevent_symbol_elements
6557 instead. */
6558 return Fget (symbol, Qevent_symbol_elements);
6559 }
6560
6548 /* Apply the modifiers MODIFIERS to the symbol BASE. 6561 /* Apply the modifiers MODIFIERS to the symbol BASE.
6549 BASE must be unmodified. 6562 BASE must be unmodified.
6550 6563
6551 This is like apply_modifiers_uncached, but uses BASE's 6564 This is like apply_modifiers_uncached, but uses BASE's
6552 Qmodifier_cache property, if present. It also builds 6565 Qmodifier_cache property, if present. It also builds
11944 11957
11945 help_form_saved_window_configs = Qnil; 11958 help_form_saved_window_configs = Qnil;
11946 staticpro (&help_form_saved_window_configs); 11959 staticpro (&help_form_saved_window_configs);
11947 11960
11948 defsubr (&Scurrent_idle_time); 11961 defsubr (&Scurrent_idle_time);
11962 defsubr (&Sevent_symbol_parse_modifiers);
11949 defsubr (&Sevent_convert_list); 11963 defsubr (&Sevent_convert_list);
11950 defsubr (&Sread_key_sequence); 11964 defsubr (&Sread_key_sequence);
11951 defsubr (&Sread_key_sequence_vector); 11965 defsubr (&Sread_key_sequence_vector);
11952 defsubr (&Srecursive_edit); 11966 defsubr (&Srecursive_edit);
11953 #if defined (HAVE_MOUSE) || defined (HAVE_GPM) 11967 #if defined (HAVE_MOUSE) || defined (HAVE_GPM)