diff options
| author | Jan Djärv | 2010-10-11 21:18:08 +0200 |
|---|---|---|
| committer | Jan Djärv | 2010-10-11 21:18:08 +0200 |
| commit | a2e35ef5d52031e0fa184d1863fe7cb7043ef637 (patch) | |
| tree | 0e4178b0a917a2ed632776bb769b07482af2ab9a /lisp/term | |
| parent | 9386ae128af79d61278bd3686d56f3624f9cc5bd (diff) | |
| download | emacs-a2e35ef5d52031e0fa184d1863fe7cb7043ef637.tar.gz emacs-a2e35ef5d52031e0fa184d1863fe7cb7043ef637.zip | |
Bug#7150: Distinguishing between left and right Alt keys on NextStep/OSX.
* lisp/cus-start.el (all): ns-right-alternate-modifier is new.
* lisp/term/ns-win.el (ns-right-alternate-modifier): New defvar.
(ns-right-option-modifier): New alias for ns-right-alternate-modifier.
(mac-right-option-modifier): New alias for ns-right-option-modifier.
* src/nsterm.m (Qleft): Declare.
(ns_right_alternate_modifier): New variable
(NSRightAlternateKeyMask): New define.
(EV_MODIFIERS): Parse NSRightAlternateKeyMask if
ns_right_alternate_modifier isn't Qleft.
(keyDown): If ns_right_alternate_modifier isn't Qleft, use it
as emacs modifier for NSRightAlternateKeyMask.
(syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/ns-win.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index a53d0346d94..b9177b2b432 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -66,6 +66,7 @@ | |||
| 66 | ;; nsterm.m | 66 | ;; nsterm.m |
| 67 | (defvar ns-version-string) | 67 | (defvar ns-version-string) |
| 68 | (defvar ns-alternate-modifier) | 68 | (defvar ns-alternate-modifier) |
| 69 | (defvar ns-right-alternate-modifier) | ||
| 69 | 70 | ||
| 70 | ;;;; Command line argument handling. | 71 | ;;;; Command line argument handling. |
| 71 | 72 | ||
| @@ -286,6 +287,7 @@ The properties returned may include `top', `left', `height', and `width'." | |||
| 286 | (defvaralias 'mac-command-modifier 'ns-command-modifier) | 287 | (defvaralias 'mac-command-modifier 'ns-command-modifier) |
| 287 | (defvaralias 'mac-control-modifier 'ns-control-modifier) | 288 | (defvaralias 'mac-control-modifier 'ns-control-modifier) |
| 288 | (defvaralias 'mac-option-modifier 'ns-option-modifier) | 289 | (defvaralias 'mac-option-modifier 'ns-option-modifier) |
| 290 | (defvaralias 'mac-right-option-modifier 'ns-right-option-modifier) | ||
| 289 | (defvaralias 'mac-function-modifier 'ns-function-modifier) | 291 | (defvaralias 'mac-function-modifier 'ns-function-modifier) |
| 290 | (declare-function ns-do-applescript "nsfns.m" (script)) | 292 | (declare-function ns-do-applescript "nsfns.m" (script)) |
| 291 | (defalias 'do-applescript 'ns-do-applescript) | 293 | (defalias 'do-applescript 'ns-do-applescript) |
| @@ -817,6 +819,7 @@ unless the current buffer is a scratch buffer." | |||
| 817 | 819 | ||
| 818 | ;; You say tomAYto, I say tomAHto.. | 820 | ;; You say tomAYto, I say tomAHto.. |
| 819 | (defvaralias 'ns-option-modifier 'ns-alternate-modifier) | 821 | (defvaralias 'ns-option-modifier 'ns-alternate-modifier) |
| 822 | (defvaralias 'ns-right-option-modifier 'ns-right-alternate-modifier) | ||
| 820 | 823 | ||
| 821 | (defun ns-do-hide-emacs () | 824 | (defun ns-do-hide-emacs () |
| 822 | (interactive) | 825 | (interactive) |