Am 27.11.2007 um 23:20 schrieb prestowk:
> To mimick the more usable chord used on US keyboards, it is possible
> to for example go to System Preferences -> Keyboard & Mouse and map
> the move-focus function to Cmd-§.
No. The preferences pane allows you to choose a menu entry and bind a
short-cut to it.
> This keybinding becoms active in all applications.
Not necessarily. You can add such mappings in a way that they are
restricted to one particular application. First you need to add that
application's name (+).
> However:
>
> 1. Emacs 9.0rc3 seems to be an exception -- hitting Cmd-§ gives the
> error "s-§ is undefined". Why wouldn't the global keybinding Cmd-§
> that was set in System Preferences work in Emacs?
See above: not a menu entry.
>
> 2. How could one, as a workaround, map "s-§" to the Emacs function
> "other-frame" to emulate the desireded keybinding? I tried executing
> "(global-set-key [(super §)] 'other-frame)", which was accepted by
> Emacs without error. But when hitting Cmd-§, Emacs still replies with
> "s-§ is undefined".
There is something not yet complete in the code to handle these
bindings. What works is to bind the key interactively first and then
recall what you did to put it into your user init file:
M-x global-set-key RET s-§ other-frame RET
C-x ESC ESC C-a C-k C-g
C-x C-f ~/.emacs RET C-y C-x C-s
First line is clear, I presume.
Second line invokes repeat-complex-command (C-x ESC ESC), the cursor
is at the end of the text in mini-buffer, so let's mode to the
beginning (C-a), kill the whole line (C-k), and quit the unfinished
command (C-g).
Third line opens (C-x C-f) your init file (~/.emacs) and pastes the
killed line (C-y) somewhere, then saves the file (C-x C-s).
The code pasted will have something like [15141258235] as 'key code'
or such. You can, of course, simplify the code pasted.
--
Greetings
Pete <\
_\ O _
|o \ _\\_/-\='
_____________(_)|-(_) (_)___________________________________
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Emacs-app-dev- mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-