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 | |
| 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')
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/cus-start.el | 8 | ||||
| -rw-r--r-- | lisp/term/ns-win.el | 3 |
3 files changed, 19 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 867972ed140..f3275116a9b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2010-10-10 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * term/ns-win.el (ns-right-alternate-modifier): New defvar. | ||
| 4 | (ns-right-option-modifier): New alias for ns-right-alternate-modifier. | ||
| 5 | (mac-right-option-modifier): New alias for ns-right-option-modifier. | ||
| 6 | |||
| 7 | * cus-start.el (all): ns-right-alternate-modifier is new. | ||
| 8 | |||
| 1 | 2010-10-10 Andreas Schwab <schwab@linux-m68k.org> | 9 | 2010-10-10 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 10 | ||
| 3 | * Makefile.in (ELCFILES): Update. | 11 | * Makefile.in (ELCFILES): Update. |
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 30678a09bb8..0f686a434e0 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -266,6 +266,14 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of | |||
| 266 | (const control) (const meta) | 266 | (const control) (const meta) |
| 267 | (const alt) (const hyper) | 267 | (const alt) (const hyper) |
| 268 | (const super)) "23.1") | 268 | (const super)) "23.1") |
| 269 | (ns-right-alternate-modifier | ||
| 270 | ns | ||
| 271 | (choice (const :tag "No modifier (work as alternate/option)" none) | ||
| 272 | (const :tag "Use the value of ns-alternate-modifier" | ||
| 273 | left) | ||
| 274 | (const control) (const meta) | ||
| 275 | (const alt) (const hyper) | ||
| 276 | (const super)) "23.3") | ||
| 269 | (ns-function-modifier | 277 | (ns-function-modifier |
| 270 | ns | 278 | ns |
| 271 | (choice (const :tag "No modifier (work as function)" none) | 279 | (choice (const :tag "No modifier (work as function)" none) |
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) |