bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cua--rectangle-get-corners


From: Andreas Röhler
Subject: Re: cua--rectangle-get-corners
Date: Mon, 2 Jul 2007 12:15:14 +0200
User-agent: KMail/1.8.2

Am Samstag, 30. Juni 2007 23:32 schrieb Kim F. Storm:
> Andreas Röhler <andreas.roehler@online.de> 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.

For 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 
   (if as-is
       (mapconcat 'identity (extract-rectangle start end) "\n")
     (replace-regexp-in-string "[ \t]+" " " (mapconcat 'identity 
(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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]