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#71282: 30.0.50; hl-line overlay priority has no affect Date: Sun, 30 Jun 2024 15:23:00 +0300 Message-ID: <86a5j2hb6j.fsf@gnu.org> References: <87plt3lyvd.fsf@kisara.moe> <8634pyr0w8.fsf@gnu.org> <878qymd5ce.fsf@kisara.moe> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21745"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71282@debbugs.gnu.org, stefankangas@gmail.com To: Mohsin Kaleem , =?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 30 14:24:26 2024 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 1sNtbW-0005Te-10 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Jun 2024 14:24:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNtbC-0000nF-Oj; Sun, 30 Jun 2024 08:24:06 -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 1sNtb9-0000n2-Im for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 08:24:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNtb9-00043G-5a for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 08:24:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNtb8-0001eY-2U for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 08:24: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: Sun, 30 Jun 2024 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 71282-submit@debbugs.gnu.org id=B71282.17197502086301 (code B ref 71282); Sun, 30 Jun 2024 12:24:02 +0000 Original-Received: (at 71282) by debbugs.gnu.org; 30 Jun 2024 12:23:28 +0000 Original-Received: from localhost ([127.0.0.1]:55846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNtaa-0001dZ-0S for submit@debbugs.gnu.org; Sun, 30 Jun 2024 08:23:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNtaX-0001dM-Px for 71282@debbugs.gnu.org; Sun, 30 Jun 2024 08:23:26 -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 1sNtaR-0002kh-R9; Sun, 30 Jun 2024 08:23:19 -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=cNUHMimKQA7IEuJfo6kpybQIm7YoYf8bxYr5Nr6ZSSs=; b=aqp3uZ70z+KCNlDm4Mlf W+pB7r0zeJWKJuY3gwcTEZNnLrMGoNVoa8/tQSrG5MgGL8YuCJGj1CcNZ9QiOzoq+XC5FqWsEUWyM KDno4a5yDDeTzLleZgK9ER4eODp3ftiKFRfMT1wuTk9xhBCTHJy9jHs3mBhzeDwUyH4agp4hPi6Ud 3IpAw9IvbflN5lUeSVfzPQNjLGDs37aXL8a+Nzc/8AvapxfyP1SdjKu+GTzimyIkxidTPzphcp8yW ljkO078spDldNQ1XktdvABxcGTA45iP9wx1CXev0PEPW0cxEPPuJR1kl43tcwhQpyIT/+W5PAfO30 /S7HE18a2aJ/+A==; In-Reply-To: <878qymd5ce.fsf@kisara.moe> (message from Mohsin Kaleem on Sun, 30 Jun 2024 12:42:41 +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:288189 Archived-At: > From: Mohsin Kaleem > Cc: 71282-done@debbugs.gnu.org > Date: Sun, 30 Jun 2024 12:42:41 +0100 > > Stefan Kangas writes: > > >> This is intended behavior: overlay priority affects only the text to > >> which the overlay is applied. In the above snippet, the overlay is > >> applied to buffer text, whereas "foo" is an overlay string, and has > >> its own face information (which defaults to the face of the underlying > >> buffer text). So the hl-line overlay's face does not affect the face > >> of the before-string. > >> > >> There's no bug here, only a well-documented behavior. See the node > >> "Displaying Faces" in the ELisp manual for the details. > > > > I'm therefore closing this bug report. > > Hi, sorry, I forgot I opened this. If it's expected behaviour is the > usage of overlays here by eglot and related packages wrong? Even if it's > expected this is the only editor I've used which has inlay hints that > override attributes like hl-line. Is there an alternative way for eglot > to support inlay hints that isn't in conflict with hl-line? The only way I can think of is for Eglot to be sensitive to hl-line and to set up the colors of the inlay hints to be consistent with the hl-line's background. Not sure if Joćo (CC'ed) will like this. FWIW, I see no problem in the current behavior, but then I'm not an hl-line user.