GNU bug report logs - #79779
31.0.50; Making invisible markup invisible changes behavour of hover

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: scturtle <hi@HIDDEN>; Done: João Távora <joaotavora@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 79779-done <at> debbugs.gnu.org:


Received: (at 79779-done) by debbugs.gnu.org; 8 Nov 2025 12:14:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 08 07:14:20 2025
Received: from localhost ([127.0.0.1]:51218 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHhpj-0005Z2-8L
	for submit <at> debbugs.gnu.org; Sat, 08 Nov 2025 07:14:19 -0500
Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]:52242)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vHhpf-0005Yf-KZ
 for 79779-done <at> debbugs.gnu.org; Sat, 08 Nov 2025 07:14:17 -0500
Received: by mail-oi1-x22b.google.com with SMTP id
 5614622812f47-443aa90f025so797883b6e.0
 for <79779-done <at> debbugs.gnu.org>; Sat, 08 Nov 2025 04:14:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1762604049; x=1763208849; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=0+0EVTXstd0Ud4A8NsOPcmRjLgtzOlCbRf36CH0Uloo=;
 b=X6/R9twsKfabqLZflc6zFACWGIIv96IDbQMPcPhAp4we8FY7idSiahsvRASBlwk2hI
 scwDvuv5wuqkqShSp1lzvPilkG7wX5CiywqIpI6QwUlREf1gQ2lbSffl+LcUcaBfJgqS
 KrWoS6mTFGRwtZTTPUozaqLgSMa3ZDwC/L7WUWIO76KujAJn0hlQuuhFjtmySNWsycqx
 sivSICnEUyh7lZL6++z+2aZXdABwv9PNiAgZkyvWZvk+cyC7d/hOLHsg0gL0gm58vad+
 ohAKoW188tuA6O93An7UIlFuM1P1JlASCpqQr8n6EwnClz7fn23ZBemLOjcTjHejUI9A
 K2PA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762604049; x=1763208849;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=0+0EVTXstd0Ud4A8NsOPcmRjLgtzOlCbRf36CH0Uloo=;
 b=S4q75/GYAuTDWjtSof0UiVxXi2E0A5SBUI/aATXX8g3XVBFOctxScz87ob51c6XT91
 1xZwR3t5BQpIZTiKwRdH2aelYRhzqzXnVwAkUuG9nEb36nBDRXtYu956JaZcx5/xb0lx
 5W9bNbp3NAN1HhquYGurClexGGp4ec0IRvME2dSZY1GwvTGcvvn6aptTPaBUATHC0Q7b
 TcEvVsi2BFeTrACLmNrGXjdhltZmT+nZ4wIMwleTRvQ8Diwq8paULImWZhHwznF1JjpQ
 5LeuAEVztA1FsY3Mxq0vZ2R9trdyyWeATTlGxpNlvOBQSEQwDVkB+Tci401CvdPpat34
 AT3w==
X-Forwarded-Encrypted: i=1;
 AJvYcCVWLXLFR9c+ccNq5WdhU/mISqDkaou8Utk05HkimJxScrXTRJy+8IDvkCn+yYXG8bE13BXgwvxj4w6h <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YzZQo6uTbeAed8z4o/PTqt2IqMP/E7sewkgR6Rh8GWbpSAquiuA
 K0PZNJ65UO2eVz/vRRlpb9YN7lNFcYTWzMxV8jdE4H4vMESSKTaguQ8cGdWZmAgPtOEapCBZEJu
 eouUR1VUBMKpI+PUqKXkVJlOdST/3WOg=
X-Gm-Gg: ASbGnctg6hag3YOrOBwkCcm6YevxmZtCHsNCF9WVi+o4RL6rN7wzyTXVRYvLAHQmoYq
 KuvVG+mWNVb5bpDZaeM4spv6UTaYM3Kb0sZLPCK9TbOTApovgbdesAG/1kLirorc1KjAPrcDmOF
 Fqpsafg/FxG7WGDnaxrpXMOYQYrlav636O44oYhTz4IdpB+Vr6djsQCyykXHLDEbx8n8EhZGqkg
 fzoe0Tf+BR01N8gBeajs5B1gNSV4Dx6Jnex7CbLJR/qfULPz9nFK3jOnfSSJqCWShSqwB0=
X-Google-Smtp-Source: AGHT+IFHzNMwHQ07FAqPf+Cv/j3NuLaXmaJKN2/MGLmXxuLiu1+nGGqFqcgdX7uCUwgrVtlehSw1WGiP/3B7sAqWbVo=
X-Received: by 2002:a05:6808:219e:b0:44d:bf83:d7f8 with SMTP id
 5614622812f47-4502a170c01mr1233150b6e.4.1762604049518; Sat, 08 Nov 2025
 04:14:09 -0800 (PST)
MIME-Version: 1.0
References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
 <86pl9u9r84.fsf@HIDDEN> <ierwm416e1w.fsf@HIDDEN>
 <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
 <ier346p4hfd.fsf@HIDDEN> <87a50x8okg.fsf@HIDDEN>
 <CALDnm51CxiDqB=0kEnPT8guk6SeqF0cK97efuD59R=17ZhP-YQ@HIDDEN>
 <CACQ1X_kok5PbT1RrfD2qs294XJbg9StvtMAHHSURtC-YEkO+3Q@HIDDEN>
In-Reply-To: <CACQ1X_kok5PbT1RrfD2qs294XJbg9StvtMAHHSURtC-YEkO+3Q@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Sat, 8 Nov 2025 12:15:30 +0000
X-Gm-Features: AWmQ_bnDiiMWHKpOB6kkquKGpV7-vBJpHMHD0JMKHqVhSHnyMlX5emIvK865wq4
Message-ID: <CALDnm52_SexbKKruecsjGxcizRT8ZUrEzc1HBY1=n9+0CT+8RA@HIDDEN>
Subject: Re: bug#79779: 31.0.50; Making invisible markup invisible changes
 behavour of hover
To: scturtle <hi@HIDDEN>, 79779-done <at> debbugs.gnu.org
Content-Type: multipart/alternative; boundary="0000000000004056360643143c17"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79779-done
Cc: Spencer Baugh <sbaugh@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000004056360643143c17
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I've pushed a slightly modified version of Spencer's patch.

Closing.
Please test, and we'll reopen if the problem persists.

On Sat, Nov 8, 2025 at 12:23=E2=80=AFAM scturtle <hi@HIDDEN> wrote:

> Spencer's patch tested and working. Thanks!
>
> Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> =E4=BA=8E2025=E5=B9=B411=E6=
=9C=888=E6=97=A5=E5=91=A8=E5=85=AD 07:04=E5=86=99=E9=81=93=EF=BC=9A
> >
> > On Fri, Nov 7, 2025 at 10:27=E2=80=AFPM Jo=C3=A3o T=C3=A1vora <joaotavo=
ra@HIDDEN>
> wrote:
> >>
> >> Spencer Baugh <sbaugh@HIDDEN> writes:
> >>
> >> > Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:
> >> >
> >> >> Something like this should be the fix but
> >> >> text-property-search-forward or something like that is
> >> >> what should be used.
> >> >
> >> > It would be next-property-change since text-property-search-forward
> >> > doesn't work on strings.  But either way I think that would be more
> >> > complicated code than searching for the first visible newline by
> >> > searching for newlines until you find a visible one.
> >>
> >> If you're looking for simplification (and effiency) perhaps the best
> >> thing to do is to do that search when doing the invisible property
> >> search in `eglot--format-markup`, then recording the result for later
> >> use.
> >
> >
> > On second thought, I think you're right Spencer: your approach
> > is simpler.  Let's have scturtle test it.
> >
> > Jo=C3=A3o
>


