GNU bug report logs - #46908
28.0.50; Dozens of spurious markers in buffer-undo-list

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; dated Wed, 3 Mar 2021 22:46:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 9 Mar 2021 06:19:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 09 01:19:10 2021
Received: from localhost ([127.0.0.1]:45441 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lJVi2-0003yI-Gb
	for submit <at> debbugs.gnu.org; Tue, 09 Mar 2021 01:19:10 -0500
Received: from eggs.gnu.org ([209.51.188.92]:33164)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1lJVi0-0003y2-4J
 for 46908 <at> debbugs.gnu.org; Tue, 09 Mar 2021 01:19:09 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59623)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1lJVhu-0006v1-9n; Tue, 09 Mar 2021 01:19:02 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1lJVht-0006rl-A3; Tue, 09 Mar 2021 01:19:01 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87mtve2t2q.fsf@HIDDEN> (message from Michael Heerdegen on Mon,
 08 Mar 2021 05:00:13 +0100)
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
 <87mtve2t2q.fsf@HIDDEN>
Message-Id: <E1lJVht-0006rl-A3@HIDDEN>
Date: Tue, 09 Mar 2021 01:19:01 -0500
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, rudalics@HIDDEN, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > I think we really have a problem here: when those newly created markers
  > are thrown out of the rings, they are not invalidated, and are also
  > still referenced by buffer-undo-list, so they will live forever, AFAIU.

I am getting the feeling that references from buffer-undo-list should
not keep markers alive.  That they should be some sort of weak reference.


