all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Evan Aad <oddeveneven@gmail.com>
Cc: Anders Munch <ajm@flonidan.dk>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: How to search inside a region that has just been used as the target of a replace operation?
Date: Fri, 27 Jan 2023 19:11:56 +0100	[thread overview]
Message-ID: <87ilgretjn.fsf@mbork.pl> (raw)
In-Reply-To: <CA+-Lr-CjQgUzn3y8QPgNjax+MzaqUaGRCXUG-5_gZxTuuierMw@mail.gmail.com>


On 2023-01-27, at 11:44, Evan Aad <oddeveneven@gmail.com> wrote:

> Anders Munch wrote:
>> I wonder if you are aware of narrow-to-region?
>
> No, I wasn't aware of it. This solves my problem. This thread can be
> closed with status "Answered". (However, other answers and comments
> are still welcome.) Thanks, Anders!

`narrow-to-region' (and other narrowing commands, see e.g. `C-x n C-h')
are indeed /very/ useful.  I didn't even remember they are disabled by
default -- I enabled them a long, long time ago and use them all the
time.  (Org mode has its own share of them, by the way.)

But if you happen to do your machinations pretty often, I would
recommend writing a custom Elisp function to do it.  If you don't know
Elisp, you might want to read Robert J. Chassell's "An Introduction to
Programming in Emacs Lisp".  Place the point after this form: (info
"eintr") and press `C-x C-e' or head to
https://www.gnu.org/software/emacs/manual/eintr.html.

Hth,

-- 
Marcin Borkowski
http://mbork.pl



      parent reply	other threads:[~2023-01-27 18:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-27  8:55 How to search inside a region that has just been used as the target of a replace operation? Evan Aad
2023-01-27  9:28 ` Anders Munch
2023-01-27 10:44   ` Evan Aad
2023-01-27 14:35     ` Evan Aad
2023-01-27 18:11     ` Marcin Borkowski [this message]

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=87ilgretjn.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=ajm@flonidan.dk \
    --cc=help-gnu-emacs@gnu.org \
    --cc=oddeveneven@gmail.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.