unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how can I isearch in selected region?
@ 2005-12-28 10:34 luciferleo
  2005-12-28 12:58 ` Giorgos Keramidas
  0 siblings, 1 reply; 4+ messages in thread
From: luciferleo @ 2005-12-28 10:34 UTC (permalink / raw)


given a region selected by C-@, you can kill-region by C-w, you can
kill-ring-save by M-w

given a buffer, you can isearch-forward by C-s, you can
isearch-backward by C-r

but how can you combine them? I cannot find a isearch-forward-region or
something related.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how can I isearch in selected region?
  2005-12-28 10:34 how can I isearch in selected region? luciferleo
@ 2005-12-28 12:58 ` Giorgos Keramidas
  2005-12-29  9:57   ` luciferleo
  2005-12-30  7:59   ` Mathias Dahl
  0 siblings, 2 replies; 4+ messages in thread
From: Giorgos Keramidas @ 2005-12-28 12:58 UTC (permalink / raw)


On 28 Dec 2005 02:34:21 -0800, "luciferleo" <LuciferLeo@gmail.com> wrote:
> given a region selected by C-@, you can kill-region by C-w, you can
> kill-ring-save by M-w
>
> given a buffer, you can isearch-forward by C-s, you can
> isearch-backward by C-r
>
> but how can you combine them? I cannot find a isearch-forward-region or
> something related.

You can narrow the buffer to the region with ``C-x n n'', perform
any operation that would affect the entire buffer only on the
narrowed region and widen the view of the current buffer to the
full buffer contents with ``C-x n w'' again.

I regularly use this to replace-string or replace-regexp in a
region and it works quite fine :)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how can I isearch in selected region?
  2005-12-28 12:58 ` Giorgos Keramidas
@ 2005-12-29  9:57   ` luciferleo
  2005-12-30  7:59   ` Mathias Dahl
  1 sibling, 0 replies; 4+ messages in thread
From: luciferleo @ 2005-12-29  9:57 UTC (permalink / raw)


I got it, thanks a lot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how can I isearch in selected region?
  2005-12-28 12:58 ` Giorgos Keramidas
  2005-12-29  9:57   ` luciferleo
@ 2005-12-30  7:59   ` Mathias Dahl
  1 sibling, 0 replies; 4+ messages in thread
From: Mathias Dahl @ 2005-12-30  7:59 UTC (permalink / raw)


Giorgos Keramidas <keramida@ceid.upatras.gr> writes:

> You can narrow the buffer to the region with ``C-x n n'', perform
> any operation that would affect the entire buffer only on the
> narrowed region and widen the view of the current buffer to the
> full buffer contents with ``C-x n w'' again.
>
> I regularly use this to replace-string or replace-regexp in a
> region and it works quite fine :)

I use replace-string without narrowing, with transient-mark-mode, and
it works good too.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-30  7:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-28 10:34 how can I isearch in selected region? luciferleo
2005-12-28 12:58 ` Giorgos Keramidas
2005-12-29  9:57   ` luciferleo
2005-12-30  7:59   ` Mathias Dahl

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).