--=20
Jo=C3=A3o T=C3=A1vora

--0000000000004056360643143c17
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;ve pushed a slightly modified version of Spence=
r&#39;s patch.</div><div><br></div><div>Closing.</div><div>Please test, and=
 we&#39;ll reopen if the problem persists.</div></div><br><div class=3D"gma=
il_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sa=
t, Nov 8, 2025 at 12:23=E2=80=AFAM scturtle &lt;<a href=3D"mailto:hi@scturt=
le.me">hi@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">Spencer&#39;s patch tested and working. Thanks!<br>
<br>
Jo=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@HIDDEN" target=3D=
"_blank">joaotavora@HIDDEN</a>&gt; =E4=BA=8E2025=E5=B9=B411=E6=9C=888=E6=
=97=A5=E5=91=A8=E5=85=AD 07:04=E5=86=99=E9=81=93=EF=BC=9A<br>
&gt;<br>
&gt; On Fri, Nov 7, 2025 at 10:27=E2=80=AFPM Jo=C3=A3o T=C3=A1vora &lt;<a h=
ref=3D"mailto:joaotavora@HIDDEN" target=3D"_blank">joaotavora@HIDDEN<=
/a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Spencer Baugh &lt;<a href=3D"mailto:sbaugh@HIDDEN" target=
=3D"_blank">sbaugh@HIDDEN</a>&gt; writes:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Jo=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@gmail.=
com" target=3D"_blank">joaotavora@HIDDEN</a>&gt; writes:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Something like this should be the fix but<br>
&gt;&gt; &gt;&gt; text-property-search-forward or something like that is<br=
>
&gt;&gt; &gt;&gt; what should be used.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; It would be next-property-change since text-property-search-f=
orward<br>
&gt;&gt; &gt; doesn&#39;t work on strings.=C2=A0 But either way I think tha=
t would be more<br>
&gt;&gt; &gt; complicated code than searching for the first visible newline=
 by<br>
&gt;&gt; &gt; searching for newlines until you find a visible one.<br>
&gt;&gt;<br>
&gt;&gt; If you&#39;re looking for simplification (and effiency) perhaps th=
e best<br>
&gt;&gt; thing to do is to do that search when doing the invisible property=
<br>
&gt;&gt; search in `eglot--format-markup`, then recording the result for la=
ter<br>
&gt;&gt; use.<br>
&gt;<br>
&gt;<br>
&gt; On second thought, I think you&#39;re right Spencer: your approach<br>
&gt; is simpler.=C2=A0 Let&#39;s have scturtle test it.<br>
&gt;<br>
&gt; Jo=C3=A3o<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Jo=
=C3=A3o T=C3=A1vora</div>

--0000000000004056360643143c17--




Notification sent to scturtle <hi@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to João Távora <joaotavora@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 79779 <at> debbugs.gnu.org:


Received: (at 79779) by debbugs.gnu.org; 8 Nov 2025 00:23:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 07 19:23:08 2025
Received: from localhost ([127.0.0.1]:49550 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHWjU-0008Bp-FZ
	for submit <at> debbugs.gnu.org; Fri, 07 Nov 2025 19:23:08 -0500
Received: from mail-ej1-f50.google.com ([209.85.218.50]:48586)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <scturtle@HIDDEN>)
 id 1vHWjR-0008Bj-G9
 for 79779 <at> debbugs.gnu.org; Fri, 07 Nov 2025 19:23:06 -0500
Received: by mail-ej1-f50.google.com with SMTP id
 a640c23a62f3a-b64cdbb949cso242550566b.1
 for <79779 <at> debbugs.gnu.org>; Fri, 07 Nov 2025 16:23:05 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762561384; x=1763166184;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=5w+j0/ODqWoPTPr7KJQZCnqrDWfteOx0dkbSZj3bRJY=;
 b=cwT4EnDAFwfg2/kb1ETt2wKiRv+fZ5Zg3R9117B/1tq/V1J+tC94krPwEJBozMfJKr
 jFyhIa2pYjuNTg+r6xVKJ6Ln7hmkPOtLl400IlDZT8ULjHRi02NTaaj/OgFvu4CN3AbA
 umbw8kcUPL/BJqKhH4g9Bc05/bMtenvAiQPuNyE7H5aZDctxfSZuCzXH8HAAp0JIX/Je
 k0LE0X5dGwejBfnamenQsBwlBEYsZGTFgkGeVarQu1kczXx7tMV+i0FZXUfV409J9n7s
 6w2EJxjObRhEugUAFHpHV0zI87X+zV0wLHc6SXtLpgMxd5IkwjznVRS26qmFY+mLWeQp
 2ojg==
X-Forwarded-Encrypted: i=1;
 AJvYcCUad0VTybDvOM+cZANSrN+F3zOEMNRNGs4Zg2ZekzZPOKdeocfW9Xt+wco8Ckaf5/HIWfimGA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yz+kATV9bAyhv0QOlA+y+d6UAp98klXsGCkPY7pca+S13JJ986t
 gGWdb3UaKPjTu7+YbHGvvezmCLrOoyzxBObODjuqxo0HcnD92XuJeRsaxBBvbcTV315+Hw==
X-Gm-Gg: ASbGncuQkcIC5PIhGm96vd4wYoapakWFwmOpRY93zijc1zGGjlKNiYd9hjngdirHyr0
 3oUK5df8oM4we1lR2c7EuP/KtlA44DetqjDhi0P5+T33DYEMLf0yQrcHHCRbtpTqnQIukgvx+na
 XA0kaaPG1b/u+ZmWwW7I0tp31zKCsjQswJ0w6cYFYlAB7Y69aO7AcNISTjXqZpPtShgSRW9cHhO
 70hO4D/ZVwcFn+W0ocrMwpNtFTFlwCCh9wGcpiC+5R7nIxjWMYlmJnfKUwu4py/9b5ykdowwcDL
 PtvaFredYhEZjK4ggNbybK4CP2aU/7RXEbLe9rhnoE0XLSvpFPJ2LbghlOBP/fM3XY/tg3sHqW4
 OaChLDfcO7yPZI8rW26Kahzx3csnL11wvLgwysrV3qrbybcaasfJI8SssqKk2Ubgs0oTHSWZMLm
 VyahmpaUIJXSVBbNWIQpt99bjpWy/uO9KkwWWpk6IE
X-Google-Smtp-Source: AGHT+IGRqZPOSB68yHtQN1aS5Z7JHVKt0PMNA0sZLadhBb4Mewbf9xmIjIPJEXdw2yvyQvwg+sYuqQ==
X-Received: by 2002:a17:907:5ca:b0:b70:a982:ad71 with SMTP id
 a640c23a62f3a-b72e04e351bmr126392466b.33.1762561383770; 
 Fri, 07 Nov 2025 16:23:03 -0800 (PST)
Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com.
 [209.85.208.45]) by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-b72bf312240sm384964966b.18.2025.11.07.16.23.03
 for <79779 <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 07 Nov 2025 16:23:03 -0800 (PST)
Received: by mail-ed1-f45.google.com with SMTP id
 4fb4d7f45d1cf-640b0639dabso2357196a12.3
 for <79779 <at> debbugs.gnu.org>; Fri, 07 Nov 2025 16:23:03 -0800 (PST)
X-Forwarded-Encrypted: i=1;
 AJvYcCUCGwUNdslfESz7i2jC2gRRzS3DUG1IkTGLQy6CMsb1GKHfHdv0n+cKLgIJVaqR4TQJssafdQ==@debbugs.gnu.org
