From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.bugs Subject: Re: cua--rectangle-get-corners Date: Mon, 02 Jul 2007 15:16:08 +0200 Message-ID: <87ved3vtd3.fsf@kfs-lx.testafd.dk> References: <200706300820.45611.andreas.roehler@online.de> <87ved5m8ls.fsf@kfs-lx.testafd.dk> <200707021215.15121.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1183382529 16233 80.91.229.12 (2 Jul 2007 13:22:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2007 13:22:09 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 02 15:22:06 2007 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I5Lqv-00011P-4c for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 15:22:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5Lqu-000171-Jp for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 09:22:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5Lqs-00016V-Fo for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 09:22:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5Lqr-00015m-3F for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 09:22:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5Lqq-00015e-VL for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 09:22:00 -0400 Original-Received: from mail-relay.sonofon.dk ([212.88.64.25]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1I5Lqq-0002Zd-Cd for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 09:22:00 -0400 Original-Received: (qmail 22232 invoked from network); 2 Jul 2007 13:21:52 -0000 Original-Received: from unknown (HELO kfs-lx.testafd.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 2 Jul 2007 13:21:52 -0000 In-Reply-To: <200707021215.15121.andreas.roehler@online.de> ("Andreas =?utf-8?Q?R=C3=B6hler=22's?= message of "Mon\, 2 Jul 2007 12\:15\:14 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: FreeBSD 4.6-4.9 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16049 Archived-At: Andreas R=C3=B6hler 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.=20=20 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. --=20 Kim F. Storm http://www.cua.dk