From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#71282: 30.0.50; hl-line overlay priority has no affect Date: Mon, 1 Jul 2024 14:50:59 +0100 Message-ID: References: <87plt3lyvd.fsf@kisara.moe> <8634pyr0w8.fsf@gnu.org> <878qymd5ce.fsf@kisara.moe> <86a5j2hb6j.fsf@gnu.org> <875xtqczuu.fsf@kisara.moe> <867ce6h4iq.fsf@gnu.org> <865xtqh2b7.fsf@gnu.org> <861q4egwne.fsf@gnu.org> <87tth9uw5z.fsf@kisara.moe> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21548"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 71282@debbugs.gnu.org, stefankangas@gmail.com To: Mohsin Kaleem Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 01 15:53:25 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 1sOHT8-0005Hd-LX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Jul 2024 15:53:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOHSr-0002jt-Ns; Mon, 01 Jul 2024 09:53:05 -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 1sOHSp-0002gD-1w for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 09:53:04 -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 1sOHSn-0001Yv-E3 for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 09:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sOHSn-0004cO-Tv for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 09:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jul 2024 13:53:01 +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.171984194217700 (code B ref 71282); Mon, 01 Jul 2024 13:53:01 +0000 Original-Received: (at 71282) by debbugs.gnu.org; 1 Jul 2024 13:52:22 +0000 Original-Received: from localhost ([127.0.0.1]:60614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOHS9-0004bQ-RV for submit@debbugs.gnu.org; Mon, 01 Jul 2024 09:52:22 -0400 Original-Received: from mail-lf1-f50.google.com ([209.85.167.50]:57622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOHS7-0004b9-0k for 71282@debbugs.gnu.org; Mon, 01 Jul 2024 09:52:20 -0400 Original-Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-52cdc4d221eso3312435e87.3 for <71282@debbugs.gnu.org>; Mon, 01 Jul 2024 06:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719841871; x=1720446671; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JiTGSc6F9iqfpXh8nKTsKngrCZ3RALWHI4B6DDN/hjI=; b=bjDMGJPRhZzWzQgKaxxykHPN8SWTl64tdkF1zhHX5DRGyyulHrPK/DUK43opWIhpDo l32HYxd3LXDbDejLCsjwVLTrT545dW9Xg+DbAL5ruhTqwiUaAWfHG9pceobWXOYebBs9 LrHlqvn1TyR/tKyEvfzq9Xf5ttTs8WP2WhzgfmsPBrLgPN3q02z+4pRjmk5th3Y1h51g 139bzlKhpVHjZ1EjaxqF5LdhV62mBWLsos1aFkN1PczcQZx317Oz/kfC179zC+K7SuHS pGDO0fIy82CaJkIqLjdJ9pX5H2xEoFVZixF56/jS8Ty/sQ2bz0ChPzY81tv3hzJiQIzK H7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719841871; x=1720446671; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JiTGSc6F9iqfpXh8nKTsKngrCZ3RALWHI4B6DDN/hjI=; b=NmZJrP8YiQRsFxLjZFthIv9ggezpQXeRhLW2qMOc9E4Ywg0GNpyweTkLQHJ/gd2Bqg vrBTb77gXL6+3+L+1YYeAzB9Va+W/yjsZzccz180+k6hjKN0iCaiaL2wD/RUgH4I+9mG u78RBAe2GcGwWyUNAC0dg+aSGzphYGniA5Apk/JcFynSj2dH+YOuZloKnKShDPuu0fed rMEVgxMEZ+ctoKkeRYovwRE4qSz6vP5livoZct1zkfhJ/+xCsT7Y8Nbn3c9xN2lGjjIM /TREt2YFm/g20hcvv191sQPFZFaNZL1pxQDyyN8IaodKcVm7Dtl8sxsPmlv7bUx9vkBM SJnw== X-Forwarded-Encrypted: i=1; AJvYcCVFoSwh6BRWQ5VY8MqM4akMnz4S7XC3Os3aCVGNg0Ntdm3hC97d658xii9V4P+7ryRNmfTP6z1avnH91kRquG9KJqVVA98= X-Gm-Message-State: AOJu0YyZyxPkEEt1HUAsKFB/+3KhAiKmFB4dJcfQqLcX7lRaxB1KSwGo HuDSQZ3Ga+W+qXiN0ngwq4CMEo7b1SpbaniUU6YMYYdrBtI8dVwSgAKayvoNscjsv867/lVAjCi CjTvSLRvMHYiauuHizyKgfdVqOFk= X-Google-Smtp-Source: AGHT+IHlIoreKUJQT506Q4Sb+7J4J8T0RnGJZCDOCd+EYS9QpxuZB4r2bZrCdtN3pmNWMHidziPu7oGXojmch2xSw2Y= X-Received: by 2002:a19:5f41:0:b0:52d:b1c9:34e with SMTP id 2adb3069b0e04-52e82666444mr2880596e87.21.1719841871208; Mon, 01 Jul 2024 06:51:11 -0700 (PDT) In-Reply-To: <87tth9uw5z.fsf@kisara.moe> 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:288256 Archived-At: On Mon, Jul 1, 2024 at 1:35=E2=80=AFPM Mohsin Kaleem w= rote: > > Eli Zaretskii writes: > >> > >> Then if that mechanism doesn't require anything specific of package X = or > >> Y, it should be possible to condense in a function (that shouldn't liv= e in > >> Eglot, but OK it it starts life there, I guess) that takes a face with > >> a number of > >> attributes,merges with whatever is "the face of the buffer text" and r= eturn > >> an (anonymous) face. If so, then that "mistery" function is the fix > >> to this issue. > > > > Patches welcome. > > Any tips or suggestions for where to start if one wants to implement > something like this? I'll try taking a look at some of the related code > and how to get some kind of merging setup. Probably not very soon tho > XD. Moshin, I don't know if you read my later email, but I'd like to point out that that function, which I briefly thought could be used to fix this issue, is NOT the solution. I'm fairly sure it won't work, at least not for the hl-line use case you bring forth. As far as I can see, short of an xdisp.c fix for this, the Elisp solution is very hard and involves hl-line doing perhaps extraordinary amounts of work in 'hl-line-highlight' and 'hl-line-unhighlight' to account for intersecting overlays, their after strings, before strings, but only in those parts that touch the line to be highlighted. Jo=C3=A3o