X-Received: by 2002:a05:6402:5352:10b0:640:bce5:77a9 with SMTP id
 4fb4d7f45d1cf-6415e7f8d1dmr646688a12.32.1762561383283; Fri, 07 Nov 2025
 16:23:03 -0800 (PST)
MIME-Version: 1.0
References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
 <86pl9u9r84.fsf@HIDDEN> <ierwm416e1w.fsf@HIDDEN>
 <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
 <ier346p4hfd.fsf@HIDDEN> <87a50x8okg.fsf@HIDDEN>
 <CALDnm51CxiDqB=0kEnPT8guk6SeqF0cK97efuD59R=17ZhP-YQ@HIDDEN>
In-Reply-To: <CALDnm51CxiDqB=0kEnPT8guk6SeqF0cK97efuD59R=17ZhP-YQ@HIDDEN>
From: scturtle <hi@HIDDEN>
Date: Sat, 8 Nov 2025 08:22:36 +0800
X-Gmail-Original-Message-ID: <CACQ1X_kok5PbT1RrfD2qs294XJbg9StvtMAHHSURtC-YEkO+3Q@HIDDEN>
X-Gm-Features: AWmQ_bml4ebdQjQ4vAPPWK8lP3jA_AVp-8GEwSGxX96qMoIn9Q8h7-CyR2Z_5Pc
Message-ID: <CACQ1X_kok5PbT1RrfD2qs294XJbg9StvtMAHHSURtC-YEkO+3Q@HIDDEN>
Subject: Re: bug#79779: 31.0.50; Making invisible markup invisible changes
 behavour of hover
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79779
Cc: Spencer Baugh <sbaugh@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 79779 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Spencer's patch tested and working. Thanks!

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> =E4=BA=8E2025=E5=B9=B411=E6=9C=
=888=E6=97=A5=E5=91=A8=E5=85=AD 07:04=E5=86=99=E9=81=93=EF=BC=9A
>
> On Fri, Nov 7, 2025 at 10:27=E2=80=AFPM Jo=C3=A3o T=C3=A1vora <joaotavora=
@gmail.com> wrote:
>>
>> Spencer Baugh <sbaugh@HIDDEN> writes:
>>
>> > Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:
>> >
>> >> Something like this should be the fix but
>> >> text-property-search-forward or something like that is
>> >> what should be used.
>> >
>> > It would be next-property-change since text-property-search-forward
>> > doesn't work on strings.  But either way I think that would be more
>> > complicated code than searching for the first visible newline by
>> > searching for newlines until you find a visible one.
>>
>> If you're looking for simplification (and effiency) perhaps the best
>> thing to do is to do that search when doing the invisible property
>> search in `eglot--format-markup`, then recording the result for later
>> use.
>
>
> On second thought, I think you're right Spencer: your approach
> is simpler.  Let's have scturtle test it.
>
> Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79779; Package emacs. Full text available.

Message received at 79779 <at> debbugs.gnu.org:


Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 23:04:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 07 18:04:50 2025
Received: from localhost ([127.0.0.1]:49134 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHVVh-0005Gy-RC
	for submit <at> debbugs.gnu.org; Fri, 07 Nov 2025 18:04:50 -0500
Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:43179)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vHVVe-0005Gn-NA
 for 79779 <at> debbugs.gnu.org; Fri, 07 Nov 2025 18:04:47 -0500
Received: by mail-ot1-x332.google.com with SMTP id
 46e09a7af769-7c28bf230feso1093810a34.0
 for <79779 <at> debbugs.gnu.org>; Fri, 07 Nov 2025 15:04:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1762556681; x=1763161481; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=4MNNS6dygVXZuZ03tdg27ylcIeFOJsme+4hzdZYAGkE=;
 b=jEwtUMChkCLG/0AqQ3AQrZ110SXUwysXmVZmeqS26lrNVAziWhK9VZlv5ldQ9zZTrA
 tEQVAerpfs6tZchz4JeHlGvCbOMEv+pwmjSgh2iSAkwCU+t6/erfyazWjckq+XfYtmFF
 XAw+tkVtOM2E9IDvt6V/pPl46jZGWIU1IF0RGAjiUWL3TTJYXQgYsNBa7fm3BKYENCd6
 NceORtDbfzgI/nX4KGxIRSt44gzzxIYLjcgUXBf8CRoH+gl9PJquo2JRnURN6MIsB2/p
 wsINp6fWfDC1wMH8I+CfIdTbl47WVZByQcBUnXxz6G4dXYjfNY4IMNRXNSmdPT7e0Die
 o7gQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762556681; x=1763161481;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=4MNNS6dygVXZuZ03tdg27ylcIeFOJsme+4hzdZYAGkE=;
 b=YGP2iC4PrYKwYrR+J95e7HRc2/xakt0JQOtIPbD0tYtODFgN+/8EnCO36b6RU2kbx0
 BqUGCFaN1FL9kZivEBiNNPVapaMERqAOH9QfNIqx/A7S+WYNMO0kn2NpOhy6c35fZgco
 41nPjqIkd2Drhd9YyY72gtm311qZqAtw/gfvZAgjZ5mV2rdh+og4htm8GlvpzqUGWETt
 S+55cfqLHT7XLfKYXNykWD6Qip+HUFXZ+QMdm0ZJQ20IDkxa/6DJEswDwojI/ybXp9Du
 SJId8IVVvrLNESPoOnTDDj67/zp1Z22ItN50whQw4XSgMj8+s30vNhkFpNgwnGLJmUTK
 Vtnw==
X-Forwarded-Encrypted: i=1;
 AJvYcCWtUTgyov4RPl4J9SiYu4LDPFnb3hCkaKV9ttYVj8yEWlH1eynJ+bJHDHYdXHEbKnEtVxD2Kw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzDAPQWQz4I+58E4eWJCIQw117UJQF5U69NZUWX9THh5MtL1Rqt
 87k8njhD+r/CcwCGd5HacHsFtHbsettLuRhSlSIl2nN/l/oy4F5mPTs54Uue8f9rbo01boHCWzU
 1WCELPX9OScckad5r6jjwcq63EKlzorg=
X-Gm-Gg: ASbGncsDwudSlyP5/MvDpnnw4quiCAiyHXHMZ5bAPN3R6V8M2WPUVDrfzf8nndz9y/I
 A2DWg5a3CV/doHJyu4fiWxkAH3YP8PFRUtwgk6Z+OLTgzuST6KFPMjZOKtafUHsh/A0lEyLy9D2
 uM/5fG//a93GUUGAkHibCpLXvAayPv1HIRqqSxChhQ/bGOc2tW6O+x1JC4LWrodnbUVetWAgD5/
 sUBUMU55R3zkfXrde4C41CEuw0aV5F15B0ahPq3+uGPLpAtFNPY6cO+TJQZHdYhO7rW/nY=
X-Google-Smtp-Source: AGHT+IFzV1bDNwhura3G1Nz0uB+L+I01c0wvI4ZYFhpw1AUzLo1jefj0Xf9fazbsQdtRFAQO/jaWEqHpDrAk4buNaSU=
X-Received: by 2002:a05:6808:c149:b0:44d:a5cd:e803 with SMTP id
 5614622812f47-4501c9385d6mr1756885b6e.20.1762556680653; Fri, 07 Nov 2025
 15:04:40 -0800 (PST)
MIME-Version: 1.0
References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
 <86pl9u9r84.fsf@HIDDEN> <ierwm416e1w.fsf@HIDDEN>
 <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
 <ier346p4hfd.fsf@HIDDEN> <87a50x8okg.fsf@HIDDEN>
