[PATCH] Add Carbon-specific locale-determination code; respect the locale with mac-command-key-is-meta behaviour

Sparapani, Rodney rsparapa at mcw.edu
Sat Oct 27 17:09:05 EDT 2007


Hi Aidan:

Well, I tried the version available at http://ftp.xemacs.org/contrib/cua-mode.el
And, it doesn't appear to do anything with respect to the Command-key.  And, reading
the documentation, it doesn't intend to either.  What I gather is that cua-mode imitates
MS Windows, because Copy would be \C-c.  Whereas on a Mac, Copy is Command-c.
So, the letter pressed is the same, but the Modifier key is different.  And, anyways,
cua-mode doesn't seem very attractive since \C-x and \C-c are such common XEmacs
keypresses.  What I have seen most MS Windows XEmacs users adopt is the alternate
keypresses for these commands.  I think they are Cut as Shift-Delete
and Paste as Shift-Insert.  I mostly use MS Windows under Wine so I'm not too sure.
But, even that doesn't work here since there is no Insert key on the MacBook Pro keyboard.

As to changing the Icon, I can't seem to find an appropriate XEmacs image file.  All of the
high-resolution XEmacs image files that I have found are rectangles.  The Icon Composer which 
OS X uses likes square files.  There must be some way to make a rectangle image file into a square, 
but this is not obvious to me at the moment.  Maybe you have a suggestion?

Thanks,

Rodney

-----Original Message-----
From: Aidan Kehoe [mailto:kehoea at parhasard.net]
Sent: Fri 10/26/2007 7:38 AM
To: Sparapani, Rodney
Cc: XEmacs Beta
Subject: Re: [PATCH] Add Carbon-specific locale-determination code; respect the locale with mac-command-key-is-meta behaviour
 

Hi, Rodney, 

 Ar an cúigiú lá is fiche de mí Deireadh Fómhair, scríobh Sparapani, Rodney: 

 > Hi Aidan:
 > 
 > Beware:  top-post follows since this mailing system is quite primitive.  And that
 > was the problem; it mangled the patch.  I had no problem with the patch that I 
 > downloaded by URL, all hunks accepted.
 > 
 > And, if you (setq mac-command-key-is-meta nil) you will have Option as the Meta
 > key.  However, the whole purpose is to free the Command key to behave as it does
 > in other applications. 

This is what CUA-mode is for, AIUI. Right, the current version of cua-mode
doesn't work with XEmacs, but older versions do--have you tried it at all? 
You souldn't need to touch mac-command-key-is-meta with it at all.

 > This can easily be done by a keymap (I had posted such a
 > keymap for Carbon Emacs that I can't find anymore).  So, for example, you would
 > have Command-q mapped to save-buffers-kill-emacs.  But, when you do a C-h k on
 > Command-q you get:
 > 
 > q runs `self-insert-command'
 > 
 > `self-insert-command' is an interactive built-in function
 >   -- loaded from "/usr/local/cvs/xemacs-carbon2/src/cmds.c"
 > (self-insert-command COUNT)
 > 
 > Documentation:
 > Insert the character you type.
 > Whichever character you type to run this command is inserted.
 > If a prefix arg COUNT is specified, the character is inserted COUNT times.
 > 
 > 
 > So, now it just ignores Command all together.  We're half way there :0)
 > I also have a request.  Can we get rid of the Teddy bear icon?  It was kind
 > of cute at first, but I now find it annoying.  

Suppy another icon and I'll happily replace it! :-) . 

Have a good weekend, 

	Aidan

-- 
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)




More information about the XEmacs-Beta mailing list