[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cua--rectangle-get-corners
From: |
Kim F. Storm |
Subject: |
Re: cua--rectangle-get-corners |
Date: |
Mon, 02 Jul 2007 15:16:08 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Andreas Röhler <andreas.roehler@online.de> writes:
> IMHO it would be helpful to define aliases, in order to
> list these functions together with functions from
> rect.el.
To the extend where they can be used on their own, yes.
> Other question: is the cua-stuff needed here? I didn't
> expect to see the file in directory emulation.
I haven't looked at this recently, but historically, cua-mode started
out by doing region-based copy/paste and at some point I extended it
do do rectangle-based copy/paste as well, with basically the same key
bindings, except that you start a region with C-SPC and a rectangle
with C-RET.
Then later again, I added the global mark feature, C-S-SPC, which
integrates fully with cua's region/rectangle copy/paste features.
So it started simple, and grew more complex.
Later, I tried to separate as much as possible of the rectangle
and global mark stuff into separate files cua-rect.el and cua-gmrk.el
but there still are some links between then and the basic cua.el which
I can't easily get rid of -- so I left it at that point, and haven't
had time to go further.
If you can see any way to make a cleaner split, you are most welcome
to make suggestions (but please be specific -- many people tell me
I should do this, but they never suggest how it can be done).
>
>>
>> > Too `cua-rect' functions are not listed with M-x apropos
>> > rect.
>>
>> They are once you hit C-RET....
>>
>> I don't want to add autoload to the commands in cua-rect, as they
>> don't have any use unless you activate then after doing C-RET.
>
> Sorry, don't understand what this could mean in this
> context. Could you give the name of the function which
> shall be called that way?
In _my_ context the cua-rect functions are only used when you
have enabled cua-mode and after you have hit C-RET.
cua-rect is auto-loaded the first time you hit C-RET, and after that
everything you need is available...
If you want to use the cua-rect stuff in some _other_ context, you
could require cua-rect explicitly, but doing that would be at the risk
of breakage if I decide to change stuff in cua-rect unless I'm aware
that something else is relying on parts of it in specific ways.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk