From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: How to do rectangular cut(visual block) in emacs
Date: Wed, 25 Mar 2009 20:11:21 +1100 [thread overview]
Message-ID: <871vsm0xxi.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 36481928-7e91-4a13-a25f-37777e8878ec@y9g2000yqg.googlegroups.com
Francis Moreau <francis.moro@gmail.com> writes:
> Hello,
>
> On Mar 24, 8:59 am, Tim X <t...@nospam.dev.null> 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 <reg> where <reg> is a register. This will copy the
>> rectangle defined by the region into register <reg>
>>
>> Later, when you want to get that rectangle of text back, just hit C-x r
>> i <reg> and the contents of <reg> 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
next prev parent reply other threads:[~2009-03-25 9:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3882.1237871267.31690.help-gnu-emacs@gnu.org>
2009-03-24 7:59 ` How to do rectangular cut(visual block) in emacs Tim X
2009-03-24 12:32 ` Francis Moreau
2009-03-24 12:44 ` Rupert Swarbrick
2009-03-24 12:52 ` Peter Dyballa
[not found] ` <mailman.3905.1237899186.31690.help-gnu-emacs@gnu.org>
2009-03-24 13:28 ` Francis Moreau
2009-03-24 15:29 ` poppyer
2009-03-25 9:11 ` Tim X [this message]
2009-03-24 5:16 Anand Dhanakshirur
2009-03-24 5:12 ` Dirk-Jan C. Binnema
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871vsm0xxi.fsf@lion.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).