The default is cmd+`.
When in normal Aquamacs frames, the shortcut forks fine and allows
circulation between a number of open frames.
When a help frame is open though, the shortcut does not seem to work,
when the user tries to leave the frame.
Here, I have remapped it to cmd+f11. When I enter a help frame,
Aquamacs tells me "<A-f11> is undefined" and I have to mouse-change
the focus.
Jean-Christophe Helary
Does Cmd-` still work?
> For some reason it does not on my machine, I suspect it is because
> the "`" is in a non-standard position on my Japanese qwerty kb.
> This affects all the system though, not only Aquamacs. This is the
> reason why I remapped it (and for ergonomics too).
OK. The problem is that Aquamacs is hard-wired to use Cmd-`. It
doesn't detect the keyboard settings in the system.
I guess we'll have to fix that some time, but I don't get too many
complaints about it.
For the time being, you can insert a define-key or a set-global-key
statement in your .emacs, binding it to the function `other-frame'.
- Dave
But the thing is that my remapping works for other Aquamacs frames,
as far as as know only the help frame does not behave properly.
> For the time being, you can insert a define-key or a set-global-key
> statement in your .emacs, binding it to the function `other-frame'.
Ok. Thanks. Should I file a bug report for this though ?
JC
> On 12 Apr 2006, at 12:53, Jean-Christophe Helary wrote:
>
>>>> There is a system preferences>keyboard option that allows for
>>>> "shift[ing] the focus to the next window in active application".
>>>>
>>>> The default is cmd+`.
>>>>
>>>> When in normal Aquamacs frames, the shortcut forks fine and
>>>> allows circulation between a number of open frames.
>>>>
>>>> When a help frame is open though, the shortcut does not seem to
>>>> work, when the user tries to leave the frame.
>>>>
>>>> Here, I have remapped it to cmd+f11. When I enter a help frame,
>>>> Aquamacs tells me "<A-f11> is undefined" and I have to mouse-
>>>> change the focus.
>>>>
>>>
>>> Does Cmd-` still work?
>>
>> For some reason it does not on my machine, I suspect it is because
>> the "`" is in a non-standard position on my Japanese qwerty kb.
>> This affects all the system though, not only Aquamacs. This is the
>> reason why I remapped it (and for ergonomics too).
>
> OK. The problem is that Aquamacs is hard-wired to use Cmd-`. It
> doesn't detect the keyboard settings in the system.
> I guess we'll have to fix that some time, but I don't get too many
> complaints about it.
Ah, I was wondering about this. I get similar strange behaviour,
which must be related. I use the command key as my meta key and mac-
pass-command-to-system's value is nil. So, for me, Cmd-` is really M-
`. In any case, when I lay down a C-h k M-` I learn that M-` runs
the command tmm-menubar. Now, in some (most?) modes, M-` simply
switches frames much like C-x 5 o (other-frame) does. But on some
modes it doesn't do this. Instead, I get a new window (not frame)
which seems to be a text-mode emulation of looking and choosing from
a menubar, i.e., exactly what tmm-menubar is apparently supposed to
do. (So far, it seems that I get the "usual" Mac behaviour for Cmd-`
in most Aquamacs modes -- switch windows in same application, or
Emacs' other-frame -- but at least for Help mode and TOC mode which
RefTeX creates, I get tmm-menubar. Personally, I much prefer other-
frame, but see below.) So, it seems that although Cmd-` may be hard-
wired into Aquamacs, binding Cmd to the Meta key gives M-` different
behaviours in different buffers. Strange.
> For the time being, you can insert a define-key or a set-global-key
> statement in your .emacs, binding it to the function `other-frame'.
This almost works, but not quite. While still having my Cmd key be
my Meta key, if I say M-x global-set-key RET M-` other-frame RET,
(where, again M-` is really Cmd-`) then M-` gives me cycling only
over a subset of my frames. However, repeatedly saying C-x 5 o (or,
equivalently M-x other-frame) does indeed cycle through all my frames.
--Jordan
Are you saying that if I turn off osx-key-mode globally then
Aquamacs will not know about Cmd-` and/or A-` and then I can get my
command key behave consistently as meta?
> Command is NOT Meta in Aquamacs by default for good reasons... :-)
Yes, I understand that and in fact I agree with it most (some?)
of the time. the problem is my left thumb could care less what I
think! It will move to the command key over and over again. (Too
bad I don't have global-set-key for my brain!)
This is probably a user interface issue so this thread may not be
the best place for this, but I can tell you that the biggest
(actually, not that big) problems I'm facing with Aquamacs (which I
love and use every day extensively) is just this Mac vs. Emacs Meta/
Cmd issue. I'm very used to having Meta beside my space bar and my
fingers have, over the last 15 years or so of daily emacs use, gotten
very used to the meta key being there. (I've also swapped caps lock
and ctrl for largely the same reasons.)
When I first tried using Aquamacs, I had my option key be meta
and passed Cmd on to the system, which I think is the default. The
problems (for me) occurred in Aquamacs when writing, which I do
every day, all day; almost without thinking, I'm doing frequent M-q
for filling, and M-w for copying. Now, if my Meta is actually option
and Cmd is passed to the Mac, then, instead of filling with M-q, my
thumb moves to command instead of option, M-q (option-q) then becomes
Cmd-q and bang! Aquamacs terminates! And if, as usual, I have many
buffers open with many files, having Aquamacs terminate that way is
huge drag. (There are similar problems with M-w.) Has anyone else
faced this issue? How have you dealt with this? I suppose this is a
problem only for long-time emacs users.
Anyway, I don't know what, if anything, can be done with this; if
attracting new Mac users to Aquamacs is the goal, then clearly the
"usual" Mac bindings should be available; it's just too bad that M-q
and Cmd-q have such very different actions. So, I've been playing
around with various ways of binding to see what works.
>> Cmd-` is defined as key binding in osx-key-mode, so that, if you
>> switch this (global minor) mode off, you'll lose the binding. I
>> would think that if a major mode overrides Cmd-` (in your case, M-
>> `), then you might not get consistent behavior.
>
> Are you saying that if I turn off osx-key-mode globally then
> Aquamacs will not know about Cmd-` and/or A-` and then I can get my
> command key behave consistently as meta?
Yes.
>
> Anyway, I don't know what, if anything, can be done with this;
> if attracting new Mac users to Aquamacs is the goal, then clearly
> the "usual" Mac bindings should be available; it's just too bad
> that M-q and Cmd-q have such very different actions. So, I've been
> playing around with various ways of binding to see what works.
Well, Aquamacs wasn't meant for people who are more used to Emacs
than to the Mac standards.
Nevertheless, you can customize it to do what you want.
As for Cmd-Q, I would think you're asked whether you like to save
your buffers.. so that's a chance to cancel.
- D
--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and
support the Aquamacs Project!
>
> This almost works, but not quite. While still having my Cmd key be
> my Meta key, if I say M-x global-set-key RET M-` other-frame RET,
> (where, again M-` is really Cmd-`) then M-` gives me cycling only
> over a subset of my frames. However, repeatedly saying C-x 5 o
> (or, equivalently M-x other-frame) does indeed cycle through all my
> frames.
Well, by "hard-wired" I meant that Aquamacs knows A-` as a key
binding, rather than going through OS X so users can change the
setting via the System Preferences.
Cmd-` is defined as key binding in osx-key-mode, so that, if you
switch this (global minor) mode off, you'll lose the binding. I would
think that if a major mode overrides Cmd-` (in your case, M-`), then
you might not get consistent behavior.
Command is NOT Meta in Aquamacs by default for good reasons... :-)
--
For some reason it does not on my machine, I suspect it is because
the "`" is in a non-standard position on my Japanese qwerty kb. This
affects all the system though, not only Aquamacs. This is the reason
why I remapped it (and for ergonomics too).
Jean-Christophe