diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-03-07 09:29:36 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-03-07 09:29:36 +0000 |
commit | 55782a8bec5b4f5d08fe821ff31058b359887339 (patch) | |
tree | 15bc6b5f85a0120fdb1da92beeb7dc5162ebf233 /src/termhooks.h | |
parent | 6ebbe81e5b6cccade4c874ff9b430f597b2453dd (diff) | |
download | emacs-55782a8bec5b4f5d08fe821ff31058b359887339.tar.gz |
(alt_modifier, super_modifier, hyper_modifier):
(shift_modifier, ctrl_modifier, meta_modifier):
Renumber the bits.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r-- | src/termhooks.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index 9a96b046e4c..4d07f67ecfb 100644 --- a/src/termhooks.h +++ b/src/termhooks.h @@ -1,6 +1,6 @@ /* Hooks by which low level terminal operations can be made to call other routines. - Copyright (C) 1985, 1986, 1992, 1993 Free Software Foundation, Inc. + Copyright (C) 1985, 1986, 1993 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -284,19 +284,20 @@ enum { up_modifier = 1, /* Only used on mouse buttons - always turned into a click or a drag modifier before lisp code sees the event. */ - alt_modifier = 2, /* Under X, the XK_Alt_[LR] keysyms. */ - ctrl_modifier = 4, - hyper_modifier= 8, /* Under X, the XK_Hyper_[LR] keysyms. */ - meta_modifier = 16, /* Under X, the XK_Meta_[LR] keysyms. */ - shift_modifier= 32, - super_modifier= 64, /* Under X, the XK_Super_[LR] keysyms. */ down_modifier = 128, /* Only used on mouse buttons. */ drag_modifier = 256, /* This is never used in the event queue; it's only used internally by the window-system-independent code. */ click_modifier= 512, /* See drag_modifier. */ - last_modifier /* This should always be one more than the - highest modifier bit defined. */ + + /* The next four modifier bits are used also + in keyboard events at the Lisp level. */ + alt_modifier = 0x040000, /* Under X, the XK_Alt_[LR] keysyms. */ + super_modifier= 0x080000, /* Under X, the XK_Super_[LR] keysyms. */ + hyper_modifier= 0x100000, /* Under X, the XK_Hyper_[LR] keysyms. */ + shift_modifier= 0x200000, + ctrl_modifier = 0x400000, + meta_modifier = 0x800000, /* Under X, the XK_Meta_[LR] keysyms. */ }; #endif |