[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: YAMAMOTO Mitsuharu
Subject: Re: Mac OSX/Carbon - recent changes break menu bar shortcuts
Date: Fri, 29 Apr 2005 00:18:51 +0900 (JST)

>>>>> On Thu, 28 Apr 2005 14:07:28 +0100, Lawrence Akka <address@hidden> said:

> The problem was that (global-set-key [(alt c)] 'kill-ring-save) and
> (global-set-key [(alt v)] 'yank) used to cause A-c and A-v to show
> up as shortcuts in the menu.  After the changes however, the
> keybindings shown on the menu are <cut>, <paste> etc.

Because kill-region/kill-ring-save/yank and
clipboard-kill-region/clipboard-kill-ring-save/clipboard-yank are
different functions.  Actually they behave differently if
x-select-enable-clipboard is set to nil.

> 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.

> 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])

>> 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?

                                     YAMAMOTO Mitsuharu

reply via email to

[Prev in Thread] Current Thread [Next in Thread]