diff options
| author | YAMAMOTO Mitsuharu | 2005-11-24 08:20:16 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-11-24 08:20:16 +0000 |
| commit | f2d8779be3517d7508981f7d562a5a4ee50784c5 (patch) | |
| tree | 28a273058f6fb7c3d9047d2c3888751c0a74d2b3 /src | |
| parent | d0aeb9af35389a56896d2c760a2ca777a2701a84 (diff) | |
| download | emacs-f2d8779be3517d7508981f7d562a5a4ee50784c5.tar.gz emacs-f2d8779be3517d7508981f7d562a5a4ee50784c5.zip | |
(Qcontrol): Rename from Qctrl. All uses changed.
(syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
Qsuper, and Qmodifier_value.
(Vmac_control_modifier, Vmac_option_modifier)
(Vmac_command_modifier, Vmac_function_modifier)
(Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
(Vmac_pass_command_to_system, Vmac_pass_control_to_system)
(Vmac_charset_info_alist): Doc fixes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macterm.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/macterm.c b/src/macterm.c index 1153efda18c..babb009f022 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -199,7 +199,7 @@ extern EMACS_INT extra_keyboard_modifiers; | |||
| 199 | 199 | ||
| 200 | /* The keysyms to use for the various modifiers. */ | 200 | /* The keysyms to use for the various modifiers. */ |
| 201 | 201 | ||
| 202 | static Lisp_Object Qalt, Qhyper, Qsuper, Qctrl, | 202 | static Lisp_Object Qalt, Qhyper, Qsuper, Qcontrol, |
| 203 | Qmeta, Qmodifier_value; | 203 | Qmeta, Qmodifier_value; |
| 204 | 204 | ||
| 205 | extern int inhibit_window_system; | 205 | extern int inhibit_window_system; |
| @@ -10922,17 +10922,19 @@ syms_of_macterm () | |||
| 10922 | x_error_message_string = Qnil; | 10922 | x_error_message_string = Qnil; |
| 10923 | #endif | 10923 | #endif |
| 10924 | 10924 | ||
| 10925 | Qcontrol = intern ("control"); staticpro (&Qcontrol); | ||
| 10926 | Qmeta = intern ("meta"); staticpro (&Qmeta); | ||
| 10927 | Qalt = intern ("alt"); staticpro (&Qalt); | ||
| 10928 | Qhyper = intern ("hyper"); staticpro (&Qhyper); | ||
| 10929 | Qsuper = intern ("super"); staticpro (&Qsuper); | ||
| 10925 | Qmodifier_value = intern ("modifier-value"); | 10930 | Qmodifier_value = intern ("modifier-value"); |
| 10926 | Qctrl = intern ("ctrl"); | 10931 | staticpro (&Qmodifier_value); |
| 10927 | Fput (Qctrl, Qmodifier_value, make_number (ctrl_modifier)); | 10932 | |
| 10928 | Qmeta = intern ("meta"); | 10933 | Fput (Qcontrol, Qmodifier_value, make_number (ctrl_modifier)); |
| 10929 | Fput (Qmeta, Qmodifier_value, make_number (meta_modifier)); | 10934 | Fput (Qmeta, Qmodifier_value, make_number (meta_modifier)); |
| 10930 | Qalt = intern ("alt"); | 10935 | Fput (Qalt, Qmodifier_value, make_number (alt_modifier)); |
| 10931 | Fput (Qalt, Qmodifier_value, make_number (alt_modifier)); | 10936 | Fput (Qhyper, Qmodifier_value, make_number (hyper_modifier)); |
| 10932 | Qhyper = intern ("hyper"); | 10937 | Fput (Qsuper, Qmodifier_value, make_number (super_modifier)); |
| 10933 | Fput (Qhyper, Qmodifier_value, make_number (hyper_modifier)); | ||
| 10934 | Qsuper = intern ("super"); | ||
| 10935 | Fput (Qsuper, Qmodifier_value, make_number (super_modifier)); | ||
| 10936 | 10938 | ||
| 10937 | Qapplication = intern ("application"); staticpro (&Qapplication); | 10939 | Qapplication = intern ("application"); staticpro (&Qapplication); |
| 10938 | Qabout = intern ("about"); staticpro (&Qabout); | 10940 | Qabout = intern ("about"); staticpro (&Qabout); |
| @@ -10979,63 +10981,61 @@ syms_of_macterm () | |||
| 10979 | staticpro (&last_mouse_motion_frame); | 10981 | staticpro (&last_mouse_motion_frame); |
| 10980 | last_mouse_motion_frame = Qnil; | 10982 | last_mouse_motion_frame = Qnil; |
| 10981 | 10983 | ||
| 10982 | |||
| 10983 | |||
| 10984 | /* Variables to configure modifier key assignment. */ | 10984 | /* Variables to configure modifier key assignment. */ |
| 10985 | 10985 | ||
| 10986 | DEFVAR_LISP ("mac-control-modifier", &Vmac_control_modifier, | 10986 | DEFVAR_LISP ("mac-control-modifier", &Vmac_control_modifier, |
| 10987 | doc: /* Modifier key assumed when the Mac control key is pressed. | 10987 | doc: /* Modifier key assumed when the Mac control key is pressed. |
| 10988 | The value can be `alt', `ctrl', `hyper', or `super' for the respective | 10988 | The value can be `alt', `control', `hyper', or `super' for the |
| 10989 | modifier. The default is `ctrl'. */); | 10989 | respective modifier. The default is `control'. */); |
| 10990 | Vmac_control_modifier = Qctrl; | 10990 | Vmac_control_modifier = Qcontrol; |
| 10991 | 10991 | ||
| 10992 | DEFVAR_LISP ("mac-option-modifier", &Vmac_option_modifier, | 10992 | DEFVAR_LISP ("mac-option-modifier", &Vmac_option_modifier, |
| 10993 | doc: /* Modifier key assumed when the Mac alt/option key is pressed. | 10993 | doc: /* Modifier key assumed when the Mac alt/option key is pressed. |
| 10994 | The value can be `alt', `ctrl', `hyper', or `super' for the respective | 10994 | The value can be `alt', `control', `hyper', or `super' for the |
| 10995 | modifier. If the value is nil then the key will act as the normal | 10995 | respective modifier. If the value is nil then the key will act as the |
| 10996 | Mac control modifier, and the option key can be used to compose | 10996 | normal Mac control modifier, and the option key can be used to compose |
| 10997 | characters depending on the chosen Mac keyboard setting. */); | 10997 | characters depending on the chosen Mac keyboard setting. */); |
| 10998 | Vmac_option_modifier = Qnil; | 10998 | Vmac_option_modifier = Qnil; |
| 10999 | 10999 | ||
| 11000 | DEFVAR_LISP ("mac-command-modifier", &Vmac_command_modifier, | 11000 | DEFVAR_LISP ("mac-command-modifier", &Vmac_command_modifier, |
| 11001 | doc: /* Modifier key assumed when the Mac command key is pressed. | 11001 | doc: /* Modifier key assumed when the Mac command key is pressed. |
| 11002 | The value can be `alt', `ctrl', `hyper', or `super' for the respective | 11002 | The value can be `alt', `control', `hyper', or `super' for the |
| 11003 | modifier. The default is `meta'. */); | 11003 | respective modifier. The default is `meta'. */); |
| 11004 | Vmac_command_modifier = Qmeta; | 11004 | Vmac_command_modifier = Qmeta; |
| 11005 | 11005 | ||
| 11006 | DEFVAR_LISP ("mac-function-modifier", &Vmac_function_modifier, | 11006 | DEFVAR_LISP ("mac-function-modifier", &Vmac_function_modifier, |
| 11007 | doc: /* Modifier key assumed when the Mac function key is pressed. | 11007 | doc: /* Modifier key assumed when the Mac function key is pressed. |
| 11008 | The value can be `alt', `ctrl', `hyper', or `super' for the respective | 11008 | The value can be `alt', `control', `hyper', or `super' for the |
| 11009 | modifier. Note that remapping the function key may lead to unexpected | 11009 | respective modifier. Note that remapping the function key may lead to |
| 11010 | results for some keys on non-US/GB keyboards. */); | 11010 | unexpected results for some keys on non-US/GB keyboards. */); |
| 11011 | Vmac_function_modifier = Qnil; | 11011 | Vmac_function_modifier = Qnil; |
| 11012 | 11012 | ||
| 11013 | DEFVAR_LISP ("mac-emulate-three-button-mouse", | 11013 | DEFVAR_LISP ("mac-emulate-three-button-mouse", |
| 11014 | &Vmac_emulate_three_button_mouse, | 11014 | &Vmac_emulate_three_button_mouse, |
| 11015 | doc: /* t means that when the option-key is held down while pressing the | 11015 | doc: /* Specify a way of three button mouse emulation. |
| 11016 | mouse button, the click will register as mouse-2 and while the | 11016 | The value can be nil, t, or the symbol `reverse'. |
| 11017 | command-key is held down, the click will register as mouse-3. | 11017 | nil means that no emulation should be done and the modifiers should be |
| 11018 | 'reverse means that the option-key will register for mouse-3 | 11018 | placed on the mouse-1 event. |
| 11019 | and the command-key will register for mouse-2. nil means that | 11019 | t means that when the option-key is held down while pressing the mouse |
| 11020 | no emulation should be done and the modifiers should be placed | 11020 | button, the click will register as mouse-2 and while the command-key |
| 11021 | on the mouse-1 event. */); | 11021 | is held down, the click will register as mouse-3. |
| 11022 | The symbol `reverse' means that the option-key will register for | ||
| 11023 | mouse-3 and the command-key will register for mouse-2. */); | ||
| 11022 | Vmac_emulate_three_button_mouse = Qnil; | 11024 | Vmac_emulate_three_button_mouse = Qnil; |
| 11023 | 11025 | ||
| 11024 | #if USE_CARBON_EVENTS | 11026 | #if USE_CARBON_EVENTS |
| 11025 | DEFVAR_LISP ("mac-wheel-button-is-mouse-2", &Vmac_wheel_button_is_mouse_2, | 11027 | DEFVAR_LISP ("mac-wheel-button-is-mouse-2", &Vmac_wheel_button_is_mouse_2, |
| 11026 | doc: /* Non-nil means that the wheel button will be treated as mouse-2 and | 11028 | doc: /* Non-nil if the wheel button is mouse-2 and the right click mouse-3. |
| 11027 | the right click will be mouse-3. | 11029 | Otherwise, the right click will be treated as mouse-2 and the wheel |
| 11028 | Otherwise, the right click will be mouse-2 and the wheel button mouse-3.*/); | 11030 | button will be mouse-3. */); |
| 11029 | Vmac_wheel_button_is_mouse_2 = Qt; | 11031 | Vmac_wheel_button_is_mouse_2 = Qt; |
| 11030 | 11032 | ||
| 11031 | DEFVAR_LISP ("mac-pass-command-to-system", &Vmac_pass_command_to_system, | 11033 | DEFVAR_LISP ("mac-pass-command-to-system", &Vmac_pass_command_to_system, |
| 11032 | doc: /* If non-nil, the Mac \"Command\" key is passed on to the Mac | 11034 | doc: /* Non-nil if command key presses are passed on to the Mac Toolbox. */); |
| 11033 | Toolbox for processing before Emacs sees it. */); | ||
| 11034 | Vmac_pass_command_to_system = Qt; | 11035 | Vmac_pass_command_to_system = Qt; |
| 11035 | 11036 | ||
| 11036 | DEFVAR_LISP ("mac-pass-control-to-system", &Vmac_pass_control_to_system, | 11037 | DEFVAR_LISP ("mac-pass-control-to-system", &Vmac_pass_control_to_system, |
| 11037 | doc: /* If non-nil, the Mac \"Control\" key is passed on to the Mac | 11038 | doc: /* Non-nil if control key presses are passed on to the Mac Toolbox. */); |
| 11038 | Toolbox for processing before Emacs sees it. */); | ||
| 11039 | Vmac_pass_control_to_system = Qt; | 11039 | Vmac_pass_control_to_system = Qt; |
| 11040 | 11040 | ||
| 11041 | #endif | 11041 | #endif |
| @@ -11050,14 +11050,14 @@ may anti-alias the text. */); | |||
| 11050 | creating the terminal frame on Mac OS 9 before loading | 11050 | creating the terminal frame on Mac OS 9 before loading |
| 11051 | term/mac-win.elc. */ | 11051 | term/mac-win.elc. */ |
| 11052 | DEFVAR_LISP ("mac-charset-info-alist", &Vmac_charset_info_alist, | 11052 | DEFVAR_LISP ("mac-charset-info-alist", &Vmac_charset_info_alist, |
| 11053 | doc: /* Alist linking Emacs character sets to Mac text encoding and Emacs coding system. | 11053 | doc: /* Alist of Emacs character sets vs text encodings and coding systems. |
| 11054 | Each entry should be of the form: | 11054 | Each entry should be of the form: |
| 11055 | 11055 | ||
| 11056 | (CHARSET-NAME TEXT-ENCODING CODING-SYSTEM) | 11056 | (CHARSET-NAME TEXT-ENCODING CODING-SYSTEM) |
| 11057 | 11057 | ||
| 11058 | where CHARSET-NAME is a string used in font names to identify the | 11058 | where CHARSET-NAME is a string used in font names to identify the |
| 11059 | charset, TEXT-ENCODING is a TextEncodingBase value, and CODING_SYSTEM | 11059 | charset, TEXT-ENCODING is a TextEncodingBase value in Mac, and |
| 11060 | is a coding system corresponding to TEXT-ENCODING. */); | 11060 | CODING_SYSTEM is a coding system corresponding to TEXT-ENCODING. */); |
| 11061 | Vmac_charset_info_alist = | 11061 | Vmac_charset_info_alist = |
| 11062 | Fcons (list3 (build_string ("mac-roman"), | 11062 | Fcons (list3 (build_string ("mac-roman"), |
| 11063 | make_number (smRoman), Qnil), Qnil); | 11063 | make_number (smRoman), Qnil), Qnil); |