Re: [Mac-emacs-devel] Patch for Mouse-wheel
Brought to you by:
akochoi
From: Toshikazu O. <ohnishi@a.phys.nagoya-u.ac.jp> - 2002-08-06 02:12:23
|
>The problem with leaving it as (1) is when command-key-is-meta set to >t. In that case, M-h never gets sent to emacs, but instead is sent to >the application menu and causes emacs to hide. It's not a standard >binding, but I use it and I didn't want to prohibit it. But in your >case, it seems that command_key_is_meta is nil, so at the very least it >should be... > > if (NILP( Vmac_command_key_is_meta) || !(er.modifiers & cmdKey)) { > >And next time I'll put the left brace on the next line to follow the >coding standard.. I use Unix (Solaris) basically, so that I have been using the original key sequence for the consistency.. Anyway, sending all the command key to TSM is not a good idea. However, it is a good idea that at least only the command+space is sent to TSM even if you set command-key-is-meta because it is used as script switching. (is Meta-space assigned to something normally?) >The test you gave would send everything but C- and C-S- to the event >manager. I don't know the best way to go here. It appears that control >key sequences (at least C-S-) are used by the input methods to specify >something and I don't know enough to say whether or not they should >supercede emacs control-key sequences in general. My ignorance of asian >languages is showing. Was this possible before, without >USE_CARBON_EVENTS? Sorry. I misunderstood, and am little bit confused. All the un-assigned key by an input method are/were sent to emacs as they are. So, even without USE_CARBON_EVENTS, the C- keys are functional on emacs (in my case). Maybe there is no need to make new variable for it. The problem is that when I use like Meta-x or C-x u (undo), the x or u is passed to TSM, and a floating window pops up when Japanese mode. This is sometimes annoying for me. In this case, the solution would be that when we enter the "command" ( not searching words etc.) invoked by like M- in mini-buffer-window, all the key are sent to emacs directly (I think there is no command in Japanese). I don't know whether it is possible or not. Anyway, only if the command-space is passed to TSM, the function for the key typing is almost the same as that for the previous version without USE_CARBON_EVENTS. Toshikazu Onishi |