diff options
| author | Andrew Choi | 2002-06-18 04:41:13 +0000 |
|---|---|---|
| committer | Andrew Choi | 2002-06-18 04:41:13 +0000 |
| commit | b432b4424cfb5c1575deae51f6548a81c9da4af8 (patch) | |
| tree | 764fdbc6186585df61e6f2bcce2b9c665881c5e7 /src | |
| parent | b8fc5a9cde7ddcd5df172a98d0d0275f2c391fdc (diff) | |
| download | emacs-b432b4424cfb5c1575deae51f6548a81c9da4af8.tar.gz emacs-b432b4424cfb5c1575deae51f6548a81c9da4af8.zip | |
2002-06-17 Andrew Choi <akochoi@shaw.ca>
* macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
test Mac command key as <ALT> key.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/macterm.c | 10 |
2 files changed, 16 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f8a4818d8d2..76f09a4712c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-06-17 Andrew Choi <akochoi@shaw.ca> | ||
| 2 | |||
| 3 | * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil, | ||
| 4 | test Mac command key as <ALT> key. | ||
| 5 | |||
| 1 | 2002-06-17 Stefan Monnier <monnier@cs.yale.edu> | 6 | 2002-06-17 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 7 | ||
| 3 | * window.c (Fset_window_configuration): Lisp_Object/int mixup. | 8 | * window.c (Fset_window_configuration): Lisp_Object/int mixup. |
| @@ -12,6 +17,9 @@ | |||
| 12 | 17 | ||
| 13 | 2002-06-17 Andrew Choi <akochoi@shaw.ca> | 18 | 2002-06-17 Andrew Choi <akochoi@shaw.ca> |
| 14 | 19 | ||
| 20 | * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil, | ||
| 21 | test Mac command key as <ALT> key. | ||
| 22 | |||
| 15 | * mac.c (do_applescript): Call initialize_applescript if necessary | 23 | * mac.c (do_applescript): Call initialize_applescript if necessary |
| 16 | when first called. Dispose of result_desc only when there is no error. | 24 | when first called. Dispose of result_desc only when there is no error. |
| 17 | (Fdo_applescript): Use %d format specifier instead of %ld. | 25 | (Fdo_applescript): Use %d format specifier instead of %ld. |
diff --git a/src/macterm.c b/src/macterm.c index f3258cbb7fe..dacc63ffe96 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -12616,11 +12616,17 @@ XTread_socket (int sd, struct input_event *bufp, int numchars, int expected) | |||
| 12616 | the_modifiers |= shift_modifier; | 12616 | the_modifiers |= shift_modifier; |
| 12617 | if (er.modifiers & controlKey) | 12617 | if (er.modifiers & controlKey) |
| 12618 | the_modifiers |= ctrl_modifier; | 12618 | the_modifiers |= ctrl_modifier; |
| 12619 | /* use option or command key as meta depending on value of | 12619 | /* Use option or command key as meta depending on value of |
| 12620 | mac-command-key-is-meta */ | 12620 | mac-command-key-is-meta. */ |
| 12621 | if (er.modifiers | 12621 | if (er.modifiers |
| 12622 | & (NILP (Vmac_command_key_is_meta) ? optionKey : cmdKey)) | 12622 | & (NILP (Vmac_command_key_is_meta) ? optionKey : cmdKey)) |
| 12623 | the_modifiers |= meta_modifier; | 12623 | the_modifiers |= meta_modifier; |
| 12624 | |||
| 12625 | /* If the Mac option key is meta, then make Emacs recognize | ||
| 12626 | the Mac command key as alt. */ | ||
| 12627 | if (NILP (Vmac_command_key_is_meta) && (er.modifiers & cmdKey)) | ||
| 12628 | the_modifiers |= alt_modifier; | ||
| 12629 | |||
| 12624 | bufp->modifiers = the_modifiers; | 12630 | bufp->modifiers = the_modifiers; |
| 12625 | 12631 | ||
| 12626 | { | 12632 | { |