In-Reply-To: <87a50x8okg.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Fri, 7 Nov 2025 23:06:01 +0000
X-Gm-Features: AWmQ_blTv1zVUw52onoYLVaOzsbcifD0Do4X1EoSg3QfUoZqsjsVT9u5e5sTEvY
Message-ID: <CALDnm51CxiDqB=0kEnPT8guk6SeqF0cK97efuD59R=17ZhP-YQ@HIDDEN>
Subject: Re: bug#79779: 31.0.50; Making invisible markup invisible changes
 behavour of hover
To: Spencer Baugh <sbaugh@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000d8cfe3064309349e"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79779
Cc: Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org,
 scturtle <hi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000d8cfe3064309349e
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 7, 2025 at 10:27=E2=80=AFPM Jo=C3=A3o T=C3=A1vora <joaotavora@g=
mail.com> wrote:

> Spencer Baugh <sbaugh@HIDDEN> writes:
>
> > Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:
> >
> >> Something like this should be the fix but
> >> text-property-search-forward or something like that is
> >> what should be used.
> >
> > It would be next-property-change since text-property-search-forward
> > doesn't work on strings.  But either way I think that would be more
> > complicated code than searching for the first visible newline by
> > searching for newlines until you find a visible one.
>
> If you're looking for simplification (and effiency) perhaps the best
> thing to do is to do that search when doing the invisible property
> search in `eglot--format-markup`, then recording the result for later
> use.


On second thought, I think you're right Spencer: your approach
is simpler.  Let's have scturtle test it.

Jo=C3=A3o

--000000000000d8cfe3064309349e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Fri, Nov 7, 2025 at 10:27=E2=80=AFPM J=
o=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@HIDDEN">joaotavora=
@gmail.com</a>&gt; wrote:</div><div class=3D"gmail_quote gmail_quote_contai=
ner"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left:1px solid rgb(204,204,204);padding-left:1ex">Spencer Baugh &lt;<a=
 href=3D"mailto:sbaugh@HIDDEN" target=3D"_blank">sbaugh@janestreet.=
com</a>&gt; writes:<br>
<br>
&gt; Jo=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@HIDDEN" targ=
et=3D"_blank">joaotavora@HIDDEN</a>&gt; writes:<br>
&gt;<br>
&gt;&gt; Something like this should be the fix but<br>
&gt;&gt; text-property-search-forward or something like that is <br>
&gt;&gt; what should be used.=C2=A0 <br>
&gt;<br>
&gt; It would be next-property-change since text-property-search-forward<br=
>
&gt; doesn&#39;t work on strings.=C2=A0 But either way I think that would b=
e more<br>
&gt; complicated code than searching for the first visible newline by<br>
&gt; searching for newlines until you find a visible one.<br>
<br>
If you&#39;re looking for simplification (and effiency) perhaps the best<br=
>
thing to do is to do that search when doing the invisible property<br>
search in `eglot--format-markup`, then recording the result for later<br>
use.</blockquote><div><br></div><div>On second thought, I think you&#39;re =
right Spencer: your approach</div><div>is simpler.=C2=A0 Let&#39;s have sct=
urtle test it.</div><div><br></div><div>Jo=C3=A3o</div></div></div>

--000000000000d8cfe3064309349e--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79779; Package emacs. Full text available.

Message received at 79779 <at> debbugs.gnu.org:


Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 22:27:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 07 17:27:27 2025
Received: from localhost ([127.0.0.1]:48927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHUvX-0003ix-0z
	for submit <at> debbugs.gnu.org; Fri, 07 Nov 2025 17:27:27 -0500
Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:54296)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vHUvU-0003ir-Rq
 for 79779 <at> debbugs.gnu.org; Fri, 07 Nov 2025 17:27:25 -0500
Received: by mail-wr1-x42a.google.com with SMTP id
 ffacd0b85a97d-429bccca1e8so742862f8f.0
 for <79779 <at> debbugs.gnu.org>; Fri, 07 Nov 2025 14:27:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1762554439; x=1763159239; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=eaeUjs3zSePUDyG94iEh4eoPD9TqfHtxHc/z1CHQwlY=;
 b=SgxXZJaefnqCLa2Hpl+Th3DeRPc4SE36JKQ8NsXOpNicK7Wq9x4Yr8Rlw5CU5WjVvV
 3Oenv6g/VizWlzJDlqFFFejoatVXxyXVAxR0Yf4ttQTpA6DJJN2zyH5X7yQ5b1gjTNmb
 iwc1wtQUx9MU1Tr2WXrPpMneNLF4sbYlx5QXW/WtT40x4mC7VAD8qoIayM8cRnb3kK2v
 GlMkDCmVaiRoDIGlu4tvP1hZoePD53uFs0sEkDgjQ30wL45Cx0U+dHWQTAOhmfw8U9T0
 0sw8r1rseR0QNmmXABmE4wjCwxLQ7Ji0mWZaJ1OuZo7cBkGtP296g3T91EHxuLEuadnN
 tspA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762554439; x=1763159239;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=eaeUjs3zSePUDyG94iEh4eoPD9TqfHtxHc/z1CHQwlY=;
 b=TgW9u0jtkJzhzZfJn5Vo6ictG8iYCdj71NVkKjJ61fPhTmEnsk1FjT0VniTHYfb7wz
 ZmHbFAu/4QCDKD6pL9SXGKZ0DMbqIGLb+k0o5JWtjBH4gnhN1lCJC4AOjYTZ2j3DXwML
 O+gvtC7bKFhXxRjZSEx8goZweMIKZkw8aed8JP+nCAG9ZIPsdPx2ee6L3YYodwkYuDYZ
 lzJHT6fZEx/RGbsAvfx+qO0nb8GFJoALFyl0AWeoBe5EBiacyQgyi+gTkaYeFmT1TrL+
 XGZ1eVp7aznnTWFhyApvL9jXQkdX4Ll9VIMOF4dwTEzEh1k8vqfm7+w8JKgDwT4d9TuR
 pQcg==
X-Forwarded-Encrypted: i=1;
 AJvYcCWwl55tzh1kwHWVm0zFcIwhOP9wZbwWPLqjE8EbpbhakK+6tcO1Kn6awdoQFYqd3Pun0WqOFQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwVdgTYLZAX6S6klmYZPD8H/PC7z4CgyNkvuB2BAdt/G3G9x9VY
 cXlre2DVj3jfLkVQf6c9q828ZPU4g7JpE8yRNYBYO1FAHqhudf/v5fLi
X-Gm-Gg: ASbGncuMYlt2i0cS/iuNsA7J9zi/HcoTI4Ifj1fzKdKv7Xdz9w1vmBneBSOTE9ToIOV
 cdLdu3ZQMIgw3zwIj81wxMd7JJNwElDeWEBr2BYD3+K5K7/ermea8Elfvio13FonpAddQXVBu9F
 Dy2O1NdbPCxzhjl5RQSOwGFJbnjUOjF448cAR3awsy0rRpt7T6tVsPz2S9XhI/jalPKLcnkcHhb
 i7eAAZyFSvXEtmAGz4ovvAInck5WTZJoUZ7lQTgcGnVrBwqqNgezWXUC1MYZA7FH5PhKr425fUv
 z7NrnqAW8WzeLXnV+/v47S83+le2gqszRzW3bSvcYq/WXaCKFNAQgzG0MWkseV/DZrczB3wQ/GC
 Gd37vFQgBBAvLuV8WFpHYYBCOHFs3426sZAxjVhMESNqet+ZWNjNYdjFYW1ILhZ1R1nj9bv0+f/
 2G71KH0KfGqs2JMyWgT87XKaPOkxdo
