From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Darren Hoo <darren.hoo@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: is this possible using the new rectangle mark mode?
Date: Fri, 31 Jan 2014 10:28:08 -0500 [thread overview]
Message-ID: <jwvd2j8yxzv.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m2vbx0z2vw.fsf@gmail.com> (Darren Hoo's message of "Fri, 31 Jan 2014 21:39:47 +0800")
> kill a rectangle marked region ending with a line that is not the
> longest line like:
> aaaaaaaaaaaaaaaaaaaaa
> bbbbbbbbbbbbbbbb
> ccccccccc
The "new rectangle-mark-mode" just provides a different UI to the
same old rectangle commands available since forever. So yes for the
above: put point before the first "c" then C-x SPC then move cursor to
after the last "a" and finally C-w.
> and yank it to these lines:
> 1
> 2
> 3
Yup: put point before "1" and hit C-y.
> and I want it to be either this:
> aaaaaaaaaaaaaaaaaaaaa1
> bbbbbbbbbbbbbbbb2
> ccccccccc3
No, this is not a rectangle.
> or this one:
> aaaaaaaaaaaaaaaaaaaaa1
> bbbbbbbbbbbbbbbb 2
> ccccccccc 3
Yes, that's the one you should get.
And yes, the first question's answer would have been "no" if the longest
line was the "bbb" one.
Stefan
next prev parent reply other threads:[~2014-01-31 15:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-31 13:39 is this possible using the new rectangle mark mode? Darren Hoo
2014-01-31 15:28 ` Stefan Monnier [this message]
2014-02-01 7:24 ` Thierry Volpiatto
2014-02-01 20:54 ` Rasmus
2014-02-02 1:10 ` Stefan Monnier
2014-01-31 19:50 ` Tim Visher
-- strict thread matches above, loose matches on Subject: below --
2014-02-01 8:30 Barry OReilly
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=jwvd2j8yxzv.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=darren.hoo@gmail.com \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).