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#61812: 30.0.50; Eglot inlay hints "pile up" Date: Sun, 26 Feb 2023 16:35:52 +0200 Message-ID: <83sfesijef.fsf@gnu.org> References: <83zg90ioyn.fsf@gnu.org> <83y1okin4w.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16481"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61812@debbugs.gnu.org To: Chinmay Dalal Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 26 15:37:28 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 1pWI9X-0004A7-VP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Feb 2023 15:37:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWI9B-0001cW-1H; Sun, 26 Feb 2023 09:37:05 -0500 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 1pWI98-0001cJ-On for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 09:37:02 -0500 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 1pWI98-0006xX-Ax for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 09:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWI98-0001Hl-6u for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 09:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2023 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61812 X-GNU-PR-Package: emacs Original-Received: via spool by 61812-submit@debbugs.gnu.org id=B61812.16774221674854 (code B ref 61812); Sun, 26 Feb 2023 14:37:02 +0000 Original-Received: (at 61812) by debbugs.gnu.org; 26 Feb 2023 14:36:07 +0000 Original-Received: from localhost ([127.0.0.1]:42832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWI8E-0001GD-WB for submit@debbugs.gnu.org; Sun, 26 Feb 2023 09:36:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWI88-0001FY-Tq for 61812@debbugs.gnu.org; Sun, 26 Feb 2023 09:36:04 -0500 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 1pWI83-0006h8-Bd; Sun, 26 Feb 2023 09:35:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CTedykjV1PqLHLlA1EiMxmMaHonU6MyUOmpLJhAb5rg=; b=b60tSkbccs8Q bBfj0/SfW52fBJfqWi5z8T9HJ925OJ9xZ2CHKidA+adJltM7A0z5aBRTJVRZMsyWYA8iQO7sy6QYP ex8Xrj/3eZ/AGK00lpQSUlLeAD7iVqJzWp0dygTftq70yu/kIwgn9pH3JXSMjWNz+ZBRXuvdMMfoy uOtJ6If0Q8Fz2jjmKIyBkM39/JM2t3m5GoEFCrHPBkyj7OsV01yRWYbVoAFdEW3BYolG52i2DNZbR 91LadNNHbAhoEjUSJ7r07iPKqpolcpi7E88bLfqLECOl1Iy2vPWZejYEz9uIws5Ii4LbhGRVVBkBx i/08+avJ6y6bulpgaJ0s2g==; 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 1pWI7v-0002dv-JH; Sun, 26 Feb 2023 09:35:53 -0500 In-Reply-To: (message from Chinmay Dalal on Sun, 26 Feb 2023 19:20:04 +0530) 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:256804 Archived-At: > From: Chinmay Dalal > Cc: 61812@debbugs.gnu.org > Date: Sun, 26 Feb 2023 19:20:04 +0530 > > > Eli Zaretskii writes: > > >> From: Chinmay Dalal > >> Cc: 61812@debbugs.gnu.org > >> Date: Sun, 26 Feb 2023 18:29:35 +0530 > >> > >> > And if the latter, what exactly > >> > causes the duplicates? You say "scroll around", but how do you > >> > "scroll around" (with what commands), and can you try figuring out > >> > what exactly triggers the appearance of the duplicates? > >> > >> "Scroll around" was inaccurate, apologies. I meant using C-n/C-p to move > >> the cursor. > > > > So if you move through a region with C-n/C-p time and again, you will > > see the duplicates appear one by one? > > Yes, this is not deterministic though - some places have duplicates, > some don't > > > If you go to the place where the duplicate hints are shown and type > > "M-x describe-text-properties RET", how many overlays are shown in the > > window Emacs pops up? Do you see a separate overlay for each > > duplication? > > Yes, there are separate overlays for each duplication, for example: > > From 7070 to 7070 > before-string [Show] > eglot--inlay-hint t > eglot--overlay t > From 7070 to 7070 > before-string [Show] > eglot--inlay-hint t > eglot--overlay t So it sounds like we are not deleting old overlays before adding new ones. Or maybe we should delete them automatically when point moves far enough?