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.bugs Subject: bug#64101: 29.0.91; Eglot inlay hints rendered out of order Date: Sat, 17 Jun 2023 18:50:40 +0300 Message-ID: <83zg4yozov.fsf@gnu.org> References: <83r0qar07l.fsf@gnu.org> <877cs28m23.fsf@gmail.com> <83edmaqskn.fsf@gnu.org> <87352q8ent.fsf@gmail.com> <835y7mqlcu.fsf@gnu.org> <834jn6qisd.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="3056"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kklimonda@syntaxhighlighted.com, 64101@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 17 17:51:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qAYCu-0000bw-JX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Jun 2023 17:51:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAYCe-00019o-JP; Sat, 17 Jun 2023 11:51:04 -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 1qAYCd-00019J-0B for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 11:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qAYCc-0005Fp-NG for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 11:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAYCc-0003qS-Hc for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Jun 2023 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64101 X-GNU-PR-Package: emacs Original-Received: via spool by 64101-submit@debbugs.gnu.org id=B64101.168701705314762 (code B ref 64101); Sat, 17 Jun 2023 15:51:02 +0000 Original-Received: (at 64101) by debbugs.gnu.org; 17 Jun 2023 15:50:53 +0000 Original-Received: from localhost ([127.0.0.1]:52444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAYCT-0003q2-Bs for submit@debbugs.gnu.org; Sat, 17 Jun 2023 11:50:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAYCO-0003pm-Fv for 64101@debbugs.gnu.org; Sat, 17 Jun 2023 11:50:52 -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 1qAYCI-000593-Ew; Sat, 17 Jun 2023 11:50:42 -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=O2+9Ux5+rGl22oHJs+rBI461/6qQMeEhy9W4rA/uvlY=; b=GGXfNPCY27zO2IwNugyw V5lBdhJglVD459CW4WBN1P98vb5iCQo9vnyB0IHKhx1e7FohKAV9noGZKT9coGE6Qox84542+Xj64 786XTizhr0MK0qk5MnhUO+PxzkQMKqBIF4kB95tGArVvvcb9tnOhoiUJQpxQ7I91GdLSZJ5zMHnr6 IAY4l9/4f4dsum1eU8PDoZKyNFr3OoFm4GRmkCGysw76qtjnN28rq5/t9UGoLmSbZoN8+7L3hv16j 4KlnU3qXnT9ntY/92/biCFv1wcYlK6brtAJ2DWf6Qc5ioVLApBLTzMpQ6LDE0M6QnzJ4ohS/zkJPs L/5U39r4EEAuLQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAYCH-0001G7-Qi; Sat, 17 Jun 2023 11:50:42 -0400 In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Sat, 17 Jun 2023 15:29:38 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263551 Archived-At: > From: João Távora > Date: Sat, 17 Jun 2023 15:29:38 +0100 > Cc: kklimonda@syntaxhighlighted.com, 64101@debbugs.gnu.org, > monnier@iro.umontreal.ca > > > What order did your code expect in that case? > > The current order that I see on all my GNU Linux builds of Emacs (and also > my Windows builds, I'm fairly certain). The after-string and before-string > of a a more recently created overlay is displayed after the least > recently created overlay, all other overlay things being equal, > of course. That was never the case. The creation order has no direct relevance to the display order of overlays that cover the same text and have the same priority. What can affect the order is the address of each overlay in memory, but I don't think you can rely on memory-allocation routines to always allocate memory in the increasing order of addresses. So I don't think the code should rely on this assumption. Stefan, am I missing something?