From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@stupidchicken.com>
Cc: 7522@debbugs.gnu.org
Subject: bug#7522: 24.0.50; point after `clear-rectangle' and `string-rectangle'
Date: Fri, 17 Dec 2010 07:07:27 -0800 [thread overview]
Message-ID: <47A673391EF34818915D0933C0495549@us.oracle.com> (raw)
In-Reply-To: <87pqt01qf0.fsf@stupidchicken.com>
> > I'm no expert on this. But what is the rationale for
> > leaving point at bol after such commands. Wouldn't it make
> > more sense to put point at the same corner of the replaced
> > rectangle as it was for the rectangle that was replaced?
>
> I can't reproduce this. After `C-x r t' or `C-x r c', point is at a
> corner of the replaced/cleared rectangle. Please provide an exact
> recipe.
Instead of "replaced rectangle" I should have said "replacing rectangle".
Select a rectangle, with point at the lower right corner and mark at the upper
left. Then C-x r t. Type `EEE' as the string to replace each row of the
rectangle.
The cursor is left at the beginning, not the end, of the `EEE' string on the
last row. IOW, a rectangle of E's replaces the selected rectangle, but point is
now at neither the upper left nor the lower right.
This can make a difference when combining such an action with other operations,
including other rectangle operations. You should be able to do `C-x C-x' to
select the E's rectangle. Instead, you get the region from the first E to the
first E in the last row, which corresponds to an empty rectangle (no width).
next prev parent reply other threads:[~2010-12-17 15:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-30 18:22 bug#7522: 24.0.50; point after `clear-rectangle' and `string-rectangle' Drew Adams
2010-12-17 13:26 ` Chong Yidong
2010-12-17 15:07 ` Drew Adams [this message]
2011-01-06 12:54 ` Johan Bockgård
2011-07-14 15:24 ` Lars Magne Ingebrigtsen
2016-04-27 23:15 ` Lars Ingebrigtsen
2011-07-14 15:23 ` Lars Magne Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47A673391EF34818915D0933C0495549@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=7522@debbugs.gnu.org \
--cc=cyd@stupidchicken.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.