comparison src/w32fns.c @ 90609:bb0e318b7c53

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 447-459) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 141-144) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-115
author Miles Bader <miles@gnu.org>
date Tue, 03 Oct 2006 05:04:21 +0000
parents 6823a91487f2 9ce57eb0c589
children 8dd8c8286063
comparison
equal deleted inserted replaced
90608:1bc627bac080 90609:bb0e318b7c53
8669 DEFVAR_LISP ("w32-color-map", &Vw32_color_map, 8669 DEFVAR_LISP ("w32-color-map", &Vw32_color_map,
8670 doc: /* An array of color name mappings for Windows. */); 8670 doc: /* An array of color name mappings for Windows. */);
8671 Vw32_color_map = Qnil; 8671 Vw32_color_map = Qnil;
8672 8672
8673 DEFVAR_LISP ("w32-pass-alt-to-system", &Vw32_pass_alt_to_system, 8673 DEFVAR_LISP ("w32-pass-alt-to-system", &Vw32_pass_alt_to_system,
8674 doc: /* Non-nil if alt key presses are passed on to Windows. 8674 doc: /* Non-nil if Alt key presses are passed on to Windows.
8675 When non-nil, for example, alt pressed and released and then space will 8675 When non-nil, for example, Alt pressed and released and then space will
8676 open the System menu. When nil, Emacs silently swallows alt key events. */); 8676 open the System menu. When nil, Emacs processes the Alt key events, and
8677 then silently swallows them. */);
8677 Vw32_pass_alt_to_system = Qnil; 8678 Vw32_pass_alt_to_system = Qnil;
8678 8679
8679 DEFVAR_LISP ("w32-alt-is-meta", &Vw32_alt_is_meta, 8680 DEFVAR_LISP ("w32-alt-is-meta", &Vw32_alt_is_meta,
8680 doc: /* Non-nil if the alt key is to be considered the same as the meta key. 8681 doc: /* Non-nil if the Alt key is to be considered the same as the META key.
8681 When nil, Emacs will translate the alt key to the Alt modifier, and not Meta. */); 8682 When nil, Emacs will translate the Alt key to the ALT modifier, not to META. */);
8682 Vw32_alt_is_meta = Qt; 8683 Vw32_alt_is_meta = Qt;
8683 8684
8684 DEFVAR_INT ("w32-quit-key", &w32_quit_key, 8685 DEFVAR_INT ("w32-quit-key", &w32_quit_key,
8685 doc: /* If non-zero, the virtual key code for an alternative quit key. */); 8686 doc: /* If non-zero, the virtual key code for an alternative quit key. */);
8686 w32_quit_key = 0; 8687 w32_quit_key = 0;
8687 8688
8688 DEFVAR_LISP ("w32-pass-lwindow-to-system", 8689 DEFVAR_LISP ("w32-pass-lwindow-to-system",
8689 &Vw32_pass_lwindow_to_system, 8690 &Vw32_pass_lwindow_to_system,
8690 doc: /* Non-nil if the left \"Windows\" key is passed on to Windows. 8691 doc: /* If non-nil, the left \"Windows\" key is passed on to Windows.
8691 When non-nil, the Start menu is opened by tapping the key. */); 8692
8693 When non-nil, the Start menu is opened by tapping the key.
8694 If you set this to nil, the left \"Windows\" key is processed by Emacs
8695 according to the value of `w32-lwindow-modifier', which see.
8696
8697 Note that some combinations of the left \"Windows\" key with other keys are
8698 caught by Windows at low level, and so binding them in Emacs will have no
8699 effect. For example, <lwindow>-r always pops up the Windows Run dialog,
8700 <lwindow>-<Pause> pops up the "System Properties" dialog, etc. However, see
8701 the doc string of `w32-phantom-key-code'. */);
8692 Vw32_pass_lwindow_to_system = Qt; 8702 Vw32_pass_lwindow_to_system = Qt;
8693 8703
8694 DEFVAR_LISP ("w32-pass-rwindow-to-system", 8704 DEFVAR_LISP ("w32-pass-rwindow-to-system",
8695 &Vw32_pass_rwindow_to_system, 8705 &Vw32_pass_rwindow_to_system,
8696 doc: /* Non-nil if the right \"Windows\" key is passed on to Windows. 8706 doc: /* If non-nil, the right \"Windows\" key is passed on to Windows.
8697 When non-nil, the Start menu is opened by tapping the key. */); 8707
8708 When non-nil, the Start menu is opened by tapping the key.
8709 If you set this to nil, the right \"Windows\" key is processed by Emacs
8710 according to the value of `w32-rwindow-modifier', which see.
8711
8712 Note that some combinations of the right \"Windows\" key with other keys are
8713 caught by Windows at low level, and so binding them in Emacs will have no
8714 effect. For example, <rwindow>-r always pops up the Windows Run dialog,
8715 <rwindow>-<Pause> pops up the "System Properties" dialog, etc. However, see
8716 the doc string of `w32-phantom-key-code'. */);
8698 Vw32_pass_rwindow_to_system = Qt; 8717 Vw32_pass_rwindow_to_system = Qt;
8699 8718
8700 DEFVAR_LISP ("w32-phantom-key-code", 8719 DEFVAR_LISP ("w32-phantom-key-code",
8701 &Vw32_phantom_key_code, 8720 &Vw32_phantom_key_code,
8702 doc: /* Virtual key code used to generate \"phantom\" key presses. 8721 doc: /* Virtual key code used to generate \"phantom\" key presses.
8709 means that this hack won't interfere with any real key code. */ 8728 means that this hack won't interfere with any real key code. */
8710 XSETINT (Vw32_phantom_key_code, 255); 8729 XSETINT (Vw32_phantom_key_code, 255);
8711 8730
8712 DEFVAR_LISP ("w32-enable-num-lock", 8731 DEFVAR_LISP ("w32-enable-num-lock",
8713 &Vw32_enable_num_lock, 8732 &Vw32_enable_num_lock,
8714 doc: /* Non-nil if Num Lock should act normally. 8733 doc: /* If non-nil, the Num Lock key acts normally.
8715 Set to nil to see Num Lock as the key `kp-numlock'. */); 8734 Set to nil to handle Num Lock as the `kp-numlock' key. */);
8716 Vw32_enable_num_lock = Qt; 8735 Vw32_enable_num_lock = Qt;
8717 8736
8718 DEFVAR_LISP ("w32-enable-caps-lock", 8737 DEFVAR_LISP ("w32-enable-caps-lock",
8719 &Vw32_enable_caps_lock, 8738 &Vw32_enable_caps_lock,
8720 doc: /* Non-nil if Caps Lock should act normally. 8739 doc: /* If non-nil, the Caps Lock key acts normally.
8721 Set to nil to see Caps Lock as the key `capslock'. */); 8740 Set to nil to handle Caps Lock as the `capslock' key. */);
8722 Vw32_enable_caps_lock = Qt; 8741 Vw32_enable_caps_lock = Qt;
8723 8742
8724 DEFVAR_LISP ("w32-scroll-lock-modifier", 8743 DEFVAR_LISP ("w32-scroll-lock-modifier",
8725 &Vw32_scroll_lock_modifier, 8744 &Vw32_scroll_lock_modifier,
8726 doc: /* Modifier to use for the Scroll Lock on state. 8745 doc: /* Modifier to use for the Scroll Lock ON state.
8727 The value can be hyper, super, meta, alt, control or shift for the 8746 The value can be hyper, super, meta, alt, control or shift for the
8728 respective modifier, or nil to see Scroll Lock as the key `scroll'. 8747 respective modifier, or nil to handle Scroll Lock as the `scroll' key.
8729 Any other value will cause the key to be ignored. */); 8748 Any other value will cause the Scroll Lock key to be ignored. */);
8730 Vw32_scroll_lock_modifier = Qt; 8749 Vw32_scroll_lock_modifier = Qt;
8731 8750
8732 DEFVAR_LISP ("w32-lwindow-modifier", 8751 DEFVAR_LISP ("w32-lwindow-modifier",
8733 &Vw32_lwindow_modifier, 8752 &Vw32_lwindow_modifier,
8734 doc: /* Modifier to use for the left \"Windows\" key. 8753 doc: /* Modifier to use for the left \"Windows\" key.
8735 The value can be hyper, super, meta, alt, control or shift for the 8754 The value can be hyper, super, meta, alt, control or shift for the
8736 respective modifier, or nil to appear as the key `lwindow'. 8755 respective modifier, or nil to appear as the `lwindow' key.
8737 Any other value will cause the key to be ignored. */); 8756 Any other value will cause the key to be ignored. */);
8738 Vw32_lwindow_modifier = Qnil; 8757 Vw32_lwindow_modifier = Qnil;
8739 8758
8740 DEFVAR_LISP ("w32-rwindow-modifier", 8759 DEFVAR_LISP ("w32-rwindow-modifier",
8741 &Vw32_rwindow_modifier, 8760 &Vw32_rwindow_modifier,
8742 doc: /* Modifier to use for the right \"Windows\" key. 8761 doc: /* Modifier to use for the right \"Windows\" key.
8743 The value can be hyper, super, meta, alt, control or shift for the 8762 The value can be hyper, super, meta, alt, control or shift for the
8744 respective modifier, or nil to appear as the key `rwindow'. 8763 respective modifier, or nil to appear as the `rwindow' key.
8745 Any other value will cause the key to be ignored. */); 8764 Any other value will cause the key to be ignored. */);
8746 Vw32_rwindow_modifier = Qnil; 8765 Vw32_rwindow_modifier = Qnil;
8747 8766
8748 DEFVAR_LISP ("w32-apps-modifier", 8767 DEFVAR_LISP ("w32-apps-modifier",
8749 &Vw32_apps_modifier, 8768 &Vw32_apps_modifier,
8750 doc: /* Modifier to use for the \"Apps\" key. 8769 doc: /* Modifier to use for the \"Apps\" key.
8751 The value can be hyper, super, meta, alt, control or shift for the 8770 The value can be hyper, super, meta, alt, control or shift for the
8752 respective modifier, or nil to appear as the key `apps'. 8771 respective modifier, or nil to appear as the `apps' key.
8753 Any other value will cause the key to be ignored. */); 8772 Any other value will cause the key to be ignored. */);
8754 Vw32_apps_modifier = Qnil; 8773 Vw32_apps_modifier = Qnil;
8755 8774
8756 DEFVAR_BOOL ("w32-enable-synthesized-fonts", &w32_enable_synthesized_fonts, 8775 DEFVAR_BOOL ("w32-enable-synthesized-fonts", &w32_enable_synthesized_fonts,
8757 doc: /* Non-nil enables selection of artificially italicized and bold fonts. */); 8776 doc: /* Non-nil enables selection of artificially italicized and bold fonts. */);
8763 8782
8764 DEFVAR_INT ("w32-mouse-button-tolerance", 8783 DEFVAR_INT ("w32-mouse-button-tolerance",
8765 &w32_mouse_button_tolerance, 8784 &w32_mouse_button_tolerance,
8766 doc: /* Analogue of double click interval for faking middle mouse events. 8785 doc: /* Analogue of double click interval for faking middle mouse events.
8767 The value is the minimum time in milliseconds that must elapse between 8786 The value is the minimum time in milliseconds that must elapse between
8768 left/right button down events before they are considered distinct events. 8787 left and right button down events before they are considered distinct events.
8769 If both mouse buttons are depressed within this interval, a middle mouse 8788 If both mouse buttons are depressed within this interval, a middle mouse
8770 button down event is generated instead. */); 8789 button down event is generated instead. */);
8771 w32_mouse_button_tolerance = GetDoubleClickTime () / 2; 8790 w32_mouse_button_tolerance = GetDoubleClickTime () / 2;
8772 8791
8773 DEFVAR_INT ("w32-mouse-move-interval", 8792 DEFVAR_INT ("w32-mouse-move-interval",
8778 reported as lisp events. */); 8797 reported as lisp events. */);
8779 w32_mouse_move_interval = 0; 8798 w32_mouse_move_interval = 0;
8780 8799
8781 DEFVAR_BOOL ("w32-pass-extra-mouse-buttons-to-system", 8800 DEFVAR_BOOL ("w32-pass-extra-mouse-buttons-to-system",
8782 &w32_pass_extra_mouse_buttons_to_system, 8801 &w32_pass_extra_mouse_buttons_to_system,
8783 doc: /* Non-nil if the fourth and fifth mouse buttons are passed to Windows. 8802 doc: /* If non-nil, the fourth and fifth mouse buttons are passed to Windows.
8784 Recent versions of Windows support mice with up to five buttons. 8803 Recent versions of Windows support mice with up to five buttons.
8785 Since most applications don't support these extra buttons, most mouse 8804 Since most applications don't support these extra buttons, most mouse
8786 drivers will allow you to map them to functions at the system level. 8805 drivers will allow you to map them to functions at the system level.
8787 If this variable is non-nil, Emacs will pass them on, allowing the 8806 If this variable is non-nil, Emacs will pass them on, allowing the
8788 system to handle them. */); 8807 system to handle them. */);