emacs-devel
[Top][All Lists]
Advanced

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

Re: MPS: dangling markers


From: Eli Zaretskii
Subject: Re: MPS: dangling markers
Date: Sat, 29 Jun 2024 20:23:48 +0300

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: yantar92@posteo.net,  monnier@iro.umontreal.ca,  emacs-devel@gnu.org,
>   eller.helmut@gmail.com
> Date: Sat, 29 Jun 2024 19:17:21 +0200
> 
> And let me add a question: do we know for sure that these markers stem
> from char<->byte position code?

By definition, yes: I meant to use this instead of the markers that
the char<->byte position code creates when it finds long stretches of
text without any markers in it.  IOW, this code from marker.c:

      /* If this position is quite far from the nearest known position,
         cache the correspondence by creating a marker here.
         It will last until the next GC.  */
      if (record)
        build_marker (b, best_below, best_below_byte);

(there are 4 such calls in the conversion routines).



reply via email to

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