# HG changeset patch # User Andrew Choi # Date 1024375273 0 # Node ID 61b39d1554ee03a2a836f3b8249b4e7f7224c1a6 # Parent 8aa6e4d588ce5b0529159f99e45ce8530f970b92 2002-06-17 Andrew Choi * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil, test Mac command key as key. diff -r 8aa6e4d588ce -r 61b39d1554ee src/ChangeLog --- a/src/ChangeLog Mon Jun 17 22:22:03 2002 +0000 +++ b/src/ChangeLog Tue Jun 18 04:41:13 2002 +0000 @@ -1,3 +1,8 @@ +2002-06-17 Andrew Choi + + * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil, + test Mac command key as key. + 2002-06-17 Stefan Monnier * window.c (Fset_window_configuration): Lisp_Object/int mixup. @@ -12,6 +17,9 @@ 2002-06-17 Andrew Choi + * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil, + test Mac command key as key. + * mac.c (do_applescript): Call initialize_applescript if necessary when first called. Dispose of result_desc only when there is no error. (Fdo_applescript): Use %d format specifier instead of %ld. diff -r 8aa6e4d588ce -r 61b39d1554ee src/macterm.c --- a/src/macterm.c Mon Jun 17 22:22:03 2002 +0000 +++ b/src/macterm.c Tue Jun 18 04:41:13 2002 +0000 @@ -12616,11 +12616,17 @@ the_modifiers |= shift_modifier; if (er.modifiers & controlKey) the_modifiers |= ctrl_modifier; - /* use option or command key as meta depending on value of - mac-command-key-is-meta */ + /* Use option or command key as meta depending on value of + mac-command-key-is-meta. */ if (er.modifiers & (NILP (Vmac_command_key_is_meta) ? optionKey : cmdKey)) the_modifiers |= meta_modifier; + + /* If the Mac option key is meta, then make Emacs recognize + the Mac command key as alt. */ + if (NILP (Vmac_command_key_is_meta) && (er.modifiers & cmdKey)) + the_modifiers |= alt_modifier; + bufp->modifiers = the_modifiers; {