emacs-devel
[Top][All Lists]
Advanced

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

Re: save-excursion and the mark


From: Artur Malabarba
Subject: Re: save-excursion and the mark
Date: Sat, 25 Apr 2015 15:19:02 +0100

>>> (cl-letf (((mark))) ...) might do the trick.
>>
>> Thanks; that kinda cryptic incantation seems to do the trick
>
> Actually, it just made things break in a different way.
> (Since the X-Hashcash header is inserted before the mark.)  That is, the
> numerical value of the mark doesn't change, so it visually moves
> backwards in the buffer, since text has been inserted before the mark.

Try using (cl-letf (((mark-marker))) ...) instead. It should preseve
the mark's marker position, instead of numeric position.



reply via email to

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