aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-11-24 08:20:16 +0000
committerYAMAMOTO Mitsuharu2005-11-24 08:20:16 +0000
commitf2d8779be3517d7508981f7d562a5a4ee50784c5 (patch)
tree28a273058f6fb7c3d9047d2c3888751c0a74d2b3 /src
parentd0aeb9af35389a56896d2c760a2ca777a2701a84 (diff)
downloademacs-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.c84
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
202static Lisp_Object Qalt, Qhyper, Qsuper, Qctrl, 202static Lisp_Object Qalt, Qhyper, Qsuper, Qcontrol,
203 Qmeta, Qmodifier_value; 203 Qmeta, Qmodifier_value;
204 204
205extern int inhibit_window_system; 205extern 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.
10988The value can be `alt', `ctrl', `hyper', or `super' for the respective 10988The value can be `alt', `control', `hyper', or `super' for the
10989modifier. The default is `ctrl'. */); 10989respective 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.
10994The value can be `alt', `ctrl', `hyper', or `super' for the respective 10994The value can be `alt', `control', `hyper', or `super' for the
10995modifier. If the value is nil then the key will act as the normal 10995respective modifier. If the value is nil then the key will act as the
10996Mac control modifier, and the option key can be used to compose 10996normal Mac control modifier, and the option key can be used to compose
10997characters depending on the chosen Mac keyboard setting. */); 10997characters 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.
11002The value can be `alt', `ctrl', `hyper', or `super' for the respective 11002The value can be `alt', `control', `hyper', or `super' for the
11003modifier. The default is `meta'. */); 11003respective 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.
11008The value can be `alt', `ctrl', `hyper', or `super' for the respective 11008The value can be `alt', `control', `hyper', or `super' for the
11009modifier. Note that remapping the function key may lead to unexpected 11009respective modifier. Note that remapping the function key may lead to
11010results for some keys on non-US/GB keyboards. */); 11010unexpected 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.
11016mouse button, the click will register as mouse-2 and while the 11016The value can be nil, t, or the symbol `reverse'.
11017command-key is held down, the click will register as mouse-3. 11017nil means that no emulation should be done and the modifiers should be
11018'reverse means that the option-key will register for mouse-3 11018placed on the mouse-1 event.
11019and the command-key will register for mouse-2. nil means that 11019t means that when the option-key is held down while pressing the mouse
11020no emulation should be done and the modifiers should be placed 11020button, the click will register as mouse-2 and while the command-key
11021on the mouse-1 event. */); 11021is held down, the click will register as mouse-3.
11022The symbol `reverse' means that the option-key will register for
11023mouse-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.
11027the right click will be mouse-3. 11029Otherwise, the right click will be treated as mouse-2 and the wheel
11028Otherwise, the right click will be mouse-2 and the wheel button mouse-3.*/); 11030button 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. */);
11033Toolbox 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. */);
11038Toolbox 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.
11054Each entry should be of the form: 11054Each entry should be of the form:
11055 11055
11056 (CHARSET-NAME TEXT-ENCODING CODING-SYSTEM) 11056 (CHARSET-NAME TEXT-ENCODING CODING-SYSTEM)
11057 11057
11058where CHARSET-NAME is a string used in font names to identify the 11058where CHARSET-NAME is a string used in font names to identify the
11059charset, TEXT-ENCODING is a TextEncodingBase value, and CODING_SYSTEM 11059charset, TEXT-ENCODING is a TextEncodingBase value in Mac, and
11060is a coding system corresponding to TEXT-ENCODING. */); 11060CODING_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);