Re: Command key not recognized in Emacs 21.3

Andrew Choi <[email protected]> Tue, 20 Aug 2002 22:30:55 -0600
Newsgroups gmane.emacs.macintosh.user
Message-ID <[email protected]>
> I still can't double-click to open Emacs.app.  But, that's ok; the
> workaround is simple.  However, one problem that remains and that I
> can't workaround is that the Command key is not recognized.  I
> looked at the old macterm.c patch and I couldn't tell if it had been
> applied or not.  The new code is very different.  Here's a
> comparison, although, I have no idea what the problem may be:

Hi Rodney,

To allow Emacs to pass back the Mac command key as the Alt key when
mac-command-key-is-meta is nil, please comment out the following bit
of code in macterm.c (XTread_socket).

#if 0
#if USE_CARBON_EVENTS
              else if (er.modifiers & cmdKey &&
                       (NILP (Vmac_command_key_is_meta)))
                {
                  /* If this is a command key (and we are not overriding it),
                     send back to the operating system  */
                  SendEventToEventTarget (eventRef, GetEventDispatcherTarget ())
;
                  break;
                }
#endif
#endif

Andrew.
-----
P.S.  The mac-emacs-users and mac-emacs-devel will be used for Emacs
for Mac OS 8/9.  Please use the places suggested in the webpage
http://members.shaw.ca/akochoi-emacs/index.html for discussing Emacs
for Mac OS X.  Thanks.



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390