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

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

Re: emacs24/gtk3 - how to mark rectangle of to primary selection?


From: Xah Lee
Subject: Re: emacs24/gtk3 - how to mark rectangle of to primary selection?
Date: Wed, 27 Jun 2012 04:47:55 -0700 (PDT)
User-agent: G2/1.0

On Jun 26, 1:33 pm, Paul K <mafeu...@gmail.com> wrote:
> Peter and Jonathan,
> thank You for Your answer.
>
> These solutions seem to be a bit compicated,
> so how about sending marked/selected rectangle to clipboard selection
> with or without cua-mode?
>
> best regards,
> Paul
>
>
>
>
>
>
>
> On Tue, Jun 26, 2012 at 8:29 PM, Jonathan Groll <li...@groll.co.za> wrote:
> > On Tue, 26 Jun 2012 16:24:12 +0200, Paul K <mafeu...@gmail.com> wrote:
>
> >> Hallo.
>
> >> I tried to do it with cua-mode, but no luck.
>
> >> Have You got any ideas?
>
> > You could do it step-wise:
> > Kill a rectangle. set-mark-command (c-SPC) at one corner, kill-rectangle 
> > (C-x
> > r k) at the opposite corner. Then undo (C-_) if you don't want the
> > text to be lost.
>
> > Then go to the scratch buffer and yank-rectangle (C-x r y). Then do
> > whatever you normally do to highlight with the mouse etc to get it
> > into the primary selection.
>
> > Cheers,
> > Jonathan
> > --
> > jjg: Jonathan J. Groll : groll co za
> > has_one { :blog => "http://bloggroll.com"; }
> > "Men always want to be a woman's first love. Women have a more subtle
> >  instinct: What they like is to be a man's last romance." ~ Oscar Wilde

it's not difficult to write a elisp command to do this.

basically, the command use kill-rectangle to trim a text into a column
you want, then put it on clipboard. Probably a 15 min job...

you can make do with a key macro instead. It should work.

 Xah


reply via email to

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