X-Loop: help-debbugs@HIDDEN
Subject: bug#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
Resent-From: scturtle <hi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 07 Nov 2025 04:38:03 +0000
Resent-Message-ID: <handler.79779.B.176249024332544 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 79779
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: 79779 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.176249024332544
(code B ref -1); Fri, 07 Nov 2025 04:38:03 +0000
Received: (at submit) by debbugs.gnu.org; 7 Nov 2025 04:37:23 +0000
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>
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-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.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: scturtle <hi@HIDDEN> Subject: bug#79779: Acknowledgement (31.0.50; Making invisible markup invisible changes behavour of hover) Message-ID: <handler.79779.B.176249024332544.ack <at> debbugs.gnu.org> References: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN> X-Gnu-PR-Message: ack 79779 X-Gnu-PR-Package: emacs Reply-To: 79779 <at> debbugs.gnu.org Date: Fri, 07 Nov 2025 04:38:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 79779 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 79779: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79779 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 07 Nov 2025 08:34:02 +0000
Resent-Message-ID: <handler.79779.B79779.17625044385721 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79779
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: scturtle <hi@HIDDEN>, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>, Spencer Baugh <sbaugh@HIDDEN>
Cc: 79779 <at> debbugs.gnu.org
Received: via spool by 79779-submit <at> debbugs.gnu.org id=B79779.17625044385721
(code B ref 79779); Fri, 07 Nov 2025 08:34:02 +0000
Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 08:33:58 +0000
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>
In-Reply-To: <CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
(message from scturtle on Fri, 7 Nov 2025 11:23:18 +0800)
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-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?
X-Loop: help-debbugs@HIDDEN
Subject: bug#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
Resent-From: Spencer Baugh <sbaugh@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 07 Nov 2025 15:47:02 +0000
Resent-Message-ID: <handler.79779.B79779.176253040519604 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79779
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 79779 <at> debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>, scturtle <hi@HIDDEN>
Received: via spool by 79779-submit <at> debbugs.gnu.org id=B79779.176253040519604
(code B ref 79779); Fri, 07 Nov 2025 15:47:02 +0000
Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 15:46:45 +0000
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>
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-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
X-Loop: help-debbugs@HIDDEN
Subject: bug#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 07 Nov 2025 22:09:02 +0000
Resent-Message-ID: <handler.79779.B79779.176255333712007 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79779
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Spencer Baugh <sbaugh@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org, scturtle <hi@HIDDEN>
Received: via spool by 79779-submit <at> debbugs.gnu.org id=B79779.176255333712007
(code B ref 79779); Fri, 07 Nov 2025 22:09:02 +0000
Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 22:08:57 +0000
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?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Date: Fri, 7 Nov 2025 22:10:03 +0000
X-Gm-Features: AWmQ_bnVMre-nQPh7aqSB8Peh5VyBXSoLCttK3pn7NzjCmWpDdc7R72WzrsQnk0
Message-ID: <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000d738370643086cbc"
X-Spam-Score: 0.0 (/)
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 <<a=
href=3D"mailto:sbaugh@HIDDEN">sbaugh@HIDDEN</a>> 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>> w=
rites:<br>
<br>
>> From: scturtle <<a href=3D"mailto:hi@HIDDEN" target=3D"_bl=
ank">hi@HIDDEN</a>><br>
>> Date: Fri, 7 Nov 2025 11:23:18 +0800<br>
>> <br>
>> Related to bug #79552:<br>
>> <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>
>> <br>
>> And commit:<br>
>> <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>
>> <br>
>> In this commit, the invisible portions of markup are no longer rem=
oved.<br>
>> For example, for markup returned by ccls like:<br>
>> <br>
>> ```cpp<br>
>> struct ccls::(anon ns)::File {}<br>
>> ```<br>
>> <br>
>> Previously, the first and third lines were marked as invisible and=
<br>
>> deleted by eglot--format-markup. Now, these lines are no longer de=
leted.<br>
>> <br>
>> As a result, in eglot-hover-eldoc-function, the expression :echo<b=
r>
>> (string-match "\n" info) returns :echo 6, causing only t=
he first six<br>
>> (invisible) characters to be displayed.<br>
><br>
> 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 "\n" info)))<br>
+=C2=A0 =C2=A0 (while (and pos (get-text-property pos 'invisible info))=
<br>
+=C2=A0 =C2=A0 =C2=A0 (setq pos (string-match "\n" info (1+ pos))=
))<br>
+=C2=A0 =C2=A0 pos))<br>
+<br>
=C2=A0(defun eglot-hover-eldoc-function (cb &rest _ignored)<br>
=C2=A0 =C2=A0"A member of `eldoc-documentation-functions', for hov=
er."<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=
"\n" 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--
X-Loop: help-debbugs@HIDDEN
Subject: bug#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
Resent-From: Spencer Baugh <sbaugh@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 07 Nov 2025 22:17:01 +0000
Resent-Message-ID: <handler.79779.B79779.176255380613075 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79779
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org, scturtle <hi@HIDDEN>
Received: via spool by 79779-submit <at> debbugs.gnu.org id=B79779.176255380613075
(code B ref 79779); Fri, 07 Nov 2025 22:17:01 +0000
Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 22:16:46 +0000
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>
In-Reply-To: <CALDnm53zB9xHK4+SX+30xBe1PFvctsLM5qtDuUSfyuwQV3bduA@HIDDEN>
("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'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-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.
X-Loop: help-debbugs@HIDDEN
Subject: bug#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 07 Nov 2025 22:28:02 +0000
Resent-Message-ID: <handler.79779.B79779.176255444714323 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79779
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Spencer Baugh <sbaugh@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org, scturtle <hi@HIDDEN>
Received: via spool by 79779-submit <at> debbugs.gnu.org id=B79779.176255444714323
(code B ref 79779); Fri, 07 Nov 2025 22:28:02 +0000
Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 22:27:27 +0000
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?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
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: > =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= 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-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: > =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= 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
X-Loop: help-debbugs@HIDDEN
Subject: bug#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 07 Nov 2025 23:05:02 +0000
Resent-Message-ID: <handler.79779.B79779.176255669020277 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79779
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Spencer Baugh <sbaugh@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org, scturtle <hi@HIDDEN>
Received: via spool by 79779-submit <at> debbugs.gnu.org id=B79779.176255669020277
(code B ref 79779); Fri, 07 Nov 2025 23:05:02 +0000
Received: (at 79779) by debbugs.gnu.org; 7 Nov 2025 23:04:50 +0000
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?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Date: Fri, 7 Nov 2025 23:06:01 +0000
X-Gm-Features: AWmQ_blTv1zVUw52onoYLVaOzsbcifD0Do4X1EoSg3QfUoZqsjsVT9u5e5sTEvY
Message-ID: <CALDnm51CxiDqB=0kEnPT8guk6SeqF0cK97efuD59R=17ZhP-YQ@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000d8cfe3064309349e"
X-Spam-Score: 0.0 (/)
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 <<a href=3D"mailto:joaotavora@HIDDEN">joaotavora=
@gmail.com</a>> 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 <<a=
href=3D"mailto:sbaugh@HIDDEN" target=3D"_blank">sbaugh@janestreet.=
com</a>> writes:<br>
<br>
> Jo=C3=A3o T=C3=A1vora <<a href=3D"mailto:joaotavora@HIDDEN" targ=
et=3D"_blank">joaotavora@HIDDEN</a>> writes:<br>
><br>
>> Something like this should be the fix but<br>
>> text-property-search-forward or something like that is <br>
>> what should be used.=C2=A0 <br>
><br>
> It would be next-property-change since text-property-search-forward<br=
>
> doesn't work on strings.=C2=A0 But either way I think that would b=
e more<br>
> complicated code than searching for the first visible newline by<br>
> searching for newlines until you find a visible one.<br>
<br>
If you'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're =
right Spencer: your approach</div><div>is simpler.=C2=A0 Let's have sct=
urtle test it.</div><div><br></div><div>Jo=C3=A3o</div></div></div>
--000000000000d8cfe3064309349e--
X-Loop: help-debbugs@HIDDEN
Subject: bug#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
Resent-From: scturtle <hi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 08 Nov 2025 00:24:01 +0000
Resent-Message-ID: <handler.79779.B79779.176256138831489 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79779
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Cc: Spencer Baugh <sbaugh@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 79779 <at> debbugs.gnu.org
Received: via spool by 79779-submit <at> debbugs.gnu.org id=B79779.176256138831489
(code B ref 79779); Sat, 08 Nov 2025 00:24:01 +0000
Received: (at 79779) by debbugs.gnu.org; 8 Nov 2025 00:23:08 +0000
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>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Subject: bug#79779: closed (31.0.50; Making invisible markup invisible
changes behavour of hover)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.79779.D79779.176260406021396.ackdone <at> debbugs.gnu.org>
References: <CALDnm52_SexbKKruecsjGxcizRT8ZUrEzc1HBY1=n9+0CT+8RA@HIDDEN>
<CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
X-Gnu-PR-Message: closed 79779
X-Gnu-PR-Package: emacs
Date: Sat, 08 Nov 2025 12:15:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1762604102-21420-0"
This is a multi-part message in MIME format...
------------=_1762604102-21420-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8
Your message dated Sat, 8 Nov 2025 12:15:30 +0000
with message-id <CALDnm52_SexbKKruecsjGxcizRT8ZUrEzc1HBY1=3Dn9+0CT+8RA@mail=
.gmail.com>
and subject line Re: bug#79779: 31.0.50; Making invisible markup invisible =
changes behavour of hover
has caused the debbugs.gnu.org bug report #79779,
regarding 31.0.50; Making invisible markup invisible changes behavour of ho=
ver
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)
--=20
79779: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79779
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems
------------=_1762604102-21420-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by debbugs.gnu.org; 7 Nov 2025 04:37:23 +0000
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.
------------=_1762604102-21420-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 79779-done) by debbugs.gnu.org; 8 Nov 2025 12:14:20 +0000
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've pushed a slightly modified version of Spence=
r's patch.</div><div><br></div><div>Closing.</div><div>Please test, and=
we'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 <<a href=3D"mailto:hi@scturt=
le.me">hi@HIDDEN</a>> 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's patch tested and working. Thanks!<br>
<br>
Jo=C3=A3o T=C3=A1vora <<a href=3D"mailto:joaotavora@HIDDEN" target=3D=
"_blank">joaotavora@HIDDEN</a>> =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>
><br>
> On Fri, Nov 7, 2025 at 10:27=E2=80=AFPM Jo=C3=A3o T=C3=A1vora <<a h=
ref=3D"mailto:joaotavora@HIDDEN" target=3D"_blank">joaotavora@HIDDEN<=
/a>> wrote:<br>
>><br>
>> Spencer Baugh <<a href=3D"mailto:sbaugh@HIDDEN" target=
=3D"_blank">sbaugh@HIDDEN</a>> writes:<br>
>><br>
>> > Jo=C3=A3o T=C3=A1vora <<a href=3D"mailto:joaotavora@gmail.=
com" target=3D"_blank">joaotavora@HIDDEN</a>> writes:<br>
>> ><br>
>> >> Something like this should be the fix but<br>
>> >> text-property-search-forward or something like that is<br=
>
>> >> what should be used.<br>
>> ><br>
>> > It would be next-property-change since text-property-search-f=
orward<br>
>> > doesn't work on strings.=C2=A0 But either way I think tha=
t would be more<br>
>> > complicated code than searching for the first visible newline=
by<br>
>> > searching for newlines until you find a visible one.<br>
>><br>
>> If you're looking for simplification (and effiency) perhaps th=
e 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 la=
ter<br>
>> use.<br>
><br>
><br>
> On second thought, I think you're right Spencer: your approach<br>
> is simpler.=C2=A0 Let's have scturtle test it.<br>
><br>
> 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--
------------=_1762604102-21420-0--
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: scturtle <hi@HIDDEN>
Subject: bug#79779: closed (Re: bug#79779: 31.0.50; Making invisible
markup invisible changes behavour of hover)
Message-ID: <handler.79779.D79779.176260406021396.notifdone <at> debbugs.gnu.org>
References: <CALDnm52_SexbKKruecsjGxcizRT8ZUrEzc1HBY1=n9+0CT+8RA@HIDDEN>
<CACQ1X_nC80esL1q8dzEeeZ7vA2+m19V+G1CQXDMf+e_9ctZWDw@HIDDEN>
X-Gnu-PR-Message: they-closed 79779
X-Gnu-PR-Package: emacs
Reply-To: 79779 <at> debbugs.gnu.org
Date: Sat, 08 Nov 2025 12:15:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1762604102-21420-1"
This is a multi-part message in MIME format...
------------=_1762604102-21420-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your bug report
#79779: 31.0.50; Making invisible markup invisible changes behavour of hover
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 79779 <at> debbugs.gnu.org.
--=20
79779: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79779
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems
------------=_1762604102-21420-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 79779-done) by debbugs.gnu.org; 8 Nov 2025 12:14:20 +0000
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've pushed a slightly modified version of Spence=
r's patch.</div><div><br></div><div>Closing.</div><div>Please test, and=
we'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 <<a href=3D"mailto:hi@scturt=
le.me">hi@HIDDEN</a>> 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's patch tested and working. Thanks!<br>
<br>
Jo=C3=A3o T=C3=A1vora <<a href=3D"mailto:joaotavora@HIDDEN" target=3D=
"_blank">joaotavora@HIDDEN</a>> =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>
><br>
> On Fri, Nov 7, 2025 at 10:27=E2=80=AFPM Jo=C3=A3o T=C3=A1vora <<a h=
ref=3D"mailto:joaotavora@HIDDEN" target=3D"_blank">joaotavora@HIDDEN<=
/a>> wrote:<br>
>><br>
>> Spencer Baugh <<a href=3D"mailto:sbaugh@HIDDEN" target=
=3D"_blank">sbaugh@HIDDEN</a>> writes:<br>
>><br>
>> > Jo=C3=A3o T=C3=A1vora <<a href=3D"mailto:joaotavora@gmail.=
com" target=3D"_blank">joaotavora@HIDDEN</a>> writes:<br>
>> ><br>
>> >> Something like this should be the fix but<br>
>> >> text-property-search-forward or something like that is<br=
>
>> >> what should be used.<br>
>> ><br>
>> > It would be next-property-change since text-property-search-f=
orward<br>
>> > doesn't work on strings.=C2=A0 But either way I think tha=
t would be more<br>
>> > complicated code than searching for the first visible newline=
by<br>
>> > searching for newlines until you find a visible one.<br>
>><br>
>> If you're looking for simplification (and effiency) perhaps th=
e 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 la=
ter<br>
>> use.<br>
><br>
><br>
> On second thought, I think you're right Spencer: your approach<br>
> is simpler.=C2=A0 Let's have scturtle test it.<br>
><br>
> 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--
------------=_1762604102-21420-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by debbugs.gnu.org; 7 Nov 2025 04:37:23 +0000
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.
------------=_1762604102-21420-1--
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.