X-Google-Smtp-Source: AGHT+IGK/7gDbQAW4NN9GeWSbfH5I1qoINnGy8zXpWbawTG4Y0RyDxqyQdNhLLvoWn+hj/wg2rJWIg==
X-Received: by 2002:a5d:5f83:0:b0:427:690:1d84 with SMTP id
 ffacd0b85a97d-42b2dc85632mr335945f8f.32.1762554438527; 
 Fri, 07 Nov 2025 14:27:18 -0800 (PST)
Received: from krug (87-196-72-166.net.novis.pt. [87.196.72.166])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-42b2e9644fbsm209159f8f.25.2025.11.07.14.27.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 07 Nov 2025 14:27:18 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
Subject: Re: bug#79779: 31.0.50; Making invisible markup invisible changes
 behavour of hover
In-Reply-To: <ier346p4hfd.fsf@HIDDEN>
References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
 <86pl9u9r84.fsf@HIDDEN> <ierwm416e1w.fsf@HIDDEN>
 <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
 <ier346p4hfd.fsf@HIDDEN>
Date: Fri, 07 Nov 2025 22:28:47 +0000
Message-ID: <87a50x8okg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Spencer Baugh writes: > João Távora writes: > >> Something
    like this should be the fix but >> text-property-search-forward or something
    like that is >> what should be used. > > It would be next-property-change
    since te [...] 
 
 Content analysis details:   (3.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (joaotavora[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:42a listed in]
                             [list.dnswl.org]
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [87.196.72.166 listed in zen.spamhaus.org]
X-Debbugs-Envelope-To: 79779
Cc: Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org,
 scturtle <hi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 2.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Spencer Baugh writes: > João Távora writes: > >> Something
    like this should be the fix but >> text-property-search-forward or something
    like that is >> what should be used. > > It would be next-property-change
    since te [...] 
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [87.196.72.166 listed in zen.spamhaus.org]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:42a listed in]
                             [list.dnswl.org]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (joaotavora[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

Spencer Baugh <sbaugh@HIDDEN> writes:

> Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:
>
>> Something like this should be the fix but
>> text-property-search-forward or something like that is=20
>> what should be used.=20=20
>
> It would be next-property-change since text-property-search-forward
> doesn't work on strings.  But either way I think that would be more
> complicated code than searching for the first visible newline by
> searching for newlines until you find a visible one.

If you're looking for simplification (and effiency) perhaps the best
thing to do is to do that search when doing the invisible property
search in `eglot--format-markup`, then recording the result for later
use.

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79779; Package emacs. Full text available.

Message received at 79779 <at> debbugs.gnu.org:


Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 22:16:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 07 17:16:46 2025
Received: from localhost ([127.0.0.1]:48873 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHUlC-0003Op-6R
	for submit <at> debbugs.gnu.org; Fri, 07 Nov 2025 17:16:46 -0500
Received: from mxout5.mail.janestreet.com ([64.215.233.18]:43873)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <sbaugh@HIDDEN>)
 id 1vHUlA-0003Od-8R
 for 79779 <at> debbugs.gnu.org; Fri, 07 Nov 2025 17:16:44 -0500
From: Spencer Baugh <sbaugh@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#79779: 31.0.50; Making invisible markup invisible changes
 behavour of hover
In-Reply-To: <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
 (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Fri, 7 Nov 2025
 22:10:03 +0000")
References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
 <86pl9u9r84.fsf@HIDDEN> <ierwm416e1w.fsf@HIDDEN>
 <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
Date: Fri, 07 Nov 2025 17:16:38 -0500
Message-ID: <ier346p4hfd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
 s=waixah; t=1762553798;
 bh=EmJA8ng6tMJoaTQUPLBuKUvVx6G8fXmA8k4myMXGgiU=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=NGGSUbexS537Ru9TkKrAs1BbVo0oivxv/XIBmVVtXGvHpI6jh089P845wwD1Cufk3
 dG8ewUA/7hejnLGlZcrFV/TRWFviFSQQYaQq/1scfdwKU6ZmWIsS1A/UtD7EbKOvBX
 6HhuvzRGUCCZy+vqllNvrYHIlk0X4V4EPCms+FNiooY7oRTug+2IWz6LAkhHPtAMxa
 UyHtAomKasHLhEB+fLgHyCJuFVblLZ8OvDLQLwG7JWhSUPKi2FZ4Nv23yKyll03d8N
 mv+eP+tFnX2DtqcRlL+6JhMYOUWvexyRx5lABeNsAF3qT7p1hXScAGWxssyNAyH2nk
 PZpFWJZmnm3cQ==
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79779
Cc: Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org,
 scturtle <hi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> Something like this should be the fix but
> text-property-search-forward or something like that is=20
> what should be used.=20=20

It would be next-property-change since text-property-search-forward
doesn't work on strings.  But either way I think that would be more
complicated code than searching for the first visible newline by
searching for newlines until you find a visible one.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79779; Package emacs. Full text available.

Message received at 79779 <at> debbugs.gnu.org:


Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 22:08:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 07 17:08:57 2025
Received: from localhost ([127.0.0.1]:48832 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHUdc-00037b-Cf
	for submit <at> debbugs.gnu.org; Fri, 07 Nov 2025 17:08:56 -0500
Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]:51297)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vHUdX-00037T-FL
 for 79779 <at> debbugs.gnu.org; Fri, 07 Nov 2025 17:08:54 -0500
Received: by mail-oo1-xc2d.google.com with SMTP id
 006d021491bc7-6567607bd65so228725eaf.2
 for <79779 <at> debbugs.gnu.org>; Fri, 07 Nov 2025 14:08:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1762553325; x=1763158125; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=HrHZWyleQE24jFEG7uLzd4uhMijeumOD625hCluYWGs=;
 b=BuXwttUcdniS5E+4kMhYVGOMx7X7NYRa8p7kecyqMpTctGrbNSlyQ3bxvE339uM9SR
 x6ezSSCHAj0GT9rO7YrnW6F2OpcrTt21+Ew1yb97huXJMGcnNbJQU22423cJ163QKNZU
 dUl65xim+8b9edvAJtLRYsyX6xFf/CQdL9pP9pJKum+y0iKnbgP8Zq6XEZsys0DmaLXE
 bg+zBgVqOz1bzjRQsXwdEUC1PYkZxTfHpKI86L4Xl4xQ6wkn0+A1A74b5JpxZXREf5yu
 ZoeQ0rRabXNyg7LbYqDRqGL+7l8xhvqDiaBFOajAPnAtIpDak3g0cBfLA5b60r7yxjXW
 wwJw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762553325; x=1763158125;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=HrHZWyleQE24jFEG7uLzd4uhMijeumOD625hCluYWGs=;
 b=VIPvWvEEiPUxx9OE8Dsnb9kM6Jn391LiOdh42qsaZWkd6NR6R7coDvxpE8Q8fXd9YH
 Yn2etooigE5Ms6NJQO5IgiYuV13a9BTJEaNG7ZV7qkGiQqSEgLDisNs/gN9Kl1hMeMsJ
 nWd0XyPYC4TJB+ds0CiR2zphrU0WSTUWsLNJPyrtfdiJxeC0ApOYR2+DkQf3L17T+Q1C
 IzRygcQSPMvIc88mu1M3ZmvJN+9622LCzM7a9EUoVT/7l4po3IkpwnY8X59dkeBcwKaw
 iHPmYCj9LK6LZdhId0P9J9SgNAIaeL0SWdH6oATl2fFHoj4UCAPmjYFim7XeDYy9H7zC
 pmtQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCVojEnH+SEO5G5G0haB7YI2SP/RRR4fIt6ojZFuSWOGNlNyBG9BeHkev+7gCEMv1zVmVfyAVw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxMI5rTyOUA1rFkofizUsw2iTP5nacpDHhu2STwPakrZsOI2tp+
 e8QMo2/p5GX5UUEdKGP79FNJeH/9nnabbfJGz5Lb24jK5fL0k87rs5WOFto7uNkBxQIpydT9yCg
 oeRGrTKdGhLq3pWyJnS9+dBdM5CT+raZk/w==
X-Gm-Gg: ASbGncuNoPDl2zyUf0VLytW7xTt7FCUFAhklMDJyWBfJnoMB6na0NuJivBykTY0lEtG
 Mr/0ZhFr7edL9b1Ilfx4geSGSQxXbt2BYewdoYKrfukhFbAqAzWrmXR80YQFgxws7GNneJb5m9p
 oA//OEghzhS4myZeofO0b6OYrQViC9AqFa89s9QibjWY0sgTnQquSV9jjTSu1Uhx4coUuWAmY5S
 yVeygeod2Fxbb6yhhegu85rL4m4ScnRY/Ig1+vccf5OvXu6AJ/zlFnwqijA
X-Google-Smtp-Source: AGHT+IF1WAKQyoTlaJ5FshZBUUCWDVUG9xR4nt+mdM9tdK1odmD0jx292pTxLdSp7050JtFPI9qKAHdOYYGhpGgi2Fo=
X-Received: by 2002:a05:6820:2188:b0:654:f20e:2d0c with SMTP id
 006d021491bc7-656d877e349mr579177eaf.1.1762553325106; Fri, 07 Nov 2025
 14:08:45 -0800 (PST)
MIME-Version: 1.0
References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
 <86pl9u9r84.fsf@HIDDEN> <ierwm416e1w.fsf@HIDDEN>
In-Reply-To: <ierwm416e1w.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Fri, 7 Nov 2025 22:10:03 +0000
X-Gm-Features: AWmQ_bnVMre-nQPh7aqSB8Peh5VyBXSoLCttK3pn7NzjCmWpDdc7R72WzrsQnk0
Message-ID: <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
Subject: Re: bug#79779: 31.0.50; Making invisible markup invisible changes
 behavour of hover
To: Spencer Baugh <sbaugh@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000d738370643086cbc"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79779
Cc: Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org,
 scturtle <hi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000d738370643086cbc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Something like this should be the fix but
text-property-search-forward or something like that is
what should be used.

Jo=C3=A3o

On Fri, Nov 7, 2025 at 3:46=E2=80=AFPM Spencer Baugh <sbaugh@HIDDEN=
> wrote:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
> >> From: scturtle <hi@HIDDEN>
> >> Date: Fri, 7 Nov 2025 11:23:18 +0800
> >>
> >> Related to bug #79552:
> >> https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-10/msg00036.html
> >>
> >> And commit:
> >>
> https://github.com/emacs-mirror/emacs/commit/3ec87212a4227e08ffa46ccbf2f0=
eb198f99c1aa
> >>
> >> In this commit, the invisible portions of markup are no longer removed=
.
> >> For example, for markup returned by ccls like:
> >>
> >> ```cpp
> >> struct ccls::(anon ns)::File {}
> >> ```
> >>
> >> Previously, the first and third lines were marked as invisible and
> >> deleted by eglot--format-markup. Now, these lines are no longer delete=
d.
> >>
> >> As a result, in eglot-hover-eldoc-function, the expression :echo
> >> (string-match "\n" info) returns :echo 6, causing only the first six
> >> (invisible) characters to be displayed.
> >
> > Thanks.  Spencer and Jo=C3=A3o, any comments or suggestions?
>
> Thanks for the report.
>
> scturtle, can you test with this patch?
>
> diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
> index 27e79b2f816..fd3a79253ad 100644
> --- a/lisp/progmodes/eglot.el
> +++ b/lisp/progmodes/eglot.el
> @@ -3766,6 +3766,12 @@ eglot-signature-eldoc-function
>         :hint :textDocument/signatureHelp))
>      t))
>
> +(defun eglot-hover--find-visible-newline (info)
> +  (let ((pos (string-match "\n" info)))
> +    (while (and pos (get-text-property pos 'invisible info))
> +      (setq pos (string-match "\n" info (1+ pos))))
> +    pos))
> +
>  (defun eglot-hover-eldoc-function (cb &rest _ignored)
>    "A member of `eldoc-documentation-functions', for hover."
>    (when (eglot-server-capable :hoverProvider)
> @@ -3778,7 +3784,7 @@ eglot-hover-eldoc-function
>                         (let ((info (unless (seq-empty-p contents)
>                                       (eglot--hover-info contents range))=
))
>                           (funcall cb info
> -                                  :echo (and info (string-match "\n"
> info))))))
> +                                  :echo (and info
> (eglot-hover--find-visible-newline info))))))
>         :hint :textDocument/hover))
>      t))
>
>

