From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: emacs24/gtk3 - how to mark rectangle of to primary selection? Date: Wed, 27 Jun 2012 04:47:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87sjdi3p0y.wl%lists@groll.co.za> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340797823 23461 80.91.229.3 (27 Jun 2012 11:50:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 11:50:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 13:50:20 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjqlC-0006DG-6p for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 13:50:14 +0200 Original-Received: from localhost ([::1]:59548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjqlB-0003oS-PP for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 07:50:13 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!po9g2000pbb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 54 Original-NNTP-Posting-Host: 76.126.112.84 Original-X-Trace: posting.google.com 1340797676 5957 127.0.0.1 (27 Jun 2012 11:47:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 27 Jun 2012 11:47:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: po9g2000pbb.googlegroups.com; posting-host=76.126.112.84; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:193115 comp.emacs:102525 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85510 Archived-At: On Jun 26, 1:33=A0pm, Paul K 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 wrote= : > > On Tue, 26 Jun 2012 16:24:12 +0200, Paul K 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-rectangl= e (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 =3D> "http://bloggroll.com" } > > "Men always want to be a woman's first love. Women have a more subtle > > =A0instinct: What they like is to be a man's last romance." ~ Oscar Wil= de 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