[Top][All Lists]

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

Re: Adding String to Beginning of Lines

From: Stefan Monnier
Subject: Re: Adding String to Beginning of Lines
Date: Wed, 11 Nov 2020 13:25:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Oh, of course, while inserting the stuff your specified end position
> gets outdated.  You can use a marker instead of a number:
>   (copy-marker (region-end))
> it will automatically be adjusted.

The other classic solution is to do if starting from the end since the
region-start won't be affected by the buffer modifications.


reply via email to

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