From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS: dangling markers Date: Sat, 29 Jun 2024 20:23:48 +0300 Message-ID: <86bk3jirx7.fsf@gnu.org> References: <87v81u85hv.fsf@localhost> <87frsx81m2.fsf@localhost> <87cyo180y2.fsf@localhost> <874j9d7zqe.fsf@localhost> <87sewvg6lw.fsf@localhost> <86ed8fiug3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31651"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org, eller.helmut@gmail.com To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 29 19:24:38 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sNboT-00082G-KY for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jun 2024 19:24:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNbnv-0004fz-EA; Sat, 29 Jun 2024 13:24:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNbnq-0004e0-Al for emacs-devel@gnu.org; Sat, 29 Jun 2024 13:23:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNbnp-00069H-Su; Sat, 29 Jun 2024 13:23:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=U2fSCSWFrCwcT0AmI+STvD0Boa+HpBQJHwl8DZDYWsQ=; b=TKBbaAhA0Q2DIblMNRP2 SpmpGi5QKOrpCyIbb9Y/J19Mt/mBVftHxfqaOYAvFknoBUDqwzmeiXyhBexY/JxtuWWO4v3T0VsX+ mMzoUO9H8V6tXIC3Voys1ayXgSFVTiCjlJsFvXU1K3X7oHAvjTB10MehWjATa6+49x1gcTr3vKwgE RZz5PJLaz42+k7G1+8nKY/XSP1/fXgnGdd23VfPLcDxsYNCJuLXNKORyBnbaxFo0SFSAZDenvKCgt G9vBcKAlYZcV779OhZ+UR/NuhMgn2H/ZFUSmTw4Sxt3Gqo2esCvA+UcGueWfLYN/4IZnGSglIk/0X i1B+H0vv6wSBDg==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Sat, 29 Jun 2024 19:17:21 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320872 Archived-At: > From: Gerd Möllmann > 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).