--=20
Jo=C3=A3o T=C3=A1vora

--000000000000d738370643086cbc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Something like this should be the fix but</div><div>t=
ext-property-search-forward or something like that is=C2=A0</div><div>what =
should be used.=C2=A0=C2=A0</div><div><br></div><div>Jo=C3=A3o</div></div><=
br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=
=3D"gmail_attr">On Fri, Nov 7, 2025 at 3:46=E2=80=AFPM Spencer Baugh &lt;<a=
 href=3D"mailto:sbaugh@HIDDEN">sbaugh@HIDDEN</a>&gt; wrote:=
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Eli Zaretskii &=
lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank">eliz@HIDDEN</a>&gt; w=
rites:<br>
<br>
&gt;&gt; From: scturtle &lt;<a href=3D"mailto:hi@HIDDEN" target=3D"_bl=
ank">hi@HIDDEN</a>&gt;<br>
&gt;&gt; Date: Fri, 7 Nov 2025 11:23:18 +0800<br>
&gt;&gt; <br>
&gt;&gt; Related to bug #79552:<br>
&gt;&gt; <a href=3D"https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-1=
0/msg00036.html" rel=3D"noreferrer" target=3D"_blank">https://lists.gnu.org=
/archive/html/bug-gnu-emacs/2025-10/msg00036.html</a><br>
&gt;&gt; <br>
&gt;&gt; And commit:<br>
&gt;&gt; <a href=3D"https://github.com/emacs-mirror/emacs/commit/3ec87212a4=
227e08ffa46ccbf2f0eb198f99c1aa" rel=3D"noreferrer" target=3D"_blank">https:=
//github.com/emacs-mirror/emacs/commit/3ec87212a4227e08ffa46ccbf2f0eb198f99=
c1aa</a><br>
&gt;&gt; <br>
&gt;&gt; In this commit, the invisible portions of markup are no longer rem=
oved.<br>
&gt;&gt; For example, for markup returned by ccls like:<br>
&gt;&gt; <br>
&gt;&gt; ```cpp<br>
&gt;&gt; struct ccls::(anon ns)::File {}<br>
&gt;&gt; ```<br>
&gt;&gt; <br>
&gt;&gt; Previously, the first and third lines were marked as invisible and=
<br>
&gt;&gt; deleted by eglot--format-markup. Now, these lines are no longer de=
leted.<br>
&gt;&gt; <br>
&gt;&gt; As a result, in eglot-hover-eldoc-function, the expression :echo<b=
r>
&gt;&gt; (string-match &quot;\n&quot; info) returns :echo 6, causing only t=
he first six<br>
&gt;&gt; (invisible) characters to be displayed.<br>
&gt;<br>
&gt; Thanks.=C2=A0 Spencer and Jo=C3=A3o, any comments or suggestions?<br>
<br>
Thanks for the report.<br>
<br>
scturtle, can you test with this patch?<br>
<br>
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el<br>
index 27e79b2f816..fd3a79253ad 100644<br>
--- a/lisp/progmodes/eglot.el<br>
+++ b/lisp/progmodes/eglot.el<br>
@@ -3766,6 +3766,12 @@ eglot-signature-eldoc-function<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :hint :textDocument/signatureHelp))<br>
=C2=A0 =C2=A0 =C2=A0t))<br>
<br>
+(defun eglot-hover--find-visible-newline (info)<br>
+=C2=A0 (let ((pos (string-match &quot;\n&quot; info)))<br>
+=C2=A0 =C2=A0 (while (and pos (get-text-property pos &#39;invisible info))=
<br>
+=C2=A0 =C2=A0 =C2=A0 (setq pos (string-match &quot;\n&quot; info (1+ pos))=
))<br>
+=C2=A0 =C2=A0 pos))<br>
+<br>
=C2=A0(defun eglot-hover-eldoc-function (cb &amp;rest _ignored)<br>
=C2=A0 =C2=A0&quot;A member of `eldoc-documentation-functions&#39;, for hov=
er.&quot;<br>
=C2=A0 =C2=A0(when (eglot-server-capable :hoverProvider)<br>
@@ -3778,7 +3784,7 @@ eglot-hover-eldoc-function<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 (let ((info (unless (seq-empty-p contents)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (eglot--hover-i=
nfo contents range))))<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 (funcall cb info<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :echo (and info (string-match=
 &quot;\n&quot; info))))))<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :echo (and info (eglot-hover-=
-find-visible-newline info))))))<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 :hint :textDocument/hover))<br>
=C2=A0 =C2=A0 =C2=A0t))<br>
<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Jo=
=C3=A3o T=C3=A1vora</div>

--000000000000d738370643086cbc--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79779; Package emacs. Full text available.

Message received at 79779 <at> debbugs.gnu.org:


Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 15:46:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 07 10:46:45 2025
Received: from localhost ([127.0.0.1]:46460 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHOfl-000563-0z
	for submit <at> debbugs.gnu.org; Fri, 07 Nov 2025 10:46:45 -0500
Received: from mxout5.mail.janestreet.com ([64.215.233.18]:57131)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <sbaugh@HIDDEN>)
 id 1vHOfh-00055e-6P
 for 79779 <at> debbugs.gnu.org; Fri, 07 Nov 2025 10:46:41 -0500
From: Spencer Baugh <sbaugh@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79779: 31.0.50; Making invisible markup invisible changes
 behavour of hover
In-Reply-To: <86pl9u9r84.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 07 Nov
 2025 10:33:47 +0200")
References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
 <86pl9u9r84.fsf@HIDDEN>
Date: Fri, 07 Nov 2025 10:46:35 -0500
Message-ID: <ierwm416e1w.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
 s=waixah; t=1762530395;
 bh=P2S4ynS65obglNr1Rx0EYmM+h0QF7Z+N5coT0KagMf4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=JFrJkKop9bFzAgSDncZMd5dJhqRr2qimjavOewktipC/onVW+fnVmFshDw8xvFtMP
 ni0YCyv3cv9S4VI869+gx/ihJgYkBB9Qm7i4B3GSYQFlQ/q5TwzDCzyGAdWLG2U3Uo
 G1XbqWC94J1QBguEeIzMIYZrRQ1w1t0+WruWKCZCTF8QUKwSS7pOYyp4A2mxwhj2+S
 hh/h6ibQbebvK9jyyCV+v4d5/0yIwHAz9nuvN8uwWE2BOO5N7b3TY+Es/1BDdzBgAt
 HpXGB2PwOURVIpRByyJfrmuapa9SpJ0POHF0mMY0M+DSewHnKZl7N0Z4ML3tmpUErz
 LOgENMb2fzikA==
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79779
Cc: 79779 <at> debbugs.gnu.org,
 =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>,
 scturtle <hi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: scturtle <hi@HIDDEN>
>> Date: Fri, 7 Nov 2025 11:23:18 +0800
>>=20
>> Related to bug #79552:
>> https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-10/msg00036.html
>>=20
>> And commit:
>> https://github.com/emacs-mirror/emacs/commit/3ec87212a4227e08ffa46ccbf2f=
0eb198f99c1aa
>>=20
>> In this commit, the invisible portions of markup are no longer removed.
>> For example, for markup returned by ccls like:
>>=20
>> ```cpp
>> struct ccls::(anon ns)::File {}
>> ```
>>=20
>> Previously, the first and third lines were marked as invisible and
>> deleted by eglot--format-markup. Now, these lines are no longer deleted.
>>=20
>> As a result, in eglot-hover-eldoc-function, the expression :echo
>> (string-match "\n" info) returns :echo 6, causing only the first six
>> (invisible) characters to be displayed.
>
> Thanks.  Spencer and Jo=C3=A3o, any comments or suggestions?

Thanks for the report.

scturtle, can you test with this patch?

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 27e79b2f816..fd3a79253ad 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -3766,6 +3766,12 @@ eglot-signature-eldoc-function
        :hint :textDocument/signatureHelp))
     t))
=20
+(defun eglot-hover--find-visible-newline (info)
+  (let ((pos (string-match "\n" info)))
+    (while (and pos (get-text-property pos 'invisible info))
+      (setq pos (string-match "\n" info (1+ pos))))
+    pos))
+
 (defun eglot-hover-eldoc-function (cb &rest _ignored)
   "A member of `eldoc-documentation-functions', for hover."
   (when (eglot-server-capable :hoverProvider)
@@ -3778,7 +3784,7 @@ eglot-hover-eldoc-function
                        (let ((info (unless (seq-empty-p contents)
                                      (eglot--hover-info contents range))))
                          (funcall cb info
-                                  :echo (and info (string-match "\n" info)=
)))))
+                                  :echo (and info (eglot-hover--find-visib=
le-newline info))))))
        :hint :textDocument/hover))
     t))
