all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Skip Montanaro <skip.montanaro@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: TIL about string-rectangle
Date: Wed, 30 Dec 2020 17:24:25 -0600	[thread overview]
Message-ID: <CANc-5UxJqMN6Q7q6p-mO7nQdD24ssXA00dyhy6gM+tnF=SyptQ@mail.gmail.com> (raw)
In-Reply-To: <baf0e97d-350b-4e75-ba61-5c89ea764bdd@default>

> > Hmmm... That doesn't work for me. I've used rectangles a lot over the
> > years and have never seen query-replace and friends be constrained by
> > the currently defined rectangle.
>
> Are you sure?  After you activate the (rectangular)
> region, you may need to use `C-x C-x', so point is
> before mark, because query-replacing moves forward
> from point.

I used query-replace which highlights what it will replace. When I saw
it highlight strings outside the region, I thought, "Hmmm... That
doesn't look right." I accepted one substitution, and it moved onto
the next. It moved onto the next instance, which was outside the
rectangle.

> Works for me, with `emacs -Q' (no init file).

Just tried with -Q. Same result. It highlighted and wanted to replace
strings outside the defined rectangle. Not sure what's going on.

Skip



  parent reply	other threads:[~2020-12-30 23:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-30 20:59 TIL about string-rectangle Skip Montanaro
2020-12-30 21:37 ` Tim Landscheidt
2020-12-30 22:11   ` Skip Montanaro
2020-12-31  8:03     ` Yuri Khan
2020-12-31 10:21       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-31 12:44       ` Skip Montanaro
2020-12-31 14:32     ` Tim Landscheidt
2020-12-30 21:43 ` Drew Adams
2020-12-30 22:08   ` Skip Montanaro
2020-12-30 23:11     ` Drew Adams
2020-12-30 23:23       ` Drew Adams
2020-12-30 23:24       ` Skip Montanaro [this message]
2020-12-31  7:15         ` Sivaram Neelakantan

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='CANc-5UxJqMN6Q7q6p-mO7nQdD24ssXA00dyhy6gM+tnF=SyptQ@mail.gmail.com' \
    --to=skip.montanaro@gmail.com \
    --cc=drew.adams@oracle.com \
    --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.
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.