From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64101: 29.0.91; Eglot inlay hints rendered out of order Date: Sun, 18 Jun 2023 10:29:26 -0400 Message-ID: References: <83r0qar07l.fsf@gnu.org> <877cs28m23.fsf@gmail.com> <87v8fl7mko.fsf@gmail.com> <87mt0w7sv2.fsf@gmail.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18996"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Krzysztof Klimonda , 64101@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 18 16:30:16 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 1qAtPz-0004lA-Qf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Jun 2023 16:30:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAtPu-0001GT-KW; Sun, 18 Jun 2023 10:30:10 -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 1qAtPm-0001Dr-OS for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2023 10:30:04 -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 1qAtPm-0004UU-52 for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2023 10:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAtPm-0002qf-0e for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2023 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jun 2023 14:30:01 +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.168709857510892 (code B ref 64101); Sun, 18 Jun 2023 14:30:01 +0000 Original-Received: (at 64101) by debbugs.gnu.org; 18 Jun 2023 14:29:35 +0000 Original-Received: from localhost ([127.0.0.1]:54807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAtPL-0002pc-0Y for submit@debbugs.gnu.org; Sun, 18 Jun 2023 10:29:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:61404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAtPJ-0002pN-SB for 64101@debbugs.gnu.org; Sun, 18 Jun 2023 10:29:34 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9F97E1000C4; Sun, 18 Jun 2023 10:29:28 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 8F2D0100083; Sun, 18 Jun 2023 10:29:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1687098567; bh=4ncqFy1rxHL90yeHPd74r96Klr1q+7GeDQBabxJRlOw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bLBLd4LBaObjvmjKEXcURfWZVyk+UHMcKZcIqgvVJZnD9vEloIZA1XgNorczgsyTY bF8Ipriq0rHT8rCYwhmHlvc500RD/fSHM5+IFFP6jNdr3xxx1Miich5dO3BotBRnN2 IwHiPyyAqi51ZJXSgfGmRR+E0IwRS9MhpbUwFjchNNGofR3sRFYQBOH9p0mKm9S10y oi393DOXNo/k/VC3xVGbvC3rKi1CECQQARuz2cnCbSJ/D88KMTfspnMpMwqo7eBtV5 0wk2rjcmlKPtMWeTXXYsi+XL3cuZOi4JywgOADQ2X5YU8+MfFipyAENGkER/sMjiwv PkwEkOFpAm9fg== Original-Received: from pastel (unknown [45.72.207.87]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5FE8D1205D9; Sun, 18 Jun 2023 10:29:27 -0400 (EDT) In-Reply-To: <87mt0w7sv2.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sun, 18 Jun 2023 15:22:25 +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:263636 Archived-At: > Right, that makes sense. It's more or less what I feared too, though > this is all speculative at this point. Anyway, can you explain this? Nope :-( > Take this scratch buffer > > ;; This buffer is for text that is not saved, and for Lisp evaluation. > ;; To create a file, visit it with C-x C-f and enter text in its buffer. > > (progn > (mapc #'delete-overlay (overlays-in (point-min) (point-max))) > (let ((a (make-overlay 10 20)) > (b (make-overlay 10 20))) > (overlay-put a 'after-string (propertize "aaaa" 'face 'highlight)) > (overlay-put b 'after-string (propertize "bbbb" 'face 'speedbar-highlight-face)) > ;; (overlay-put a 'priority 1) > ;; (overlay-put b 'priority 2) > (overlay-put a 'priority `(nil . 1)) > (overlay-put b 'priority `(nil . 2)) > )) > > This displays AAAABBBB eventually, but I would expect it to show > BBBBAAAA, which is what I get if I use "primary" priorities. I can indeed reproduce the different rendering here, yet the sorting done by `overlays-at` is the same in both cases, so it looks like we sort some other way somewhere (presumably somewhere in the C code). Stefan