[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac OSX/Carbon - recent changes break menu bar shortcuts
From: |
Lawrence Akka |
Subject: |
Re: Mac OSX/Carbon - recent changes break menu bar shortcuts |
Date: |
Thu, 28 Apr 2005 19:52:39 +0100 |
On 28 Apr 2005, at 16:18, YAMAMOTO Mitsuharu wrote:
Of course there are no such keys on the Mac keyboard, so this might
be a little confusing.
Hmm, but the same thing is also applied to X11 and W32 when using a
keyboard that does not have these keys. I guess such a situation is
very common especially on W32.
Yes, I see. Obviously the issue is wider than OSX.
Looking at menu-bar.el and the definition of
menu-bar-enable-clipboard suggests that what I need to do now is
(define-key global-map [(alt x)] 'clipboard-kill-region)
(define-key global-map [(alt c)] 'clipboard-kill-ring-save)
(define-key global-map [(alt p)] 'clipboard-yank))
but this seems to have no effect.
Maybe you need the followings additionally:
(global-unset-key [cut])
(global-unset-key [copy])
(global-unset-key [paste])
(global-unset-key [f20])
(global-unset-key [f16])
(global-unset-key [f18])
Yes. This does it (for posterity):
(global-unset-key [cut])
(global-unset-key [copy])
(global-unset-key [paste])
(global-unset-key [f20])
(global-unset-key [f16])
(global-unset-key [f18])
(global-set-key [(alt x)] 'clipboard-kill-region)
(global-set-key [(alt c)] 'clipboard-kill-ring-save)
(global-set-key [(alt p)] 'clipboard-yank)
I'm not familiar with cua-mode, but does that affect cut/copy/paste
operations?
Uh, I meant "the shortcuts of the menu items in question are not
changed" by "that" in the sentence above. In other words, do you have
any problems in cut/copy/paste operations currently?
As far as I can see, the operations themselves work fine.
Thanks for your time.