all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Milan Jovanovic <milanj@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
	kklimonda@syntaxhighlighted.com, monnier@iro.umontreal.ca,
	64101@debbugs.gnu.org
Subject: bug#64101: 29.0.91; Eglot inlay hints rendered out of order
Date: Tue, 20 Jun 2023 14:50:47 +0100	[thread overview]
Message-ID: <CALDnm52m5EwQOZLbaw_N=HAQU4WXDd-Fj47BV9YDo+1=CTb6OA@mail.gmail.com> (raw)
In-Reply-To: <CALHEc_Zsvy_JWZFSvThEX87fgpJ3TBZ71dmntREbfYm8+rscvQ@mail.gmail.com>

On Tue, Jun 20, 2023 at 2:34 PM Milan Jovanovic <milanj@gmail.com> wrote:
>
> Well, from reading this thread I expected it to be sorted by priority.

I for one also expected that, though the actual behaviour is defensible
too (not to mention the second problem that Milan reported which stemmed
from my misplaced expectation is now also fixed in emacs-29, hopefully,
I'm just waiting for Milan to confirm).

More specifically, I expected setting monotonically increasing priorities
as one creates coinciding overlays one after the other to have the exactly
the same effect (wrt displaying before-string and after-string)
as creating these overlays _without_ setting priorities on a GNU/Linux system
with the default memory allocation routines (which as Stefan clarified is
a last-resort fallback).

IOW:

(setq a (make-overlay 10 20))
(setq b (make-overlay 10 20))
(overlay-put a 'after-string "aaa")
(overlay-put b 'after-string "bbb")

has a half-predictable effect on Linux.  In fact it displays
exactly the same as doing that with 'before-string'.

I would expect that adding

(overlay-put a 'priority 1)
(overlay-put b 'priority 2)

would have now a fully-predictable _same_ effect on every system.  The
fully-predictable requirement is fullfilled alright, but the display order
is reversed if 'after-string' is used.

But, again, I guess the behaviour _with_ priorities is defensible too.
Though it's not really obvious.

João





  parent reply	other threads:[~2023-06-20 13:50 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15 21:23 bug#64101: 29.0.91; Eglot inlay hints rendered out of order Krzysztof Klimonda
2023-06-17  7:56 ` Eli Zaretskii
2023-06-17  9:39   ` João Távora
2023-06-17 10:41     ` Eli Zaretskii
2023-06-17 12:19       ` João Távora
2023-06-17 13:17         ` Eli Zaretskii
2023-06-17 13:26           ` João Távora
2023-06-17 14:12             ` Eli Zaretskii
2023-06-17 14:29               ` João Távora
2023-06-17 15:50                 ` Eli Zaretskii
2023-06-17 16:45                   ` João Távora
2023-06-17 12:26     ` Krzysztof Klimonda
2023-06-17 19:02     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-17 22:25       ` João Távora
2023-06-18  0:45         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-18  8:47           ` João Távora
2023-06-18 14:18             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-18 14:22           ` João Távora
2023-06-18 14:29             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-18 14:36             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-18 15:20               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-19 16:17             ` Milan Jovanovic
2023-06-19 16:34               ` João Távora
2023-06-19 18:06                 ` Milan Jovanovic
2023-06-19 19:08                   ` João Távora
2023-06-19 21:05                     ` Milan Jovanovic
2023-06-19 22:38                       ` João Távora
2023-06-20 11:10                       ` Eli Zaretskii
2023-06-20 11:32                         ` Milan Jovanovic
2023-06-20 12:01                           ` Eli Zaretskii
2023-06-20 13:34                             ` Milan Jovanovic
2023-06-20 13:46                               ` Eli Zaretskii
2023-06-20 13:50                               ` João Távora [this message]
2023-06-17 20:54 ` Milan Jovanovic
2023-06-17 22:35   ` João Távora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALDnm52m5EwQOZLbaw_N=HAQU4WXDd-Fj47BV9YDo+1=CTb6OA@mail.gmail.com' \
    --to=joaotavora@gmail.com \
    --cc=64101@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=kklimonda@syntaxhighlighted.com \
    --cc=milanj@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.