GNU bug report logs - #79200
31.0.50; Duplicated elements for '#<marker at' in buffer-undo-list

Previous Next

Package: emacs;

Reported by: Óscar Fuentes <oscarfv <at> eclipso.eu>

Date: Fri, 8 Aug 2025 16:45:03 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Pip Cet <pipcet <at> protonmail.com>
Cc: 79200 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>, Stefan Monnier <monnier <at> iro.umontreal.ca>, Óscar Fuentes <oscarfv <at> eclipso.eu>
Subject: bug#79200: 31.0.50; Duplicated elements for '#<marker at' in buffer-undo-list
Date: Sun, 10 Aug 2025 17:06:12 +0200
Pip Cet <pipcet <at> protonmail.com> writes:

> I think the Lisp part is easy: we can simply capture a backtrace and
> attach it when creating the marker.

For the markers made in C maybe one could use a trick I've used in other
situations. Something like this

1. Add paramaters to build_marker and rename it.

  Lisp_Object
  build_marker_ (struct buffer *buf, ptrdiff_t charpos, const char *file,
  int line)

2. Add a define

  #define bufer_marker(b, p) build_marker((b), (p), __FILE__, __LINE__)

3. Do something with file and line in build_marker. One could store them
   in new fields in Lisp_Marker for example, but such a change easily
   ripples through. If one does that, one could print the file an line
   in print.c for markers.

Pretty involved.




This bug report was last modified today.

Previous Next


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