help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replace-regexp from A to B?


From: Rodolfo Medina
Subject: Re: replace-regexp from A to B?
Date: Tue, 28 Aug 2018 09:15:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

hw <hw@adminart.net> writes:

> Rodolfo Medina <rodolfo.medina@gmail.com> writes:
>
>> Is it possible, and how?, to perform a replace-regexp from a certain point,
>> e.g. the current one, or from a certain word/expression, up to the next
>> occurrence of a certain other word/expression...?  In my case, with MusiXTeX
>> documents, the starting point should be the TeX command `\startpiece' and
>> the final one `\Endpiece'.  So I could replace strings/expressions within a
>> single musical piece without going out of it.
>
> The function is (by default?) limited to the current region, i. e. you
> can mark the area of text you want to perform the replacement in and,
> with the mark active, do the replacement.  It won't replace anything
> outside of the region then.  I usually use (query-replace) like that.

Yes, clear now, thanks...

Rodolfo



> You may want to look into (transient-mark-mode) and enable it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]