From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: How to do rectangular cut(visual block) in emacs Date: Wed, 25 Mar 2009 20:11:21 +1100 Organization: Rapt Technologies Message-ID: <871vsm0xxi.fsf@lion.rapttech.com.au> References: <8763hz1hd4.fsf@lion.rapttech.com.au> <36481928-7e91-4a13-a25f-37777e8878ec@y9g2000yqg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1237974107 23459 80.91.229.12 (25 Mar 2009 09:41:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Mar 2009 09:41:47 +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 Mar 25 10:43:04 2009 Return-path: Envelope-to: geh-help-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 1LmPdY-0006jz-LW for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Mar 2009 10:43:04 +0100 Original-Received: from localhost ([127.0.0.1]:36399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmPcB-0007Wm-GS for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Mar 2009 05:41:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:xMg61wZPGLoKQ+9SiJszTYy/iGs= Original-Lines: 35 Original-NNTP-Posting-Host: 66dd94a2.news.astraweb.com Original-X-Trace: DXC=DAdI=_7h[ElL\NbNdK[TIDJS>h4_nHTFjihkg0>hA5N Original-Xref: news.stanford.edu gnu.emacs.help:167971 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63261 Archived-At: Francis Moreau writes: > Hello, > > On Mar 24, 8:59 am, Tim X wrote: >> Move point to the top left corner and set the mark >> Move point to the bottom right hand corner >> Hit C-x r r where is a register. This will copy the >> rectangle defined by the region into register >> >> Later, when you want to get that rectangle of text back, just hit C-x r >> i and the contents of will be pasted into the buffer where >> point is. >> > > Now let say's I have the following text: > > a/ this is a line > b/ this is a very long line > c/ a short one > > and I want to copy the rectangle of this text without the a/ b/ c/ > > How do I move to the bottom right corner without adding space to the > last > line ? > You can't. You have to make it a rectangle. However, you can remove the extra spaces afterwards. Tim -- tcross (at) rapttech dot com dot au