From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?utf-8?q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: Re: cua--rectangle-get-corners Date: Mon, 2 Jul 2007 12:15:14 +0200 Message-ID: <200707021215.15121.andreas.roehler@online.de> References: <200706300820.45611.andreas.roehler@online.de> <87ved5m8ls.fsf@kfs-lx.testafd.dk> 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 1183370893 20123 80.91.229.12 (2 Jul 2007 10:08:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2007 10:08:13 +0000 (UTC) Cc: "Kim F. Storm" To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 02 12:08:11 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 1I5IpE-0008WT-3n for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 12:08:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5IpD-0002Li-Gk for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2007 06:08:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5Ip9-0002K4-NA for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 06:08:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5Ip7-0002Hz-2y for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 06:08:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5Ip6-0002Hr-W1 for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 06:08:01 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5Ip6-0003Bm-Aw for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2007 06:08:00 -0400 Original-Received: from [84.190.146.116] (helo=karton) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1I5Ior3GoH-0002nR; Mon, 02 Jul 2007 12:07:46 +0200 User-Agent: KMail/1.8.2 In-Reply-To: <87ved5m8ls.fsf@kfs-lx.testafd.dk> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX18betj3uBga7e7OVc4ZYdvXx+8ZO3ttwVGqnq1 DCdVeDsyosu67n1Ww0XwuCbdgV42ZiGrvdQydgzalbxJGo6gId JP5soiO8deGmfUGPAKXWw== X-detected-kernel: Linux 2.6? (barebone, rare!) 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:16047 Archived-At: Am Samstag, 30. Juni 2007 23:32 schrieb Kim F. Storm: > Andreas R=C3=B6hler writes: > > Hi, > > > > had a look into cua-rect.el; thanks for writing it. > > > > BTW: > > > > defun cua--rectangle-get-corners > > > > from `cua-rect.el' failt because > > > > `cua-virtual-rectangle-edges' > > > > was not known. (Exits only once AFAIS.) > > Please explain how this happened ? > > How did you call cua--rectangle-get-corners ? It turns out, I didn't evaluate cua-rect.el completely. Sorry for the noise. BTW: cua-rect.el contains a lot of useful functions. However, detected it only per chance. =46or example I needed a copy-function, which is meanwhile written that way: (defun copy-rectangle (start end &optional as-is) " " (interactive "r\nP") (kill-new=20 (if as-is (mapconcat 'identity (extract-rectangle start end) "\n") (replace-regexp-in-string "[ \t]+" " " (mapconcat 'identity=20 (extract-rectangle start end) " "))))) IMHO it would be helpful to define aliases, in order to list these functions together with functions from rect.el. Too many of them might be used interactively, if provided therefor. This may help users to deal with rectangles, to learn about it. Other question: is the cua-stuff needed here? I didn't expect to see the file in directory emulation. > > > 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? Thanks Andreas Roehler