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

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

bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list


From: Michael Heerdegen
Subject: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
Date: Wed, 10 Mar 2021 03:17:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

martin rudalics <rudalics@gmx.at> writes:

> Suppose I put a marker into a buffer and do ten distinct modifications
> of the buffer, each modifying that marker's position.  So I get ten
> additional entries in the undo list.  Does this mean I get ten copies
> of that marker too?

As far as I understand - of course not!  When undo needs to restore
previous positions of that marker, it only can do that when the entries
in buffer-undo-list refer to the original marker.

`push-mark' does copy the mark marker, OTOH, it must, because a mark
ring containing the mark marker 16 times would be nonsense.

Michael.





reply via email to

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