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

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

Re: point moved despite save-excursion, after deleting/reinserting regio


From: Eli Zaretskii
Subject: Re: point moved despite save-excursion, after deleting/reinserting region
Date: Wed, 17 Oct 2018 19:12:08 +0300

> From: "Garreau\, Alexandre" <galex-713@galex-713.eu>
> Date: Wed, 17 Oct 2018 03:43:16 +0200
> 
> I spent some time on one or two functions that modified a org source
> block, evaled it, and restored it as before the modification: after
> narrowing, I saved it using buffer-substring, and restored it using
> delete-region then insert what I saved.
> 
> However doing that my point ends either at the beginning or the end of
> what I inserted, even after save-excursion is over.
> 
> How to fix that?

Please explain what did you want the code to do instead, it's unclear
from your description.



reply via email to

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