[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 14:07:28 +0100

On 28 Apr 2005, at 13:29, YAMAMOTO Mitsuharu wrote:

On Thu, 28 Apr 2005 08:03:29 +0100, Lawrence Akka <address@hidden> said:

A change over the past week has meant that the keybindings for
cut/copy/paste no longer show up on the edit menu under OSX/carbon.

For example:

emacs -Q (cua-mode 1)

Edit menu shows Cut (<cut>), Paste (<paste>) instead of Cut (C-c),
Paste (C-v)

This is because (menu-bar-enable-clipboard) is added to mac-win.el in
order to solve the following problem:

    [osx] edit/paste menu item always disabled

We can find the same line in both x-win.el and w32-win.el, and the
shortcuts of the menu items in question are not changed by (cua-mode
1) at least on the X11 build.

cua-mode was just an example of a mode which provides keybindings for copy and paste functions.

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. Of course there are no such keys on the Mac keyboard, so this might be a little confusing.

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.

I'm not familiar with cua-mode, but
does that affect cut/copy/paste operations?

Depends what you mean by "affect".

;;This package allows the C-z, C-x, C-c, and C-v keys to be
;; bound appropriately according to the Motif/Windows GUI, i.e.
;;      C-z     -> undo
;;      C-x     -> cut
;;      C-c     -> copy
;;      C-v     -> paste

It also provides keybindings for the register and rectangle functions

reply via email to

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