=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79779; Package emacs. Full text available.

Message received at 79779 <at> debbugs.gnu.org:


Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 08:33:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 07 03:33:58 2025
Received: from localhost ([127.0.0.1]:45051 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHHuw-0001UC-0A
	for submit <at> debbugs.gnu.org; Fri, 07 Nov 2025 03:33:58 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51574)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vHHut-0001Tv-TE
 for 79779 <at> debbugs.gnu.org; Fri, 07 Nov 2025 03:33:56 -0500
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 <eliz@HIDDEN>)
 id 1vHHun-0005iB-PA; Fri, 07 Nov 2025 03:33:49 -0500
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=os6sclwTC/QXtsH6s2k7a5gAuc6pmv1bT7vVjfVV4B8=; b=sIouNfXnBK78RUNl4GpV
 /V+F6kFoO7f3JPn6VmWVmY3jT6TQKCC9Scd3eEFAn2QWiCBG4e1zaYN/QLsi502+vfR4JvXkdgNTx
 nHOBqgRZ3WzFOMJVgxuRE4V28K0Gm3QUVmCQuSy7IRtmexgtGwMMqyXn/5zYKIU1jwR2OgNLWk2XE
 Cffl8LniiohZ53CprpaUaqK2GyoP2kp5Nm1LJHOdPDV0jhVRCUQUTVGqoooV/i+CUDbZM/jwAemfZ
 u9q8OnkbZuHWUTNAuTlLyr3sOZ5NZl5e8t4t9e0OlZmgLpuPde+LaN9+m8Zr2EIla7UtiPcJlmV87
 HzpDNTMzI48wMg==;
