GNU bug report logs - #64101
29.0.91; Eglot inlay hints rendered out of order

Previous Next

Package: emacs;

Reported by: Krzysztof Klimonda <kklimonda <at> syntaxhighlighted.com>

Date: Fri, 16 Jun 2023 05:57:04 UTC

Severity: normal

Found in version 29.0.91

Full log


Message #59 received at 64101 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: João Távora <joaotavora <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 Krzysztof Klimonda <kklimonda <at> syntaxhighlighted.com>, 64101 <at> debbugs.gnu.org
Subject: Re: bug#64101: 29.0.91; Eglot inlay hints rendered out of order
Date: Sun, 18 Jun 2023 10:18:50 -0400
>> > This would make some sense, but I'm not sure I'm doing it correctly.  If
>> > I replace the above line with
>> >
>> >    (overlay-put ov 'priority `(nil . i))
>>
>> Did you forget the comma?
>>
>>     (overlay-put ov 'priority `(nil . ,i))
>
> Hehe, no, not in real life, only in the examples in my email, which
> are all messed up.  Let me try again...
>
> Yep, SECONDARY doesn't seem to do anything
>
> <no form>   => correctly sorted overlays
> (overlay-put ov 'priority i)  => correctly sorted overlays
> (overlay-put ov 'priority (- 10 i) => reverse sorted overlays
> (overlay-put ov 'priority `(nil . ,i)  => correctly sorted overlays
> (overlay-put ov 'priority `(nil . ,(- 10 i)  => correctly sorted overlays (!)

Hmm... do you have a simple recipe that I could try?
Do those overlays all really share the same start and end?
IOW, can you check/show

    (mapcar (lambda (ol)
              `(,(overlay-start ol)
                ,(overlay-end ol)
                . ,(overlay-get ol 'priority)))
            (overlays-at <POS> t))

?


        Stefan





This bug report was last modified 2 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.