From: storm@cua.dk (Kim F. Storm)
To: "Andreas Röhler" <andreas.roehler@online.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: cua--rectangle-get-corners
Date: Mon, 02 Jul 2007 15:16:08 +0200 [thread overview]
Message-ID: <87ved3vtd3.fsf@kfs-lx.testafd.dk> (raw)
In-Reply-To: <200707021215.15121.andreas.roehler@online.de> ("Andreas Röhler"'s message of "Mon\, 2 Jul 2007 12\:15\:14 +0200")
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
prev parent reply other threads:[~2007-07-02 13:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-30 6:20 cua--rectangle-get-corners Andreas Röhler
2007-06-30 21:32 ` cua--rectangle-get-corners Kim F. Storm
2007-07-02 10:15 ` cua--rectangle-get-corners Andreas Röhler
2007-07-02 13:16 ` Kim F. Storm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ved3vtd3.fsf@kfs-lx.testafd.dk \
--to=storm@cua.dk \
--cc=andreas.roehler@online.de \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).