• Jim Blandy's avatar
    * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, in · d82222e1
    Jim Blandy authored
    	case we need them.
    	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
    	shift_modifier, ctrl_modifier, meta_modifier): Define these in
    	terms of the CHAR_mumble macros, to avoid having the same thing
    	defined in two places.
    
    	Make the modifier manipulation functions more robust.  The old way
    	caused a bug once, and probably would again.
    	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
    	shift_modifier, ctrl_modifier, meta_modifier): Shift these all
    	down one bit in value, to avoid sign extension problems.
    	* lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too.
    	* keyboard.c (lispy_modifier_list): Ignore modifier bits beyond
    	what our table of modifier names can handle.
    	(apply_modifiers): Don't abort if you see extra modifier bits,
    	just remove them.
    d82222e1
termhooks.h 12.4 KB