Date: Fri, 07 Nov 2025 10:33:47 +0200
Message-Id: <86pl9u9r84.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: scturtle <hi@HIDDEN>, =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=
 <joaotavora@HIDDEN>, Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
 (message from scturtle on Fri, 7 Nov 2025 11:23:18 +0800)
Subject: Re: bug#79779: 31.0.50;
 Making invisible markup invisible changes behavour of hover
References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79779
Cc: 79779 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: scturtle <hi@HIDDEN>
> Date: Fri, 7 Nov 2025 11:23:18 +0800
> 
> Related to bug #79552:
> https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-10/msg00036.html
> 
> And commit:
> https://github.com/emacs-mirror/emacs/commit/3ec87212a4227e08ffa46ccbf2f0eb198f99c1aa
> 
> In this commit, the invisible portions of markup are no longer removed.
> For example, for markup returned by ccls like:
> 
> ```cpp
> struct ccls::(anon ns)::File {}
> ```
> 
> Previously, the first and third lines were marked as invisible and
> deleted by eglot--format-markup. Now, these lines are no longer deleted.
> 
> As a result, in eglot-hover-eldoc-function, the expression :echo
> (string-match "\n" info) returns :echo 6, causing only the first six
> (invisible) characters to be displayed.

Thanks.  Spencer and João, any comments or suggestions?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79779; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Nov 2025 04:37:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 06 23:37:23 2025
Received: from localhost ([127.0.0.1]:44159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHEDy-0008So-OV
	for submit <at> debbugs.gnu.org; Thu, 06 Nov 2025 23:37:23 -0500
Received: from lists.gnu.org ([2001:470:142::17]:34152)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <scturtle@HIDDEN>)
 id 1vHD4w-0005FX-MY
 for submit <at> debbugs.gnu.org; Thu, 06 Nov 2025 22:24:00 -0500
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 <scturtle@HIDDEN>)
 id 1vHD4o-0007XC-1h
 for bug-gnu-emacs@HIDDEN; Thu, 06 Nov 2025 22:23:51 -0500
Received: from mail-ed1-f43.google.com ([209.85.208.43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <scturtle@HIDDEN>)
 id 1vHD4m-00053c-3z
 for bug-gnu-emacs@HIDDEN; Thu, 06 Nov 2025 22:23:49 -0500
Received: by mail-ed1-f43.google.com with SMTP id
 4fb4d7f45d1cf-640e9f5951aso462395a12.1
 for <bug-gnu-emacs@HIDDEN>; Thu, 06 Nov 2025 19:23:46 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1762485825; x=1763090625;
 h=to:subject:message-id:date:from:mime-version:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=SCi4b476hHiPAVoB2MFLuy0UmgJBik21DANgWWxnqBQ=;
 b=DO7z0x6mV/btvrSzkBbxudG3DQgwH7PiRMV/2J6Maaf+Vu/rPnpbCVD+yNIR1vtiAD
 IFKbk7LzQcLFbxG+7nYSMDAEAu85tswBWcegpEFHzHGpnQxIptNCA9oNwIZsSTP938z1
 TD7jz5zgvcNeBiPivSrGb4rglThW58MKXTo4rryIgLA2g9oaJOrRbtfTCL8BtJbmlpdw
 +3YN99SN49uYxO6f5Ut0SSgMlJEV8QrXxT/SvaWS7V/A8GbDR/JAi21iz72+HnUHy5Z1
 6Zk5q2SoUvfsgvGXhj4K9qM2yaNgfYITPkOGwtZ78c7mWoMVlqxMeXtkaNe//ZgnICNz
 8otg==
X-Gm-Message-State: AOJu0YwXfVc4bspq2zSSK9PepJmZ1EQNTwATF8HswUhvRVa0Al2pEecx
 WEAiyObw09VP/IpXfaelN6bg6A7U9wGeb8QFWh6zb5fIbfc3s4faJFZ63VL0fjsjvRBSBQ==
X-Gm-Gg: ASbGncvTUGp72ZHwP8qNsBxMf+DDxUY4JmfUVKo/ckGw99mGph/uRSbrtz2EmPjadUy
 JoM4630sWnmMOZqQfyED+Sk9BpHTMVFlT7TyF1Nh2HG9svBUpe1j234W21Dfcbn9B4Qgrha4TnB
 kwoBvnA1rIYEZrXbX7lYluzwQnG5oT1XGmqCSKlXUV0YaC9KMEQDy//ObfQLlKaBlf5CvXM64M+
 jL/Nlp3KZrKTy4+gzpPCtMTLxD5zQ7Tb9MtY+MAsp5uuDrrpG7I+bjpVg0Q/jkl2bFSXaGMOxmn
 2jUCxJwGfINfSW1jk4NyF2osD8QRoBbJZDX81DxzemPfjQlJBJabygIjXwz+WeVFkncaVaiVE2w
 cRZkKOy+fDY9Tuzc/2RwZAFAaf2dnDVtY1ipIoRlrQ5ETOLOYXwtUEc8rsWfVm1wEqLDwMlh68J
 GSKXmKr+WI+W4Bx9af0O1uwdhTo9oWCw==
X-Google-Smtp-Source: AGHT+IGPENgYXKN7Re4+izvkgjZryQaU2F40zjoFKZIGpwoov5j7HihH1nk6oe1L5L1uZnoetk6ovA==
X-Received: by 2002:a17:907:3daa:b0:b72:7f25:b9cd with SMTP id
 a640c23a62f3a-b72d08e5174mr22248066b.2.1762485825066; 
 Thu, 06 Nov 2025 19:23:45 -0800 (PST)
Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com.
 [209.85.208.50]) by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-b72bf60ef8asm116808766b.30.2025.11.06.19.23.44
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 06 Nov 2025 19:23:44 -0800 (PST)
Received: by mail-ed1-f50.google.com with SMTP id
 4fb4d7f45d1cf-63c489f1e6cso504502a12.1
 for <bug-gnu-emacs@HIDDEN>; Thu, 06 Nov 2025 19:23:44 -0800 (PST)
X-Received: by 2002:a05:6402:2111:b0:641:270:2c8a with SMTP id
 4fb4d7f45d1cf-6414707df75mr181571a12.14.1762485824632; Thu, 06 Nov 2025
 19:23:44 -0800 (PST)
MIME-Version: 1.0
From: scturtle <hi@HIDDEN>
Date: Fri, 7 Nov 2025 11:23:18 +0800
X-Gmail-Original-Message-ID: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
X-Gm-Features: AWmQ_bksb9EAIWWjSBcQ-EW5aFVDyzRvhPC7z7JtrL3WRVWn-Hn8Fuc57bBntKM
Message-ID: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
Subject: 31.0.50; Making invisible markup invisible changes behavour of hover
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.208.43; envelope-from=scturtle@HIDDEN;
 helo=mail-ed1-f43.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9,
 FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 06 Nov 2025 23:37:19 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Related to bug #79552:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-10/msg00036.html

And commit:
https://github.com/emacs-mirror/emacs/commit/3ec87212a4227e08ffa46ccbf2f0eb198f99c1aa

In this commit, the invisible portions of markup are no longer removed.
For example, for markup returned by ccls like:

```cpp
struct ccls::(anon ns)::File {}
```

Previously, the first and third lines were marked as invisible and
deleted by eglot--format-markup. Now, these lines are no longer deleted.

As a result, in eglot-hover-eldoc-function, the expression :echo
(string-match "\n" info) returns :echo 6, causing only the first six
(invisible) characters to be displayed.




Acknowledgement sent to scturtle <hi@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79779; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 8 Nov 2025 12:30:02 UTC

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