-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 9 Mar 2021 02:20:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 08 21:20:40 2021
Received: from localhost ([127.0.0.1]:45255 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lJRzE-0004Dy-9O
	for submit <at> debbugs.gnu.org; Mon, 08 Mar 2021 21:20:40 -0500
Received: from mout.web.de ([217.72.192.78]:40479)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lJRzC-0004Dk-Ee
 for 46908 <at> debbugs.gnu.org; Mon, 08 Mar 2021 21:20:38 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1615256431;
 bh=/itHvTo4OxJ8jX8Ob5+6faKK7oMWR1k/jDbAH2jCLbg=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=IgZY1KY14DhCZYVYPU8Q24n8ku/eQ7nF1/71/mpx19smUbEi4QZNqUMDG4+gYUSA/
 +UDM7s7kDYWQRsLvegRn87WvZxgr4XHb4ImbQJjEOZxtZi1xU3QfSiG5Xk2Ole4uyq
 BZO5jxwIHlXR47IMQvM0tIvWPGCgYPaImhe4untg=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb105
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MLARU-1l1ELN1q1y-00IUvk; Tue, 09
 Mar 2021 03:20:31 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
 <87mtve2t2q.fsf@HIDDEN> <5e12eae1-94fd-d2c7-923d-f4dbabf3da52@HIDDEN>
 <87k0qh9j6p.fsf@HIDDEN>
Date: Tue, 09 Mar 2021 03:20:30 +0100
In-Reply-To: <87k0qh9j6p.fsf@HIDDEN> (Michael Heerdegen's message of "Tue, 09
 Mar 2021 03:04:14 +0100")
Message-ID: <87czw99ifl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:nc9si6LKhnEO/oihWvxOfcJTVSdp/bxYfFNsvkX6U9wwWVr12w3
 k8lyFtwBRDe00LolqP2pBwVauRdbYyWl8TupU2qR7nA0seg3YxLEOouHvhXL9Hj01BfEXeO
 xz7n6TxFsH7X9l7bj6WdyxT3i/EZHwN9aRooy/krRWukFgbYqXYVk4owKWyhOdVYMY40lIY
 /sQY1ewcxm5qWmoMB7MiQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:4Yo/Y7S99Yw=:SQ+5ul6PMvF6JBxu1YnB9E
 0/z+BNlqd2gshFgpdZhaxi8d8SFUtXWE5flmtQeCvbtQ2h0xYbq2AUxBautoXf1+H2lLmTVew
 y0g8B3BQirDG8anQaih/vdMsMLJQ1hN3/44oVZ1T2ziDEqdUtUbpvv4Q1JSKucfEU8vaiCI7Y
 iHBbPQ6TsCd+DySun69zEMUxqpmfbVQzH7TgjVR2z3kb9GmhHFbUhSFOVH0rMgrQ/QGP2dmk3
 EqbqA3E+cM3Zn/Lj6iearnHn+OjBysM/fwgeAVEJ46mGPbFNqXz+I0PzNQ9KkKn9V6NuXRRra
 Zey67v0XaKO1zUzfmepnokaxFG9fM2VSKhC7s7ToKaS+QzTus/38lnBpyaSOef1HnZ1SaV66c
 jJnJZfCn3+R7kwBAWO+ZEjBYkSwG/K7HKse0JViqVMDnK4iaT0U6o9CtiHjBiOjxaKmGmvsqS
 f6nCk/ONL6jDSJ+DMsvFQv3km8943YqOCc2LK/lhMIb1AK1rS/Js12J3jX7ClVSOetYmX8hPR
 03SXX9/nOFcEYj9+A7/suRfcueVJ3ZBrhllzwj3nOUTih91jA6/D/t7Fxdv5a/kQ+Vv2GTN2t
 zAji819KMqfuAQFy+gc1ypho8/BCsvUdOr+XmB9QVUkzk6oOQU6b28Q3sxef9MO/ZpqyRzDTc
 fRBASqAdCyrhPvPCkuYOWiv48S8aRJDH7tSdVU+lzGJPAj5Vexg0LStDHWJSB28Jqgs0hnTPU
 qSrS6ZW0ECNmhV7JDXZQc11KstkEbAgO14bY1y0H4KpAWLEprJhmWFWDg1Y9GGHWM5C9lkug9
 RNwYsEUKSIm863G1qsUnqBY2UaIocUJKFgWalWXlZFc3hQezYyo40u4is54Oj+LNRkYtv/o++
 S536UgCf/a6PZAUK7SIBpsxbteAwGv/Ghoaf/5mxQ=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> > But how comes that `add-to-history' affects `buffer-undo-list'?
>
> `add-to-history' has no relevance here, no.  There mere existence of a
> marker in any buffer does, IIUC, cause it to be referenced by
> buffer-undo-list sooner or later, because undoing and redoing inside
> text containing a marker is not always without ambiguity regarding
> marker positioning, so the undo system adds hints to buffer-undo-list
> how these markers must be placed/repositioned.

I did some more experimentation (repeated copy, paste, undo and
garbage-collect in *scratch*), and I saw that the number of markers
living in buffer-undo-list is not monotonously increasing.  After some
time, the amount settles between 20 and 45 or so.  And stays in that
range.  Giving that a large, but still limited number of copies of the
mark marker is stored in the mark rings, that amount of markers isn't a
surprise, and if the number is not constantly growing,
everything...works as expected so far I think.  Correct?

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 9 Mar 2021 02:04:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 08 21:04:23 2021
Received: from localhost ([127.0.0.1]:45238 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lJRjT-0003qF-C6
	for submit <at> debbugs.gnu.org; Mon, 08 Mar 2021 21:04:23 -0500
Received: from mout.web.de ([212.227.15.14]:49249)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lJRjR-0003q1-Ko
 for 46908 <at> debbugs.gnu.org; Mon, 08 Mar 2021 21:04:22 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1615255455;
 bh=gMFdCrNkh/OcK6tzkBN9Jctb213JYSUmBkaGkzWdOy0=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=sPJhm0h/N1HtfAxhBn0/BYSmEB8ur32IdEj2/xXjvEsmxZF2VHOKn7cLiV0pkVZdN
 0UJlVbhyVgfvLAJqo/hZEJxaZhX/msdoJ3ImT8Mf8Id3by1etc4QP8u6/VQEPcSUiD
 JMazyWlSagm9nXmeCQOQR9s7l03Ab6NGqnWaKM4I=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb006
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MdO9E-1lsVQt01AG-00ZEfa; Tue, 09
 Mar 2021 03:04:15 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
 <87mtve2t2q.fsf@HIDDEN> <5e12eae1-94fd-d2c7-923d-f4dbabf3da52@HIDDEN>
Date: Tue, 09 Mar 2021 03:04:14 +0100
In-Reply-To: <5e12eae1-94fd-d2c7-923d-f4dbabf3da52@HIDDEN> (martin rudalics's
 message of "Mon, 8 Mar 2021 09:26:42 +0100")
Message-ID: <87k0qh9j6p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:ulKEd0W+tuljOWCFGYxGv67Bof0WVyUYd/utYMsL3KGUTED721/
 v1Lcv27Vtkr0sjXg6eeYDNNtomhnFZPpzI3dM2R2XGJQp4YC42SWfJSHCZui7rfoEK2g3u5
 jewIlxvXfjd8vqCsYhwMgem049KubeXP8rSiditz10UEhO4I6q0SYSw5in905jJNUBV5rQU
 Udf+sK7gLjp+NRMQ4xl/w==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:y0tBEAuEdaM=:tw8QitUneuo0xpJNXwv4LC
 3mAi5EQzWDRkxcFZZV5Wh8cIGJAOolswNZ3dRbEZVmJUlC6ZqYaQUmgyyG74PfXmsz5xRhq0r
 WIZ9dtE+fMgMbWQMrlKG9zh2/u/FMXLfgLBONbVct0ixviLILSuAnyPZ2ksz9aAtcOTuQb9cu
 3g6SuXHxpxFS3+z2Mvg086iZMKXm3KDFa1UnxCZ8J3Xr3YMDOR6hZSQ8QjArfw3CxqAWFdtNx
 D7Ih3u3pk3NEdhCXBxMR3Gq+l+nxLW/ifIPGzVRfuetx+hv15AuP7TsACyZNY8+J7HV0UIPRR
 Ti6Yl/TXR4AslIGZaYIuy6Uz54viL6Ri24JsqoOoguKbAZ3IHOsiYmgJgucRRYK/UerbmH79I
 SED4dVYRjL9FzlYgqdQwY+Y+9iOZBsNVr2iJQ9ZC9MNQ48369lAfEQcAAa9rJGhHC3y1iwcwD
 JG4q1PMI290PxE6gODOhdSbM8i2Q0xGUhB5WWpfuTesIl148CJK57a0v1fHiGZejqytWwLVh6
 CUk2QMW2tYh/QRBj2MA2UT9DVf48GMq7dtshVIHqPcjML0KmY/E1gbgwGAkPioEOIH6Bd6Fwx
 RAxw3DRLp17bPU2Dfv5Wtw5wLBiVMgh59inB4IvFbpR/m827B+kcTreB9NXg8OewogG2yvNkE
 85FjJrvtbb0bK8aHgBm0/4FMBHPzA4sOIjjfmAw15wuCvD66sOG4qq67+I2iwdNmO1Y97kIjK
 z0mjNI/p5MYuis4AoGigJoulMJKdzNBsD+fpFgwd23xfT07LV5eQcGk4AYuuF5gMnSrfI215k
 cu7mrC45TJ5eOATFANpWhtu91ENcpjSw05Yu3cswJ+0nVKK6vaYqlMvG+T7UxPoyDnLuLaWGp
 BTu2LEWI9A8fyydnY43nrf39hFr2BKgNiD3tFv+fs=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

martin rudalics <rudalics@HIDDEN> writes:

> So you mean that we really have two problems here, both caused by
> `push-mark'?  IIUC a marker is "thrown out of the rings" when its buffer
> gets deleted or a marker is pushed on a "full" ring.  I suppose that
> "invalidating" markers in these cases should be safe.

But actually that doesn't help, markers pointing to nowhere are not
removed from buffer-undo-list by garbage-collect.

> But how comes that `add-to-history' affects `buffer-undo-list'?

`add-to-history' has no relevance here, no.  There mere existence of a
marker in any buffer does, IIUC, cause it to be referenced by
buffer-undo-list sooner or later, because undoing and redoing inside
text containing a marker is not always without ambiguity regarding
marker positioning, so the undo system adds hints to buffer-undo-list
how these markers must be placed/repositioned.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 8 Mar 2021 08:26:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 08 03:26:54 2021
Received: from localhost ([127.0.0.1]:42034 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lJBE6-0000MT-F2
	for submit <at> debbugs.gnu.org; Mon, 08 Mar 2021 03:26:54 -0500
Received: from mout.gmx.net ([212.227.15.15]:44059)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1lJBE1-0000MC-4r
 for 46908 <at> debbugs.gnu.org; Mon, 08 Mar 2021 03:26:53 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1615192003;
 bh=xgDqiatJVg3OALjpEFrG51G9oOsjF1NrhNbf9sETH6w=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=OUZcM5+c1m3ywgOUZXeqFizv3ecyLNFZVYqKXHmlCeH5/nu9na9pm1onDKp12kMgw
 mOgiLjh2POPJI+dCl3bobTp5M8cV6RES2RcRSarmaNf2m/B1D/7Xl5Kw9iFMmBSgbL
 OunT3m2Fws9keg5eGUrkvl9W8lI8HjDA8IEUmav8=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.100] ([212.95.5.150]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MkHQh-1m2zNL3KtV-00khMW; Mon, 08
 Mar 2021 09:26:42 +0100
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
 <87mtve2t2q.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <5e12eae1-94fd-d2c7-923d-f4dbabf3da52@HIDDEN>
Date: Mon, 8 Mar 2021 09:26:42 +0100
MIME-Version: 1.0
In-Reply-To: <87mtve2t2q.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:UF3ytH7Yhu1ClxJxaWcXu1zy1KV2RjttOmuwU0ck3wI0SKbjeTp
 jpKKGgDVTxGuW+I53YKdnv4J3Uca6gX3CMZToZSklx79WusUJSZcm2EGKp44ig5zaQa7QNm
 lxbCDuHfNnNinpuyG7eH3/3Z1hNs9swnWtCKXmg5DZw8OqsQIfTAd6zrghh8P8NrIhc63aC
 +0ICB/bCBV+GuYj1fSjRw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:ze/y7T1OuFE=:vCWEOI/r/mu0BR22VKx4JL
 WoLeheCyLUPTiX6fXDfzPbD7NlobTTsaEXb8er4vVtBifsAweXc88sqht+YsKoYOT1BFRduDl
 2hKKjLnxKqvTshn/dR8b2oydfoCKHoAKDg51B4apXCoCeF1dFhqXtr+VcVJHjpA/1cPZF98EB
 MyfJV0UpgSgyfCvaaBwNr8xGIciAF2hoKB/2//PR7Gab9P64A1Qn9pHW1rzE9XFprKHSG/nX6
 6p7F/YhEAUCovzCDPJvo41QzG+QMjPmzcwg3AiJroXsmJYOOoiU/+CQM0/3taRUN0EmseAQf3
 aGRy4geIi0hY4h/Gur985FiwwA3TK7PJcSrgngymVQrv97MQawwMq04akOZ+BRvSHRNhDv6Q3
 bRFq9ibxkonICTMxQpKadWZwlZtMArgv3uGMtzeFzcRBZHs0xVhSZ0vDWDGZuHf1RQNGFecl2
 glfgvGTLDERQYpx17j/AnrufIst6KyBOAf2xbNRAngHHonkTM3Te3WDMobEdStz8u2Qe3s2mh
 9Ofpz4Qynqh6AFW92KyZQLdMULm9gPpWKDZ7xqqs6kdqAoZaKqqRe+REcdBLk7sBETr15auvw
 tNe2kt4+r4+6iZHWR7lkqzxVrOFV3JGFlLh0JFU5Vq8AHvzD5VdZDWywl57X/1ypqpe+INmFE
 iz+sx7BdSrC13dSBHojfPyHlEO/BQq+EBTEfT9zeg1kaYTIIhHTInhsw4BHpO5RdyumrhX2XQ
 16Rsq3e9b3nz3SfOLeH2Z4d7QK1E2aw2feXIxc3V8zVdIwHLAimI5cuCl5ONbqWqL+4IVtH7g
 ykvtt/0VRksgDmptXqS+6uvdJ4KOgHxwk2R6ohNFO0dX5+c2do4pGRys6ye6jh5/It3mYeOnb
 JYqHQkUUlV15cjyW/7Yw==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 >> I cannot confirm that, no.  I can reproduce the issue in a newly built
 >> Emacs 27 as well as in the 27 that comes with Debian.  "It" again being
 >> `count-markers-in-buffer-undo-list'.
 >
 > The issue disappears (marker count stays constantly less than 3) if I
 > comment out these two expressions in `push-mark':
 >
 >    (add-to-history 'mark-ring (copy-marker (mark-marker)) mark-ring-max t)
 >
 >    (add-to-history
 >      'global-mark-ring (copy-marker (mark-marker)) global-mark-ring-max t)
 >
 > I think we really have a problem here: when those newly created markers
 > are thrown out of the rings, they are not invalidated, and are also
 > still referenced by buffer-undo-list, so they will live forever, AFAIU.

So you mean that we really have two problems here, both caused by
`push-mark'?  IIUC a marker is "thrown out of the rings" when its buffer
gets deleted or a marker is pushed on a "full" ring.  I suppose that
"invalidating" markers in these cases should be safe.  But how comes
that `add-to-history' affects `buffer-undo-list'?

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 8 Mar 2021 04:00:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 07 23:00:25 2021
Received: from localhost ([127.0.0.1]:41856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lJ74D-0001z8-A2
	for submit <at> debbugs.gnu.org; Sun, 07 Mar 2021 23:00:25 -0500
Received: from mout.web.de ([212.227.15.4]:49899)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lJ74A-0001yq-9e
 for 46908 <at> debbugs.gnu.org; Sun, 07 Mar 2021 23:00:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1615176014;
 bh=ZlzdSU8SY61GxSY3c/qBfX+SMagdqa+G/dGeRcHjEA4=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=lW0IyCYxN38m2xXN90VQatUCHwt5OKIsvRG3mfFw5YnlXzZeNpUfAPPHN9NHvBUwF
 j1ev3NYY41G2neL/8xjseh2v8YHk4tFyG1ucWcAbcQeBFJB5BsKuhWrcuEcJJC8ESC
 YSKI98yf2lZ/NJEXWOFxsCmKxx/Z1QT2m13OfL50=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb003
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MZDQ4-1l2hAg2deG-00KzAV; Mon, 08
 Mar 2021 05:00:14 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
Date: Mon, 08 Mar 2021 05:00:13 +0100
In-Reply-To: <87y2f1m7ez.fsf@HIDDEN> (Michael Heerdegen's message of "Sat, 06
 Mar 2021 01:51:00 +0100")
Message-ID: <87mtve2t2q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:+ZiM8kFhEr+GidL8r7h2aSono5I8NN3iq1SKEHEhsuQYxlarnjd
 Vs5lGL/+bjp3r/4Sqf2Lz/lMU5Q0C27+qouF3gE10kaX/oPlNbhDgay3ncmb7W2vKKe4ghy
 FKW+FRTvEz3VF71XxpmSNmcgmTetS9nzm2OT4rGAv/L/cX9SnoXldjXRoviE6oeYlMlUpWD
 2bpaL0+ItHj1u5Y72SgmQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:P5a7myV3cx8=:vdewAYCaDHJPlE2oVt4Mxj
 s9en+6GrQoUoI7e7SjYQQUoe6dkAtVWpSLV+DcOiSAfA0NCosazVnINz5rRXsx/Hm0VeBjCHq
 FnzXEZF+4iko2E4mAXPCWK2UBMv6R6aLCtLqfhiSHuppthJ1A3pkMGTIpxLvRSrFKzZPJ1wph
 ttXyRVPUkeesOtEccWmI5u0e2GaCDRHe6svOrjNiDIKd4BC9b+E+Tf7aEZdbLsDKq7Hhleg1w
 JdMfykPMWF1VtjCDtyusVoeBPhdkTU3a3QlXxWWaD19St+EQa5G+8+6c8UMzcP633rrsXHRo0
 HKHh6bn5jJyZgnvHb3MnUc1o5WUUD97V3VF2KAVp5FeSr02smkHhumtRmqi4MdhD1g5dYjPNc
 wQxBa9s7Ok81dhEFuZJV87r9943hcPBC/ETimDmZOEDFr96iBSXoRj6EbW70cXznoBX1C6xsi
 EtYgvefV4/0g3f2Tc526B8NkxGCapdKmrtZQSOPuuTjtxBAHZ2zugZL/6UPpWEtRBp2L7DifW
 b6glsXgiMdYGF2yek73r5Suv+ji4+BjcaWSVZ5vA7VIAu3PyYwx46Om18RMOCqWCf9tgW8OXF
 ev2Fh65FFs8PDMLIAEaIFiWDcc6YFHfXRVZT6Yx1i0jUZOM5HJoNBT0aXE8DtXRmzntOCgrHF
 hEliyyCOXGZRuSDWRkmrZsDL9lTWdH/2wpyB6ThZeXJFVNbTGgrJUhaUn7YC2krYZRzh/TbZD
 sjqV7Fj758hKPDaDMhB/7Jtk6sy09x58Xy/lLQQuPglEtMsjFhPJTatspjUbGrI5R48qFCd6I
 8zhqk2tlFluT+mm89RArapkCIGTRLBcAs70mwirngvOZ++l7h3oH4YvkDLdrxc7z98DlNkT+E
 Us9X8LdPcqIFncorpktKQUsQm+15GEGE3JUnX7YiM=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> I cannot confirm that, no.  I can reproduce the issue in a newly built
> Emacs 27 as well as in the 27 that comes with Debian.  "It" again being
> `count-markers-in-buffer-undo-list'.

The issue disappears (marker count stays constantly less than 3) if I
comment out these two expressions in `push-mark':

  (add-to-history 'mark-ring (copy-marker (mark-marker)) mark-ring-max t)

  (add-to-history
    'global-mark-ring (copy-marker (mark-marker)) global-mark-ring-max t)

I think we really have a problem here: when those newly created markers
are thrown out of the rings, they are not invalidated, and are also
still referenced by buffer-undo-list, so they will live forever, AFAIU.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 7 Mar 2021 02:45:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 06 21:45:49 2021
Received: from localhost ([127.0.0.1]:38672 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lIjQT-0004Ry-L1
	for submit <at> debbugs.gnu.org; Sat, 06 Mar 2021 21:45:49 -0500
Received: from mout.web.de ([212.227.15.3]:53391)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lIjQS-0004Rh-D0
 for 46908 <at> debbugs.gnu.org; Sat, 06 Mar 2021 21:45:48 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1615085141;
 bh=Dy9H90rHSwguZowUKLL5Vhtimhksf0HvGUSb/c6wknk=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=Y7+00JGl/wlNBxaJ34Blm72EkFVdJ6Q3RbNRYvnq6F66t4NYo05ANYow9/LUVqspH
 m5In5yLXRn97p56P8cv15JCqkgJ+tHCrEOOpHpMTbVxOAf3iMrWTA8Y8LW7wJ1OM8t
 5qT4Qo+JKWnrkXOnNHfjlxtxqa1g3lVXD0yYgSWw=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb003
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MRlJB-1lCQxQ24gz-00T04k; Sun, 07
 Mar 2021 03:45:41 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
 <83y2f0wwmk.fsf@HIDDEN>
Date: Sun, 07 Mar 2021 03:45:40 +0100
In-Reply-To: <83y2f0wwmk.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 06 Mar
 2021 09:48:35 +0200")
Message-ID: <87v9a365rf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:dWDFpScbGpX8iP7iV94qvrIc2DmBv7r1VbRD1li6jXapGnbWwWZ
 yAbvxSX6HOJ5Q8Vk6xVzI7Lwe+d6gCMkjIH9mryANqyG03yx9g9RORHV/71T4vOw5+LAjQT
 XpG7XTyb2Nlq5+qWY34rj3QcqnPgGqA9D9Nfo97TKoLk3iTEOSWfnDAW32j6blc5Orud+kK
 PQxLi6CAOMcXjqPAkQjgw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:bAsV1FfrjNQ=:7eXEtwq0/Abq2SGQgHGPF+
 TdEflW6Ckd8DVkyuYld4tD91t+TMaL0joUhqLN2ODeakyVncxMwJHmVZMacajDcyHWwG+Qf3p
 VIXwegelwuc/nnCLR3sa3Eh9bBjfSBDwtFf9OfIN4mLu2uWBUl2Aq8vYxHgpkJHVa/Jfa4v2A
 ykB4DVk6hwfMWkZ5F9Io3/YMlNro/YTOQRUowDojfoGjSIRKal5n3Hn543fNKOYzbFAGdhHbP
 npqg2+21jtPObXqvFJ2k/O5ySQOu6/TvbjFRdf6WKWpVhggztqgbBB/uBO7QctQ6FLMJZsrIT
 iyFWEmE2XObjX/mePcpCF3u+msosjCukszKbjjhzimlsUFpats3zDMUMbIpiHbujs3EkCvWx1
 3rSznXS/Kcx2cGSnqsvS3iEOSoSgGD1k6pakUFmIt01JSvJAZNRVSv8n+jM7uyoCJWTaLq49i
 tVQfe0+n13za6rNMvgw1oElW1yKvKZn56Aj2FMmK77FzteNIv5FXUd3tGS6CprTPldV9jyiOP
 dyxK2svmrxxCXkRgHKiOkM53ah+1wYvoYQXSYpSUL6M/5m4QU5qc7IfvKiqqozxhbAS3ZlHbv
 YEwOYV0YV6g2dwFv2hVPKFBkTOdKDVVEked6ERMeGQL+vtaeuMF64KPYMMN1paYiJSnwrS0Ir
 wZk5X0uq6NXa0gSN2mbb4EcjVMi3Nre86Anx+anm/h3zReqOoqvdxmysGd/teEia8pwem987R
 +aq+VpvPvuO3fOXEwByDai9LkVLhQBsQ5nAJJSaXQubBnp65mhO1vnh2Z1xaF2GDRHwVxgkH8
 cK65vQNbmlWhOBIxBGn7lOMTv/Vv9vnNqFHV8Pk/FUYCCAXoebifBOhWJTsn6mNqnz3TW9MN+
 vzYgJyUKND5iDxzttRjqeZV2lqzR/GzfvZ47OlZz4=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, rudalics@HIDDEN, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> > Does making a marker point to nil with `set-marker' then make it
> > suitable for garbage collection?  I guess not.
>
> GC compacts the buffer's undo-list, and that is supposed to remove
> those entries.  Doesn't it?

Maybe it does that.

What I can say that gc removes a significant amount of markers, but that
also a lot are left after gc.  And the positions of the markers that are
left are numbers (not nil).

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 7 Mar 2021 02:41:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 06 21:41:01 2021
Received: from localhost ([127.0.0.1]:38664 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lIjLo-0004It-Oy
	for submit <at> debbugs.gnu.org; Sat, 06 Mar 2021 21:41:01 -0500
Received: from mout.web.de ([212.227.15.14]:54675)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lIjLm-0004Ia-9b
 for 46908 <at> debbugs.gnu.org; Sat, 06 Mar 2021 21:40:58 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1615084851;
 bh=gyCl50P8/DtkElCqUIJFRIGjyNdautAyISuY3MC1gGk=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=k2hq2W+a+6vSLgBzNJ56nBZ0YgJj9V1Pxp1tB/zgs3jBbRWBB4MpUhIQf/AMYLNm5
 slI7XL6Xyo+W+yNf5f9QD9XTqY9jEDtRDgSUCo1HlcyhebB5a4K5DQguXGQ9L3m3az
 vQx01nBd9R0y8IDUSmGKRjqtBVJ8AI0FTbbKxopo=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb005
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M6091-1lQ88O12L5-007KZ5; Sun, 07
 Mar 2021 03:40:51 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
 <d427c756-d106-a804-6df6-b8ec72a20cdf@HIDDEN>
Date: Sun, 07 Mar 2021 03:40:50 +0100
In-Reply-To: <d427c756-d106-a804-6df6-b8ec72a20cdf@HIDDEN> (martin rudalics's
 message of "Sat, 6 Mar 2021 09:40:20 +0100")
Message-ID: <87zgzf65zh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:4gU68PTcIxtEs3kAOrT12fme01KxFT+4BWpaZ4425SNSQWahlPM
 vhdh1qslpJ9dpnoiLH2Ts+wXQ2q01e82ircb1/UXDpZPdZB1aP4m4stZzA5myYGeDOOZ9rq
 VKrKORI+iEBHAZeEdFzgFdPoYv7FC0gN7L5zTpoVqfZ9zu+nZt8JQXEzF8SGPbQfQnkmsv7
 7YajPW+GqAusmB602w8Sg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:gSplzO6Qaos=:BOmOmphD1sRJ4hHVQHdvFS
 xEUQygLoybzCMUCJALpigY1gOIKWvpjpc/ciM7dexY+HRW1baUGQwjFMInO1lbpKyEkeeXdwy
 zPeK38GgNaqOJm3aprF71Z/+X8J+ZCvn15Yp2mJW+mSJz8lDFNgsiff3BerzBgsf0NyjBM4+2
 3vjXV0wpw8uvW6iZ1bMWvu+bnsqEzIMfPOJHe3/8fy4p/GU4hodkNfoAXHQlTnVG1Oz3eSYVM
 cbeWZu2KnzrE9YrT7X5JyTDZqFQle4SBjMFByZ4MB0cq8HzojbgrfeJYImklltW8Xu+4dvpo9
 iw6oWSaox1dwNuoYopLIV5GIKLEK96twlLsy//x5R8S0T9JHoLIQhilidKIJDNks1EhQR7mz4
 jvCRfJM1mDzS5w9bnl+oxjNQWZs6mkD0t4kQtuvgsZjGxZLzkmYjdt9hdraGwxoBnVnr6e1r+
 BnbiV1zqk71Is4HYI6gaog/umbukU2I1pZ5RVeR4gGjfNUMjoS2vfVUf7necRHP9Pmd9dyw/b
 igtd1ue/4GmjpAaJWw2Y5HPQpzVufjiX7EsQaAJNnS9WPvRqa978OUrGtNpzjpFruWS5piYzV
 A9aFzhdCqTHfo6w+OYiO073c1g4iT/3vrzAmKtJTQyIRBRRxFfhpkeQ3jZ+h7qirsskDj+fQ0
 ZAI+bz0jzYYsQMwYMPYjR8vhN/34Xzdin/8g5o9FoFU0jOsGpOpSKMcYsqlU8UGcF7NDcIU7B
 Iu9Utgtwdkmcar1wDXd2eKi/teMwe2a+Lt50aiPWJ8cjLGCtDRP3JNT8du4L+6KABG2Q+LdxB
 XMnuKNUO6EqjKKMHbBE/7NdeJsW/HXbSZmv5sUwDqTMElqm0TkKIkgY5A0lyRXeGcxwPNFfgd
 M/w0S7OtwcSe94kZjb2AX9uLxlFbdKp69L09T/h5M=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

martin rudalics <rudalics@HIDDEN> writes:

> I'm not sure what you mean.  Here, when trying your scenario, I do set
> `buffer-undo-list' to nil first, so the initial insertion is not
> recorded and run `count-markers-in-buffer-undo-list' from a globally set
> key so the minibuffer is not involved.  And meanwhile I cannot reproduce
> your scenario with Emacs 28 either, I get zero invariably.

Just now I tried exactly that, exactly that way.  Using only
self-insert-command invocations and C-SPC, M-w and C-y, I was able to
get to values of more than 20 in 15 seconds or so with the first
attempt.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 6 Mar 2021 08:40:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 06 03:40:30 2021
Received: from localhost ([127.0.0.1]:35989 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lISUA-0006Eq-GU
	for submit <at> debbugs.gnu.org; Sat, 06 Mar 2021 03:40:30 -0500
Received: from mout.gmx.net ([212.227.17.22]:52905)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1lISU9-0006EU-78
 for 46908 <at> debbugs.gnu.org; Sat, 06 Mar 2021 03:40:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1615020022;
 bh=9Qsceo1Pg3fVxXsOMPx/x47tQQ1zCgEL0IzDar0tGeA=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=LjjSeeHAf7U9UC1grL/tv7ESJuX3pDzMk5AjT0WQLDUoENcXGyQh1nElbnyGhiNAK
 Oiji/XEAkZV33xL1WkJHBMwwj0ykvNlrg+TD/3TdqJznYn09ik3lvyTakSlt1Oaxxx
 jqRRwRmDNr2yqmNiNc37S1LhGlKy2NwPqHNOZ2vw=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.100] ([212.95.5.190]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N2E1G-1lllKi0aQI-013ifk; Sat, 06
 Mar 2021 09:40:22 +0100
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <d427c756-d106-a804-6df6-b8ec72a20cdf@HIDDEN>
Date: Sat, 6 Mar 2021 09:40:20 +0100
MIME-Version: 1.0
In-Reply-To: <87y2f1m7ez.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:HRQ5bDZFO+7vc26rnSF6vUzBZmnwXpSntuPECcORym0VA9Z8G3G
 QS7W/uYqzj2dkxk/YXPD5wVIOuz/2S09OiyMwCkGTZ0dl6ErVwKAYPdhUPsi7vPCDJE8XG+
 3hw6iTuiVAGdsD8TMgaZzib9K72ii2wt1vGNPXA2qBfXjQuByvdkO30oxX8m3MlERVdZge5
 atCLGEhoJzPBWvM8qzr9Q==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:2jpkyN9rV5s=:rZgIKVHnQ6uyF7Z7bvUZWH
 QYolT6R2aE2UfMl+UUMFILNAe5kJC0Z4LqqCsukrWabTH02Mw5szmS+0ruzfwGHFWe+voJAb3
 jejPQO8Csuk5E8UNJ3iDx5JXrcsKtXVk3lJ3fcutW71YMIh2HIxjJNVHHA8M+dw0XG9BU+EDI
 5PrAZhzwYhetk+ASJHeFEhkSSu30hcfPZ41uG+t9E9g70NBBxqNInDkewB37b+/X4G52M6/uK
 HPL8BIbZvGyllkJFCW9pdkXK/gPTBT4H3/HMZSXmyHEebZNFSlPwlyOn+mvcfw4E9fvzY2MDK
 J8ntJPO1AGZSW0LBMmcohnnCn40g2hSx66bFmBQ1OFeeWyakbhwtG4Xa16Wcf25M+xZ5IUGvB
 zViN9t+JttMav1wlWsUMA7YhTKXmpHSkimxA2N1EbR6oxzl2RWxChthljlL79zn9qhNI5flSC
 Eud9FTZ8XL6H56t0XFloUht286gzsxp4wutfZ2DZCxlGrmmthxBeQFHksy94geuJTNXm2c3Zk
 M28d1tIXtn3vsMw1dhdLA6zc+DZPlAlW8CSN6ac/o5k5Fqgmp7Bg/XVrKwKYKEpppBQIy/FrB
 r+JkVuzOblJ9dIBW0BJKscE92dmHu7GcASSe2TsXAEe2EHm4EisuPHak7C0DpTtTLHVE9+f/R
 qyftDQZoVizGyzjXUT3AjkzNVQsVpER01fAzaNCzz84JIkF9NapmExJfOAOqxieO7bJ4LcFl5
 OLRSkAmVNbaZB7rRUNDdFAjijos+ey/XWYErnBJ/6ArziDuVA1c/wyHxSdoAgv4UhBLSJItPg
 GTR9HVbXE74giOyHqwlp8EP27btKLwz4CNDnQ4ckzVKponz5Jc7TjObl0SJcSqbvDhJYBuZpK
 /YBgO0IHDilRl5paqwRg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > My observation: if I set undo-buffer-list to nil after reproducing the
 > issue, `count-markers-in-buffer-undo-list' reports "0" afterwards.

What else did you expect?  Or did you mean in all subsequent runs of
your scenario?

 > So I
 > wonder whether what we see is maybe normal business and an unfortunate
 > side effect of undo recording marker positions and gc running not often
 > enough to prevent these accidents?

I'm not sure what you mean.  Here, when trying your scenario, I do set
`buffer-undo-list' to nil first, so the initial insertion is not
recorded and run `count-markers-in-buffer-undo-list' from a globally set
key so the minibuffer is not involved.  And meanwhile I cannot reproduce
your scenario with Emacs 28 either, I get zero invariably.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 6 Mar 2021 07:48:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 06 02:48:55 2021
Received: from localhost ([127.0.0.1]:35934 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lIRgF-00050R-He
	for submit <at> debbugs.gnu.org; Sat, 06 Mar 2021 02:48:55 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56386)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lIRgD-00050C-Mo
 for 46908 <at> debbugs.gnu.org; Sat, 06 Mar 2021 02:48:53 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34723)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lIRg8-0001c3-4M; Sat, 06 Mar 2021 02:48:48 -0500
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2991
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1lIRg7-0002wf-IH; Sat, 06 Mar 2021 02:48:47 -0500
Date: Sat, 06 Mar 2021 09:48:35 +0200
Message-Id: <83y2f0wwmk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87y2f1m7ez.fsf@HIDDEN> (message from Michael Heerdegen on Sat,
 06 Mar 2021 01:51:00 +0100)
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> <87y2f1m7ez.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, rudalics@HIDDEN, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> From: Michael Heerdegen <michael_heerdegen@HIDDEN>
> Date: Sat, 06 Mar 2021 01:51:00 +0100
> Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
> 
> My question is what amount of that is pathological.  A lot of code
> creates markers "on the fly", a lot, e.g. jit-lock or yank (push-mark)
> or display-buffer.  When undo is performed before gc is run, they end in
> buffer-undo-list.
> 
> Does making a marker point to nil with `set-marker' then make it
> suitable for garbage collection?  I guess not.

GC compacts the buffer's undo-list, and that is supposed to remove
those entries.  Doesn't it?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 6 Mar 2021 00:51:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 05 19:51:11 2021
Received: from localhost ([127.0.0.1]:35728 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lIL9z-0001QO-2f
	for submit <at> debbugs.gnu.org; Fri, 05 Mar 2021 19:51:11 -0500
Received: from mout.web.de ([212.227.17.12]:46779)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lIL9x-0001Q9-16
 for 46908 <at> debbugs.gnu.org; Fri, 05 Mar 2021 19:51:09 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1614991861;
 bh=y2BotJtjkJrHl+1DUwICeOoutvvzFG/kj3QN9E1aKrU=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=E9RBsekf4Ysd1+DY16MVc9YX49zT6JxlcLTdz/N9MHsYXTMcp3GrSoqS9ETNUS1hL
 jlF/4hCJ5aBSu+qRtHhQWaDyJf/yRHdDfiD1I1/0k4wHIFxucnUH0QPOlPpe4Vqz37
 UhuhIjqfcAWMn4lEPQRvcmFpGh92jIopLlrvvbLQ=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb101
 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MVchv-1lGvYQ1sB5-00YyVL; Sat, 06
 Mar 2021 01:51:01 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
 <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN>
Date: Sat, 06 Mar 2021 01:51:00 +0100
In-Reply-To: <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN> (martin rudalics's
 message of "Fri, 5 Mar 2021 10:50:35 +0100")
Message-ID: <87y2f1m7ez.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:vFPqXk+cfiHo7+vlFsx447fXZ/JVSM/E4FOBu1PV5ikqPjUKMBY
 aI3iBTJ94kfTgSPDX6ZpxVdArqRp01amENF6lzYv19U1qUIEpVMlYpVkLI9/0X3WWIqbbFR
 YaGIZlM8Y7t0kFs9fEun2IWCIODiIpBQXpPDBitByHEAzdsGnP3RPz6B1x+o6UkqRhjJP7X
 dZRH+oI9WefR6c1zzDYYA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:XFOMnpRCijg=:JkBhbolzy6Y+/WijRWXrVK
 khI7ymZ4A/WFYDDrWB7e85v7x4HDecwtu9yyDXKMW9zl0U+sAOwa6p6dMz9oV1v2zzrsLIVs7
 cvaHLpHM4O+DG2RZQSuOGkaUf+ROmRKYz6vcLcouD/z5JjauBEu+NyevMx/FwnStGlL3IoAwS
 9cl3E35aR6VO2rifHYE0JqW20nGf6wkE8bCypVCRYzRF2A7+Rrc564I4O6lakFqwTALwljA1w
 /Oi8Bhd+Vly3MTVW6QKrJnD3cs5JxAz8tAmsUF5JZhIhVzj3I1k3rw/aGYBmh44oy4zhL/Auk
 QAuVGN7+Mz17hn4c11Jn5Rv8gmWDDj5OgK0dN2RzjrultryhsS2UZhT8HftOg9s1ADXUAftPG
 vjxGqTuzqZFz8UFAMY3o+Ltltvne6mQbr1B6OPApi30phP9C3dBWYzuJcE+XuM1DDVIIGU+W0
 iwo4+AX9sINeticCY810y4jmg4CO7jaPk52JHWYoJyNImGCZJ3q+36e1PB5pEWmyd4dq3pi6v
 Pcll57lz3huE5cEQsQrgdFlom1XOWSHmyrABIXlh3+zd3BMgW3c6OtBxTzJl74HnQ3mowLEt7
 1ll4AG+gGAF2QiQ+XTSXsCI5gRRQSz1T7A64nIvLVCMAaErx6PTedK+CEOORhCcOXgGeqbGXm
 +uW0NFpWFn5z5m6pFLT/b8dnI1QdZVg/8jFl18RLGVVCLZ9bTjP4BiWRlHNoyBn8IEEIIC/eK
 n5HrIv20OZLggJRlWb3bQ3KYgVCNx5UHZlzG/ZFVAMBsI3iR5dmh3TnzKCSC1xmfA/uJjRzg2
 A3ABEKVc+aZN8sTDZkQA8BOU5MxUv6jHTvFJR9vfkh8wDf/41PaUmt76EslT7639j17TvZJ/4
 29nQJn4wNIbLeVhHy9T7QOrC/d+IdS0HKSbKiPB2U=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

martin rudalics <rudalics@HIDDEN> writes:

> > I tried it now.  The only thing I can say is that with Emacs 27 it
> > usually returns 0 or 1 here while with master it returns 10.  So maybe
> > you should try (after verifying what I found out) to trace the recent
> > changes in master.
>
> The "it" above is `count-markers-in-buffer-undo-list'.  And with "trace"
> I really meant "bisect".  But make sure to check first what I said about
> the Emacs 27 behavior - YMMV.

I cannot confirm that, no.  I can reproduce the issue in a newly built
Emacs 27 as well as in the 27 that comes with Debian.  "It" again being
`count-markers-in-buffer-undo-list'.

My question is what amount of that is pathological.  A lot of code
creates markers "on the fly", a lot, e.g. jit-lock or yank (push-mark)
or display-buffer.  When undo is performed before gc is run, they end in
buffer-undo-list.

Does making a marker point to nil with `set-marker' then make it
suitable for garbage collection?  I guess not.

My observation: if I set undo-buffer-list to nil after reproducing the
issue, `count-markers-in-buffer-undo-list' reports "0" afterwards.  So I
wonder whether what we see is maybe normal business and an unfortunate
side effect of undo recording marker positions and gc running not often
enough to prevent these accidents?

I can continue testing with emacs-26 if you want.

Regards,

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 5 Mar 2021 09:50:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 05 04:50:46 2021
Received: from localhost ([127.0.0.1]:32901 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lI76c-0001TC-CH
	for submit <at> debbugs.gnu.org; Fri, 05 Mar 2021 04:50:46 -0500
Received: from mout.gmx.net ([212.227.15.15]:48417)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1lI76Z-0001Sy-Fe
 for 46908 <at> debbugs.gnu.org; Fri, 05 Mar 2021 04:50:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1614937836;
 bh=BBx7OtdaOSYb/E9kk4ceM75Q7SxpqEfWrTROZFDssjU=;
 h=X-UI-Sender-Class:Subject:From:To:Cc:References:Date:In-Reply-To;
 b=GCUbPHU7mcKb6C2DA6Yl+Ajd/LAnmH2zJlbSoseeCcAoo+F+OUgYB78O//fQ/BHrN
 03D+bWoQgScSUT/xf2AoALmUa3w6yrH9P44L5BIifgucyB2/ZELVCx1A1xJM202np4
 8fS8axVkC/cFPFBcR91ITL08TiO2ZzU0qkeXGHNQ=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.100] ([212.95.5.79]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M2O2W-1lLwqw250A-003yRR; Fri, 05
 Mar 2021 10:50:36 +0100
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
From: martin rudalics <rudalics@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
 <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
Message-ID: <7b04f87b-8d7a-e151-5b4a-d77bd6ea1506@HIDDEN>
Date: Fri, 5 Mar 2021 10:50:35 +0100
MIME-Version: 1.0
In-Reply-To: <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:jE5f5hSxeNVFVG+wJ4PMbxGLtP4lHEJOQCn0hTbV5jNWkzlSFf+
 kJEXrgGdXuuT6Tczj9B+6/ILmCrsVLQf0cWF09OI/z7jOka3miQD2k47UE+ijECVUVAKb5N
 T+X4+uB1w6Af+WYQ7h9JuJJQgxi+rxotMgOJhjSYuzSfRupd1DKt/OsWh83+vb/W+BAEZfB
 yutHe59m2e8x5I4VhoCNQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:NJns1E0m/oY=:rWa0VaxZN8LcGyvdQkLRE5
 BJCcRskWzFiiuMYPkaBiQgBcq8psOUgJgMpidUNElbi/w6bU/M6itBdu+GOhHn2G+EPPxS9jc
 EXXxoVozH2N6h9SetyoLfcqsGh86X5uv4DCVZLSvSY1Ga0zU9TN979l4iDr4YNwAczXIF08u/
 6HDBw+BkbLs0iJqX2usc+BmaJRQR858thgpxIMBl6PGdyYMDjZuxqJNglb1P94arEgIPdEXIW
 S9VSZxCRYasEN7S+vAOeooZ2QpmDMonkMPoAHDlyskROeqF7DERe8F6JgLbT3bsZOn/quCpGV
 TbEe41/HBb/GVR02dsXJH3Lhw44P3R1otStP42WKIuGouNw3yiAySm0mhXWd2Ypn/XgxL6bMb
 8VhKVwoxQkBcA6WDa2APy3oz4W6TbXhQ67hMXrBYOjAdI0yjaDewuqoBm/QvGRaSm4bxYVgUH
 Pinx+8mZXcZnl14hBLzMK/ptERqJFyMNCOTkV9LpvI2moI70tLqfbTMa06xgWyMPAYJqzjnWZ
 kyP1PgVDOpSRO/Saev5J90pl8OiI3B0UdJmh+/Z6MG8udamnM9nlz4RLPY3T3VOjyDo2FZUv/
 m1d4e0lElmQyNvhwuqIVDr6tkx1i0CLoiPe2jrXRQR3Dk9fxz69qn6d/YWj8mlICxhqdIxR3N
 P4L4JaK71HL2+ktNJjn0a7fODpPSfqMSzPGiUZ5iCbLvNcK/Fxc7VqKrv2hijtoAqSyWAe3aQ
 3uGc6gWopqWbyGOtbHqpa3UNB7l5F0WVHO+EmTuymOf+DmJInDGjF+nQbp7TuA4Bbqt0wAy01
 DKxO3yMGka4VqQujfm7dRO1cLIi7GiweT/w33O3BCMk+h4qy8uASj+hlUXxQ8Baji2uU/PR4D
 54TSyNOoiyHv12zFGbFw==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > I tried it now.  The only thing I can say is that with Emacs 27 it
 > usually returns 0 or 1 here while with master it returns 10.  So maybe
 > you should try (after verifying what I found out) to trace the recent
 > changes in master.

The "it" above is `count-markers-in-buffer-undo-list'.  And with "trace"
I really meant "bisect".  But make sure to check first what I said about
the Emacs 27 behavior - YMMV.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 5 Mar 2021 09:11:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 05 04:11:45 2021
Received: from localhost ([127.0.0.1]:32787 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lI6Uq-0000QS-Hm
	for submit <at> debbugs.gnu.org; Fri, 05 Mar 2021 04:11:44 -0500
Received: from mout.gmx.net ([212.227.15.15]:50845)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1lI6Uo-0000QD-Ca
 for 46908 <at> debbugs.gnu.org; Fri, 05 Mar 2021 04:11:43 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1614935496;
 bh=zdmLVtvRpZ8XKDlfGT31LNVYfXiT8sbUjlBYwAwL6VI=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=HOMGOjwncd/k+U+VV7wze3qWW1PHD5/fyeugBWHWTmPmeIeAlxSKKebPozcVaGA4+
 WhoM2c1FkiJxWTOmoFhMdhgMr+i2NvMqoTAbCuS97rtHdaUbnL0EIdWlWLuvA/sGI/
 p8vqM+5XmocIKiW6eHTvu662Ud+RmNZRUKQff/nM=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.100] ([212.95.5.12]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MpUZ4-1m7cDL38Zw-00prmY; Fri, 05
 Mar 2021 10:11:35 +0100
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> <87sg5asr6k.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <be75a40f-4b01-b937-f867-d3bf100897d7@HIDDEN>
Date: Fri, 5 Mar 2021 10:11:34 +0100
MIME-Version: 1.0
In-Reply-To: <87sg5asr6k.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:/n7Kha6ovz4ULWArwBOnSRefPVPU21PuvxuNG47PfFTFTdbNpa9
 2ryoMvWwaPg8Njmp7uUjNs5LZ7eq0KBrvoVCiOvjbo8twDbq6INbiXlD1vv96XmBLKTnZwr
 TlaoncfQ2OT1eGeGDn9GZJ/8sY8CC/NDYshBnkOn37W4G5kvL8YmhE5mDcVOn6uLgUPmH9Z
 CuYERf/ttcQfw3vTq3/8g==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:fHXKxqwaqJo=:rteeJJUOGBMRWWK9Y3Ek2Q
 gHKZozBtgElWyv+84l2xHUqfIpoYWZyzr2P5n0oh8364mqQ0Ih6Tw1o6zixbsBX5MHUfkHGmP
 TN5wwjQ61XO0PyWtEelc1/7qs8JbEKZBf+6VKtzQzSCn97mxo909iNYLMroMrqNcXDJwJlhTw
 hc+nQ0Z9jdr197n/D4yj8tj2yPlRM6JQrhs7QOe4zXxyzMCEArqXaYoNGUpIHWX6n9IQy5K43
 pf+/HOgI5X7OoGivz2mGAjbTjBxPL2UxJggjVhgye8w0eRE1r6VdEO0zYJQSkTfa5/V+05cSW
 TUHGkoP83WqmjKLSWjpjWz6njHYV5AX/xbS335UocrQBYTwS4jWHHUHJSqF7fInkbJB9ch+n+
 fSMPvI3Xngl+rKnqw+qM8yPRceTEfNZXDRDNKcclV2Ork9LNBoZFrtE9uhGn436THpFpQACf/
 WvsdqBuM8XmZmmsLeNpiolao76ib4HnChFxHUb8BC8la1ua/30rkArUI4jFXmNwBIFTFR2LOM
 UaqVDElNkgPva1wZyEwtxJkHMqDhZDsBaQ2u8ckNwJY8OaYQk97FNAyn1ueuAFKEGtDw6TQWQ
 8XgzL+d8rJR0aUkx2Z5JODV928tSMgk6IDhhpiqFr6ybNYmUEJZINXuXyRwK/NUUKkXxArOai
 ZJNuMOXNRVw9F0XtC6uahq+fh0pR0lR2USI5VlcRIkuZnJ+Em1t7kNbWCYDprque1upmSiD09
 SZKV9fmAGDQ6DrffV2aQRwOoL/yRl3FQleBOfdadWdLGGgsyarF56bvzqVbsihKy+frw6samj
 RNhsF2Zeqqkrd9y4GI59oBvNBQBC/kSybP2mLOR7jCEByievCZKBTb2rZjks9kiw2iqcBFF6j
 bLuSoyI2rrL0aLhhcPgA==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 >> When I read the discussion on emacs-help I tried with `buffer-undo-list'
 >> nil and doing some window modifications but didn't find a smoking gun.
 >
 > AFAIK window modifications are not necessary to reproduce the issue,
 > probably they are completely unrelated.

Maybe.  But I don't know of any packages that are much interested in
reading or manipulating `window-point'.  So if `window-point' is
involved in at least one scenario that reproduces the problem, it might
help to trace that occurrence back to its origins.

 > Did you try to reproduce the issue with the recipe?  It is complete.

I did not because I just believe you that your recipe is valid.  The
problem is that you have to trace back those marker entries back to
where they have been created in such abundance.  And I have no idea
how to do that.

 > Sorry for the confusion:

You did not confuse me.

 > We did not turn winner-mode on in the recipe,
 > please just ignore that part of the discussion, that was a false lead.

If turning on `winner-mode' _can_ create many `window-point' marker
entries, it's not necessarily a false lead.  It might help to locate the
real culprit with one important restriction: You'd have to look into
clients that either deal with `window-point' directly or call something
that does deal with `window-point' only.

 > You just need insert and undo to reproduce.  Please try.  emacs -Q, just
 > editing commands plus undo produce the zombi markers.

I tried it now.  The only thing I can say is that with Emacs 27 it
usually returns 0 or 1 here while with master it returns 10.  So maybe
you should try (after verifying what I found out) to trace the recent
changes in master.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 4 Mar 2021 18:35:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 13:35:26 2021
Received: from localhost ([127.0.0.1]:60197 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHsoo-0004D1-4r
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 13:35:26 -0500
Received: from mout.web.de ([212.227.17.12]:37521)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lHsol-0004Cm-Tz
 for 46908 <at> debbugs.gnu.org; Thu, 04 Mar 2021 13:35:25 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1614882917;
 bh=exX1JtNKLevpC3H7t+24O3uzUin0a3iC3c+6AI7jHBI=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=bFIrYwqXCsbcZPxPtPxy7CjU7Qcz8rYDSql6L2qaSl6zraz8cInBg+sW+KjKakIIr
 khL7WiBzxeYeLqf2z34Wc4it9Hi12qKnXU7tQ66Lv/kSbep+EuvLkmLUh7hvvCzism
 RrtHZDeHtDJcSGv2KO9zj5vmvLMgEjTT9a2bS/vg=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb102
 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MZlMw-1l4CU63iZy-00LU9f; Thu, 04
 Mar 2021 19:35:17 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
 <6ccba248-7643-280a-4560-88872fb08457@HIDDEN>
Date: Thu, 04 Mar 2021 19:35:15 +0100
In-Reply-To: <6ccba248-7643-280a-4560-88872fb08457@HIDDEN> (martin rudalics's
 message of "Thu, 4 Mar 2021 18:20:27 +0100")
Message-ID: <87sg5asr6k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:ro/dFttykz2WuvcsljLDUPkmLVHVPz16NDJTVN8eR83+jm2FU10
 muUJ8lOgp/adTibzcVHJYE4r7bkF91f00vGJ3JJtycIEQMXmwj9lDIggP+f6/mHnq+X3rwK
 MFmuOCwWtl6uWC7FDa8eFdzfMuow548gztS26PfGxyJurfCeVPNcsCfmb3YKTMlaCLGSYfs
 eBVJjLAQAVH3LY1I6X14Q==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:u7oAL7s/1W0=:qczbI5hcBEz0gmR1xMa7Yr
 4d5kbbzBb21Bxn2KnM7OVod3tcwQwmoEdb7Ozio1bZrCIYwhRcwZO+l/GsjeUMgubo8yqkdK3
 TO/Cx/smE4XoVYcINjwMp6+QKK+CEexP7F7zqe5DqxiwyeDn5rpdXgCXIIbXEWttYmLTUA9iW
 GZcnsUXmRD1+NeGvk5o9lR7rbnbkuRIyPgxAqWXyFW57hyjeZEG7V1b8ohkhxOm7FjFUlya5S
 juf/WR6b46NMr8wMcfj8F0fixAsAog+JbdMY3mzFfP2d/8ryyvJbvO99LdreUxlUaLFCTrezc
 IRqZyDgw/EppT5Uv9/mhN4bjb1kBbvX7HrZea8nIjxk5BFjxo7I9DWG7UmJR9SHK9ZwN34JEU
 ufZohxkTK73JT7jv36s7a2LvAr0NulkA7RNrikhKodOvy63esVxHgFYzRreDFCUpzIaS31cdc
 sR6wqb4IDoayS4qPb+xKlXiIkNFwsfsb33RCBBLrQHUrLdOBcEa0l4mEU6cbKCuDCABqQiUVf
 /TQLc8RuDsrnN/nHEkHvn9FA08QQvlhH5XeFwX48k7BbVVj77b2yQeO9E5boYftqaJl4iW5KK
 gL/qaYHOVPTtXNDU6bhZ++tBfkh5P66BEV13HV/GCOVp4iVHhc13Tdm2GHkQXGzLStXtQmsTf
 bYkpVIn9n37cFmZDL7DWQUVBEFxSGV65Ds2lToaZEE9O8+2ax13I+mF4NXQkOYPxZa3vu5HkB
 2rx0QL2f71sK6ZChll+Jgl8bxnWgayy9NjylK5I0iVvPSQwpeNB6JlxfSxqZbbRvTk+TIfGKL
 Ek9UL9WNGYL+3x7eCBmAPHunfRfp8LS3jjm3U4iMDf1XlMScgwhQAiNNaHGezoXQXTiWzbTa9
 CIwJ40M3fwB63zrQE9RwxbAHx6abG5LFLMP6fHi2w=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

martin rudalics <rudalics@HIDDEN> writes:

> When I read the discussion on emacs-help I tried with `buffer-undo-list'
> nil and doing some window modifications but didn't find a smoking gun.

AFAIK window modifications are not necessary to reproduce the issue,
probably they are completely unrelated.

Did you try to reproduce the issue with the recipe?  It is complete.

> So I'm afraid you have to look into your undo lists more closely to find
> out whether some `with-silent-modifications' are missing.  Maybe
> 'winner-mode' and its window configuration and active region handling
> can give a clue.

Sorry for the confusion: We did not turn winner-mode on in the recipe,
please just ignore that part of the discussion, that was a false lead.
You just need insert and undo to reproduce.  Please try.  emacs -Q, just
editing commands plus undo produce the zombi markers.

Regards,

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 4 Mar 2021 17:20:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 12:20:38 2021
Received: from localhost ([127.0.0.1]:60070 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHreQ-0002Ku-1y
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 12:20:38 -0500
Received: from mout.gmx.net ([212.227.17.22]:53775)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1lHreO-0002Kf-PG
 for 46908 <at> debbugs.gnu.org; Thu, 04 Mar 2021 12:20:37 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1614878430;
 bh=tXHradf1GUD4MT5/aVDgTbR5w69n2FvpOfo6Bzus3TA=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=HJoORcxSu+wAXrHxVYbccwLeHOhh+XM4cff3mnhp1Jyz/83+GAJV3QCWEybO1uAU5
 4Zgt1DPMojMSlReL+zcju47I/eBC9+i/oirTgfN2W4FP5SglQ8XU/DxF8+Oipa/P69
 tkt1xpxd3v5ju2WRfLLMR2fZydRX1vOf/4BsuxKs=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.100] ([212.95.5.213]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MIx3C-1l35eR30gs-00KRi3; Thu, 04
 Mar 2021 18:20:30 +0100
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> <87wnumswhr.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <6ccba248-7643-280a-4560-88872fb08457@HIDDEN>
Date: Thu, 4 Mar 2021 18:20:27 +0100
MIME-Version: 1.0
In-Reply-To: <87wnumswhr.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:J2t5Ew7IIvhzqewrOdlt1fkdg+ZE0cxYRQ7o1x6lAYRWadn8XqA
 zZga1zM/FFhmJyt8f0P/sDFO/4bi0x4Dh+5EnLHOZMLhTjiMiVHyUJAtGDoRdwgyg4WRD3n
 jR5EEQsLUuRIxWL6dLw9CoZQSVenQCagD1WJNmXxi4pe4VTi6UrG8/lsFLa+VYU7xGzXFsm
 EW2rHsmnIfVE5TTx4grbg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:UaxpHqiKz6U=:dcrGjTh+RdfTetaZSppyI8
 1Kh9z5mkxeDX/zswsHYjxU7IyxCUZ0ve6Va3YwvYiTszbusAiKSusQF++7ZN+Ms11bobt7sqI
 1EZKC7OKn3cTiQrJcHxHCLR2i5X507EZTfniuqd+ZSGKixsa1uORiKK7EJp3SNc41e38L9xWg
 AJ6jmFJUtjA5ThKOShiqD+paZOz5znehLMAbngNKLOaKP3uAlnN5wozZnJGDRtrxlCdd37reX
 wVbjDMjH9G07zEgsJoO5ZnpgqEy5gHV6T6l1eUdO9gHxvmZdwDjgrcs6FBSjUAMcJOrXTbfTS
 YaY497UFRKpg3Q6u6Ke3O4sfihr2vlyBm8SnApZDnKh4K1oI35PKpy8qpJh/+lgvj7JIg5aZ7
 OsCBhnxL4yjt+7vPBCVoOxZp6PhQxAeNNH1xZ75qUeiUGtmQeFEwXX41iAN1R2n3g44VgpAnO
 1zmuYGrBQtVtQg1xjYE4dKtES9c5KKIY6ZLppzA01CNmMpBfe/6LR6ym4zZzsCShSyWoC6faA
 /alj4I5QkBOPV9xN4zRU8WgDAtI1tENmSpXmF1ZV5rzvsqIwb5wh4uNJzOlEhIFwYfoLds+Mc
 NNRIjLnt0NTTgvgf4PZR/exAo0cRma4MiicmpnXu1P7enIc/zvX1hMl52/afqSlkwk8dxzqDl
 4iN7cv1S1mG1JIxBq5+rxrV9WtTSnnuRuNOT7b6GFMWh02nlHzAD7vFP2Em3fsV5nzUkZQlUz
 okp5USgDcc5FR07iCBLV5sX7JSj7UlGazE9BODvUyuxmFxyvt1t/Eb1fZETjUG9PnhFPX0D8A
 FcItAx+MmxJWNnhETdrBYxjUfYv7HndPCumEcSlFyJGrftca1vB1S0zm8yfiK6ugjpvEWVT16
 ZhRKRM9t+gNzMfo0/KBg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > Independently from the window-point marker?  I don't know if there is a
 > relation to the window-point marker, probably not, because, if there is,
 > I guess we would not see dozens of _different_ markers.  These could be
 > copies of the window-point marker created somewhere, I have no clue.

When I read the discussion on emacs-help I tried with `buffer-undo-list'
nil and doing some window modifications but didn't find a smoking gun.
So I'm afraid you have to look into your undo lists more closely to find
out whether some `with-silent-modifications' are missing.  Maybe
'winner-mode' and its window configuration and active region handling
can give a clue.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 4 Mar 2021 16:40:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 11:40:42 2021
Received: from localhost ([127.0.0.1]:60000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHr1m-0001Jk-D3
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 11:40:42 -0500
Received: from mout.web.de ([212.227.15.4]:56933)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lHr1k-0001JW-5F
 for 46908 <at> debbugs.gnu.org; Thu, 04 Mar 2021 11:40:41 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1614876033;
 bh=PXtKe1UNAFt4CKNEyVA3jwHoZM/Y4BJnH1CwJbQazL4=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=abCnkqEf6bMzJAqlv4X/jCxMu1HTg4UbwokAypRrnTbwPgfwgpSVSt6Pxw1NfLfuB
 v3BVu8luU/9OqoYGp35RujYrelrugmykcs5YaSMJ6lK3a7RkePmkVSoxTymalUojbF
 QUnyVlJ/uet/cj3vQ5mXtQuWJTzvYxKUUuax05jo=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb005
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M9ISh-1lNdvL3pp9-006E5n; Thu, 04
 Mar 2021 17:40:33 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
References: <87o8fzn9fa.fsf@HIDDEN>
 <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN>
Date: Thu, 04 Mar 2021 17:40:32 +0100
In-Reply-To: <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN> (martin rudalics's
 message of "Thu, 4 Mar 2021 09:35:41 +0100")
Message-ID: <87wnumswhr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:P8RWo6okpmLB8KIt6wNy5rynOVNSpyDRdU3TxuonPvU5WuOd6lQ
 yiH0AzaTUofyjto0vRkEbjrsVaINzY09KADAesRY4iCvPJSFntWXObjaSRSxSAC1U8N875J
 OQ1y4gKXFWhEqyG52MtFZtNkDTAqzgACbN3hgk75bWZg8feuugZUHnhvwZbAmyTFN2qyJv1
 q8LtmZGUeEwVLq2SW8cXg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:dSKYxT0lbOU=:M3c7vYjeqjeM6XeHtNqXEr
 2oKtv51tPL52YEA6pVM65G2rylf/tnfDjKhCmvZb6d04LuHSezhcwY+S5VylCqpJOUeVC2rJT
 FXIOZWDbbtmzrcRWMlBB0jnevecvjlnIN/d5+8KiAyifquEScUUtB8bS+jIvsUUNSm9AfwP8j
 qs253fA6rS3KGwZfmfBFLni6SkeoT3Ivvo1KhUyqw+vrtfqBT6G5Iorpnp9d2jpKTJ8P1fAXm
 nD0OYET+H0CGei0CVhCHFJsB1OS3Rzq2VGqHoib5oEIR5jSpZZNquldCAl6L5YEAFWrffmDJ5
 jfDKezzBUgl9zpafctQlfS0xTSM8bHiWRre5z8+hDVYipkVEGZUbWCu4zRRQcpBw8HPaF6nUA
 YqdJIwwvPk7EnYnyFjirote5uneCAkJlnJ1R8EWwchfrXn9vYIp4wmFF6HIagSKmqQ+3CYwOD
 L6M58Fg5jbCn7fwXLjWlwtvncbShNN4oO9qiLb5XJeQOwDkCPN5/J5v6pZYBZAKcoikRWNMqv
 DGbI5LwdD95xEjL6F/iQCW8Ix9thIPiqz2kVnZdOgnQwtn7PZEv1T6yddJwCeufy0x8Z6DgmW
 yvv6AeCWvIytrezoZOwfIXG4x1wufIeEhhhQmvo/qqvX9AahAVAXWJW71kEIxZl/e8n9sy6je
 yVZhB5Q1iLT1iXSKmccTXLzCJr+Mtumqo5IZfItz1nzMia2XP+ocBBxbaxiR40g3xAEC8zYZf
 0bR01mHTI2n/SoG9Nee85nCY34k4YYjKf8epjgBZFP4X2rsD7eaUcEx3bm/n2AA4PmCX1Ydai
 DF7sIqaXkun5KwdDeBDN60nNsRi++O8XnB8a8FviyKCNgpgK9uD5nl5HhEecEeYBHWS3h5tbf
 dxiIylVSip5Bf/LN2/Y6l+ZoTTo46LUKd/7uU4TJw=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: 46908 <at> debbugs.gnu.org, Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

martin rudalics <rudalics@HIDDEN> writes:

> IIRC the thread on emacs-help mentioned repeated occurrences of setting
> the window-point marker.  Is that still (one of) the main issue(s) or
> does the problem happen independently of that?.

That was guessing, because winner-mode had been mentioned.  But the
issue seems to be unrelated to winner-mode.

Independently from the window-point marker?  I don't know if there is a
relation to the window-point marker, probably not, because, if there is,
I guess we would not see dozens of _different_ markers.  These could be
copies of the window-point marker created somewhere, I have no clue.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at 46908 <at> debbugs.gnu.org:


Received: (at 46908) by debbugs.gnu.org; 4 Mar 2021 08:35:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 04 03:35:50 2021
Received: from localhost ([127.0.0.1]:57658 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHjSY-0003GA-HN
	for submit <at> debbugs.gnu.org; Thu, 04 Mar 2021 03:35:50 -0500
Received: from mout.gmx.net ([212.227.15.18]:35137)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1lHjSX-0003Fy-BF
 for 46908 <at> debbugs.gnu.org; Thu, 04 Mar 2021 03:35:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1614846943;
 bh=4asTI7skfgSXhY+5WUWLpNbK1cQjf/3kwjGzlFsHV8c=;
 h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To;
 b=TcOOvyhQxShjfO5Vz5pIcl0FT6CdpEUolPSXmTw91FfFuF4OlTYsWXgob6PhfxuAo
 6vKTJivKDOr/q4iiPCPg10BIjyW3XotxqCcNmp97dNFdMRCq1IhNQGU4zQZqJngzWQ
 07tAW7A1Sf16YRxNqXoNMsGhcTGZQA1SNDoba5SU=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.100] ([212.95.5.213]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgeoI-1lyTBq3ak0-00h9KU; Thu, 04
 Mar 2021 09:35:42 +0100
Subject: Re: bug#46908: 28.0.50; Dozens of spurious markers in buffer-undo-list
To: Michael Heerdegen <michael_heerdegen@HIDDEN>, 46908 <at> debbugs.gnu.org
References: <87o8fzn9fa.fsf@HIDDEN>
From: martin rudalics <rudalics@HIDDEN>
Message-ID: <0ca78c1b-7737-8a87-9edc-deaa551677fa@HIDDEN>
Date: Thu, 4 Mar 2021 09:35:41 +0100
MIME-Version: 1.0
In-Reply-To: <87o8fzn9fa.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:pqZVmLg5oT1DDApxa/G7y/s2O9257XgiYFMcHnH2wnrezxJbs6y
 7GCPlgj1gN6kYA7KwMU50WvsgaKgA7Zew1C5gjndmA2f6QccnbUdDxjvAErkdkuYaNXNT8o
 2OxPmcm5XmKsp58ZoKXmsqL6rkY9lFlsoqb6uF7+QVgdHi7L7Odq7beqJaub5G2trJLMIp4
 esc5bfSegX0QQyWpsB+DQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:1C0+A+v9Z9A=:Sx+r0RF2wAPg1H5QYeJ2K1
 0YtNd07ULHdbwR1r5zbm/mrePpXexdXFifLf4K9J5jwFcwR6BshT0+wrr+568oHUiYafKzk7s
 mKOcI3/psE5aLfyPiTcPEH7TUJAbWyMB6sB+wDNQa5V92LJtrlaQ2xDL491CwPQbKGbSi+JDc
 Jz8YpWwXz/vCypz1jLU/q/IOedF9GOMxaaQwPqGGsXZP0bCmTSa4rzWGaupdhgyTib6b+6U9e
 hnudHbYvUAq4bpzL5hDc5mdQI6hmOSlevncqQifOu23idfEwR61lZxHluTsnU0WXr77A0iN+2
 lH3MuMZbO07SO828MQD8AsEusAusAqvQ+Dpa2V5ki0QEZVCVB5Suqtxv3qRbYaDR/ZRSYuQ6n
 GsI6MCxNEeb9Nli5cLHMeePCfnLTRkeLtA2tRgi45cUKhYEPulCSogssTy3b1R9ZDSxG+HScJ
 yXEltANkIULn35pUGZpQ5Zsa4etwT22fwalybMwrhLe7UtkYT/L22cur04OcDN7EtoF7izM/9
 NbDPWWHPtlK5WlK1V+JVBx+MXjE60u5KYqP1fQUDHdmrdNcDVOD5PHE1SBMTK/HcdNSM1sivt
 azF122FvuVnngTtDiozxI2d5FPMGYDiWDRJgL6kvjfvA6h9uhxglLLcN0o7DYchlHo9WrawF6
 v/CLwX3fw78YBjd8/Ssse5uJKmKseTMvbtGRmqrDFNrzGMGJT7YYDyffAeyZciJpJEtWvWFZ2
 75UG7pvVwJ3nfbIaSSpne8K7BOf61IGW7LhGPV/H26TQ9SE+OScpqXamWBAC14FTRlppYwDC1
 PMjouTDPQTQQ09u8CUUQiPw8uPC3+9HSZf5z+ivq+t/SwafsRELj4qEi/bWh2rJMbpTSu3Hip
 N35WwHxqDQEzsBZWOPJA==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46908
Cc: Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > this recipe is by Yuan Fu, who first reported the problem in emacs-help,
 > and who is CC'd.  Then he calls the above command and gets a number much
 > larger than 1.

IIRC the thread on emacs-help mentioned repeated occurrences of setting
the window-point marker.  Is that still (one of) the main issue(s) or
does the problem happen independently of that?.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Mar 2021 22:45:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 03 17:45:38 2021
Received: from localhost ([127.0.0.1]:57172 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lHaFN-0007iQ-J5
	for submit <at> debbugs.gnu.org; Wed, 03 Mar 2021 17:45:38 -0500
Received: from lists.gnu.org ([209.51.188.17]:40766)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1lHaFL-0007iI-TD
 for submit <at> debbugs.gnu.org; Wed, 03 Mar 2021 17:45:36 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:55518)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1lHaFL-000151-Ls
 for bug-gnu-emacs@HIDDEN; Wed, 03 Mar 2021 17:45:35 -0500
Received: from mout.web.de ([212.227.17.11]:59483)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1lHaFI-00026o-NS
 for bug-gnu-emacs@HIDDEN; Wed, 03 Mar 2021 17:45:35 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1614811530;
 bh=+41TuOGHm6jO7NtTfXlMEIGaIVc7sTn14gLu9C+I9sA=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:Date;
 b=ikAV+7XZxx4NO+6qOM6bgrR46d5tu06GYzqCCAzH1DytncuwDxL8XW+sAfVcpD3px
 ElPXGMIju7Ef0Es0joD/Xe1PtvYkr5mEdUv+PqYbrH4znQKbIpRJZBpl2P/t0UT9ho
 +oTHUaaNa6NLvd/zGyE9DQGUcK41fUdr7g6+UQd8=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb106
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1M6YJ1-1lORs30XN3-00780M; Wed, 03
 Mar 2021 23:45:30 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; Dozens of spurious markers in buffer-undo-list
Date: Wed, 03 Mar 2021 23:45:29 +0100
Message-ID: <87o8fzn9fa.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:Ak4XQUR28jo5NwcbeGGoBjU6hlF2goedrPOXsV7kqT2tcKS4DVy
 zkp0+qzVJXnj2g/aCfK/Arj3lGg8y220wa5DdcwIugh8di5blCIfY8kdtZ8zk8ne6ZcGj50
 3vwzA3Zo0so/u5Km42C1XY+HETqpMmTzGOoG7SXEhSQqwaPJQKywvgN7pg5gNT5Ps63dIrI
 9SN0fQci0fRzeoLvjgfeQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:qrAoo49Eth4=:jffLABrbcEqMgyR6dH1Oaa
 qBF/hDszREzanbswuRuCbAKpEYUSJgRyTiu6S5aE9oFCm09nYV0dDhDhHh0hozHtNKtdAFs32
 k9EETNfP9GdNIvd3/ODdY7jKWTMc5UZGOtb4zX6FuEvG7xVuhGYVNN1QQOx8wXJqJO+M7IDvX
 kAuk40eoCGjzv7X6I461aUBW8AYSQTKCk2Tc/bz+jLVAN/UksblTgd7YHFEaiw3YypgXEfX9k
 bYrVQFcCQnkS1lKcOWX6k0jlGWhXxscFJG/wM5iF2UibEcKc0buyyjFXQ/f/758lThGUdzXP3
 CaXCt5suNs7+VCNkYOCeS1AMK+/B+YZccdaOtp+ZHsuhro3FLTZH4ziMDUoZ6D/o5i/IpdN0j
 VFPVIoiCQ7KP6Yb6y25GlH/erUn3+jdeBUyjvHdVSoytuRzdTn4xssP67GC/rQ2rMY/Fvd1Zk
 v7IDCj5wbpAGSdnpm3KehUF7kt5a680gMGle9eW3dQ/Z6TORt77rik7wlpIAev6uRHk1ixYDP
 Di9O3JhHqJ6XF8arRIIb9M5IopJid7hMMfNMsWWgOmf/F3QLhhOSc66uHlQ2EWfBoCtKEeMYW
 QpJV7RsihMyd46oJyCihixJwTwKTRB4j/z6ExOkejAjVzc/14h15PPJ7ozIJ3B2gAEVSAeXO6
 LTBYvQciaMt0jaA2OFMVZwNN/y2R2BhSd1DwndgLPCpyGVm6fgMlJLnAO5cW2RzmpoJxmMJj+
 THwv+ORXr/6u7m2yACk9w74G6NZw7VvR0UL65JX/c2d4WgAVY9jkHgvlaWCVSYUOQ3PaWaR/2
 X8vLHw+CXxLt4/7ccl13GvR+a0UX0S/N9w4o4Hfb3aWiCYO3ehFTMHT906cyxUr1T9zeWillU
 qPvM8vtjabd7mhg6EeOjge97QcaiHnC61XAHmRumY=
Received-SPF: pass client-ip=212.227.17.11;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout.web.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
Cc: Yuan Fu <casouri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


Hello,

after using `undo', `buffer-undo-list' often contains entries
referencing several or dozens of markers (seemingly unrelated to
overlays or such; I dunno from where they originate).  I know this
happens in current Emacs master, and I also found the problem in the
27.1 coming with Debian testing, build from 2020-11-08.  I tried in X.

I measure the count of different marker objects in a buffer's
`buffer-undo-list' with this function:

#+begin_src emacs-lisp
(defun count-markers-in-buffer-undo-list ()
  "Message number of (different) markers in `buffer-undo-list'."
  (interactive)
  (require 'cl-lib)
  (message "%d" (length
                 (cl-delete-duplicates
                  (seq-filter #'markerp (flatten-tree (copy-tree buffer-undo-list)))
                  :test #'eq))))
#+end_src

To reproduce the problem, open a fresh emacs -Q, and in *scratch*,
something like this should do it:

"C-5 C-0 a, RET, C-SPC, C-p, C-SPC, C-n, M-w,
C-y, C-y, C-y";

this recipe is by Yuan Fu, who first reported the problem in emacs-help,
and who is CC'd.  Then he calls the above command and gets a number much
larger than 1.

I can reproduce the problem without copy-and-paste, I just hold down the
"a" key and insert some random space chars in between, then undo
everything.  Sometimes I need to repeat once or twice to get a number
larger than "1", but very soon I see numbers like "40" which definitely
look pathological.  For me the appearance of the issue seems to behave a
bit randomly.


Thanks in advance,

Michael.



In GNU Emacs 28.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
 of 2021-03-03 built on drachen
Repository revision: b28b8d83ac882415555fe02b73a26542c9fca781
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12010000
System Description: Debian GNU/Linux bullseye/sid

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SOUND
THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
  value of $LC_ALL: de_DE.utf8
  value of $LC_COLLATE: C
  value of $LC_TIME: C
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix




Acknowledgement sent to Michael Heerdegen <michael_heerdegen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#46908; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 9 Mar 2021 06:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.