GNU bug report logs - #75931
31.0.50; mouse-face and pointer properties make pointer change back and forth

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: Mauro Aranda <maurooaranda@HIDDEN>; Done: Eli Zaretskii <eliz@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 75931) by debbugs.gnu.org; 2 Feb 2025 09:55:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 02 04:55:24 2025
Received: from localhost ([127.0.0.1]:33173 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teWhI-0007D3-86
	for submit <at> debbugs.gnu.org; Sun, 02 Feb 2025 04:55:24 -0500
Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:45257)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1teWhF-0007Co-M9
 for 75931 <at> debbugs.gnu.org; Sun, 02 Feb 2025 04:55:22 -0500
Received: by mail-pl1-x62d.google.com with SMTP id
 d9443c01a7336-2161eb94cceso39634745ad.2
 for <75931 <at> debbugs.gnu.org>; Sun, 02 Feb 2025 01:55:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738490115; x=1739094915; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=jxbO3SON3w0PTm/8YnP161leaAQ9xTIqjy45Oe/PQ1s=;
 b=NuF5vdV0F8JHrLjMCpdLx6VYZdSGivTKD/xxVDfHAxaajZZu+GoVwnkxd8zEhlBLQB
 mBUTLurLUxmdy0ul7PSEQ3/E2l+KkE9A3E0rUdnseMXLK+FRpnCqVozfyJHkQ6+G1f1z
 wszAV3OZqAXn4KA3b5IIG5P3bfX2fIhHj+oY6ygxev6317svcNIC0mUbBE7i3K/ZvU/1
 uGv9fuzKzLMS92bT1XWskYPPshwWPK28uGk23GVe+GNYcY4fp7ag5asicg8XgvR1ojN1
 +RPbD4v3pXePyMopfZ/fl+LPuNIQyTz3aN0D31ltIuUIGNQXvFsnq4/HAVwvXwI6x4ad
 Bc/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738490115; x=1739094915;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=jxbO3SON3w0PTm/8YnP161leaAQ9xTIqjy45Oe/PQ1s=;
 b=XKAasi2bWgJRI9gv3COKcFw28hOD8CMjxaEAAo+T6lY5+JlnutqqrI2FttLldFyRtQ
 RW1nU4PpmRSpMY1C6YrtWZOLWq01Zu1LWRzchSfxBSP3BGhzloOYzfWlBUwe2yf6ffGL
 srhCiOsOqIdHvBB6Z/E/Jmvhs6TDvVYdjkhXzEGw3N2pbV6cyQDlrSLOkWaiX8fgEKCq
 Z8p3fXbGt4nFP0tnvlhfRqiOBc2eruIUbzmYDtVFfHQI4KDRh0rB8KIKE120aTcaX2Km
 BenP9nXagmmePIaYTccISigtgD4eC8zlAMlPKyGVoGUsnpWaM4h9UeJJN4/RsAoNwxZd
 d63w==
X-Forwarded-Encrypted: i=1;
 AJvYcCU9h5uNawcrf0OIlyUWQkSXlHJsHqrNu8g+tKA/rxXI/Un5hdJtbhBljhaXRbwZk2RII4nUJQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yy2/eNy3yyCYUtuNr4GG1zMFiXLyMOIY77XNKM58lcE5CGipsmJ
 r6iqyildFEZEnacJnvZdZ7KoU18YjD9+et2tTIi+wozj12R2uLMQ
X-Gm-Gg: ASbGncvUS0MDwBU3xT2gNWMBQV8/ZJwRzqjadEMK63nLN7QUuUNuVNiwsOuPs2GspcC
 nB6c2x68NfSzXxpCnXIJH3NYPOrCS0HVXCdFDuvCEJyJOTks+YbfHaunvKO1hxyGz+Qg87D8mz9
 rzOKXBydSV+WnT6n3utrmbcIOGMPp3Njy6wulJAOJyBJboBRqh9LVMq+Fzpnx6C8su7W4DYFfJV
 +Wwo2W1AbO6O474lGs5OXDXCibuhbJVgRU1mfe9i7D1R2r++jTfjGUXHugC0HXoxSMjhDwlDdym
 NDnxChh8JP2fEnxgeXXVVg==
X-Google-Smtp-Source: AGHT+IF7lt6sjKYqXPxaFEZ+QJrIXQk5zKoP+NP/y6wQzuntEi5f2OyquLYwSA4Cqqz5uHa977jKsg==
X-Received: by 2002:a05:6a00:4ac6:b0:725:eb85:f802 with SMTP id
 d2e1a72fcca58-72fd0bc2567mr23288330b3a.2.1738490115450; 
 Sun, 02 Feb 2025 01:55:15 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-72fe631bf38sm6452521b3a.11.2025.02.02.01.55.13
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 02 Feb 2025 01:55:14 -0800 (PST)
Message-ID: <44c778ce-c7a0-4914-b116-564ab296899a@HIDDEN>
Date: Sun, 2 Feb 2025 06:55:11 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>, 75931 <at> debbugs.gnu.org
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
 <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN> <86lduqgfqe.fsf@HIDDEN>
 <868a9b2a-5946-4dab-8599-c14143a16b4e@HIDDEN> <867c69g81j.fsf@HIDDEN>
 <4874d479-7fb3-4517-aaf5-6191f91d2470@HIDDEN> <86ldupe8yo.fsf@HIDDEN>
 <1c561472-62f6-46c6-a2ce-5ca95cfe0b5a@HIDDEN> <86frkweucu.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <86frkweucu.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@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 (-)

On 2/2/25 03:25, Eli Zaretskii wrote:
 >> Date: Sat, 1 Feb 2025 17:28:30 -0300
 >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>
 >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>
 >>  >> Date: Sat, 1 Feb 2025 16:15:14 -0300
 >>  >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>  >>
 >>  >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>  >>
 >>  >>  > So removing both the two lines I added in dispnew.c and the above
 >>  >>  > snippet added by Po Lu (and leaving the rest of the code 
intact) does
 >>  >>  > solve the problem?
 >>  >>
 >>  >> Yes, commenting those lines out solve it:
 >>  >
 >>  > Thanks.  So then I expect the patch below (which _replaces_ the one I
 >>  > sent before, i.e. it should be applied to the current master branch)
 >>  > to also solve the problem.  Does it?
 >>  >
 >>
 >> Yes, it does.
 >
 > Thanks, installed on master, and closing the bug.
 >
 > Thanks for your help in resolving this.

Thanks to you for your patience and for taking your time with this
tricky issue.




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

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


Received: (at 75931-done) by debbugs.gnu.org; 2 Feb 2025 06:25:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 02 01:25:36 2025
Received: from localhost ([127.0.0.1]:60946 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teTQG-0005Rn-H3
	for submit <at> debbugs.gnu.org; Sun, 02 Feb 2025 01:25:36 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58170)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1teTQB-0005RQ-3a
 for 75931-done <at> debbugs.gnu.org; Sun, 02 Feb 2025 01:25:34 -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 1teTQ4-0002mv-Vb; Sun, 02 Feb 2025 01:25:25 -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=hRyfX24w8Xon+RVvj8aF5s/TUB2/bjKNUylscMG2bzQ=; b=E0HuK9UvCzw4ZjB9J1qt
 /yv3wpzW3BS4xbik23AscVguE067YgqLKdp4p+2pILUISx+Tt9dEpYhVTYYkRMZZIGJWjFl/F+WB5
 6qyDPxs9Lkr4k7TsPDoJeHHYs3Dgc6ptH8wwSNKdbiUtN6HIBxYHzaTpAxZcuvmAYYv3k+uD9a5bh
 ab8ZCs33P9P8qbTBdT6ATBEysac+zN1l15mx+K8iVsBLn0dyNXqVnPe+TMsJZk3SUwgljlpr7xNbV
 v0BABR6ZeJ++hDSe/0vnXzdVimuGLrKnW8n8ynkgbDedcJm1jS3qeR/0eLl1FDr4ranVMkCja1zgP
 3Q5usl4ldL5OzA==;
Date: Sun, 02 Feb 2025 08:25:21 +0200
Message-Id: <86frkweucu.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <1c561472-62f6-46c6-a2ce-5ca95cfe0b5a@HIDDEN> (message from
 Mauro Aranda on Sat, 1 Feb 2025 17:28:30 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
 <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN> <86lduqgfqe.fsf@HIDDEN>
 <868a9b2a-5946-4dab-8599-c14143a16b4e@HIDDEN> <867c69g81j.fsf@HIDDEN>
 <4874d479-7fb3-4517-aaf5-6191f91d2470@HIDDEN> <86ldupe8yo.fsf@HIDDEN>
 <1c561472-62f6-46c6-a2ce-5ca95cfe0b5a@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: 75931-done
Cc: luangruo@HIDDEN, 75931-done <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 (---)

> Date: Sat, 1 Feb 2025 17:28:30 -0300
> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
>  >> Date: Sat, 1 Feb 2025 16:15:14 -0300
>  >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
>  >>
>  >> Eli Zaretskii <eliz@HIDDEN> writes:
>  >>
>  >>  > So removing both the two lines I added in dispnew.c and the above
>  >>  > snippet added by Po Lu (and leaving the rest of the code intact) does
>  >>  > solve the problem?
>  >>
>  >> Yes, commenting those lines out solve it:
>  >
>  > Thanks.  So then I expect the patch below (which _replaces_ the one I
>  > sent before, i.e. it should be applied to the current master branch)
>  > to also solve the problem.  Does it?
>  >
> 
> Yes, it does.

Thanks, installed on master, and closing the bug.

Thanks for your help in resolving this.




Notification sent to Mauro Aranda <maurooaranda@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Eli Zaretskii <eliz@HIDDEN>:
You have taken responsibility. Full text available.

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


Received: (at 75931) by debbugs.gnu.org; 1 Feb 2025 20:28:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 15:28:45 2025
Received: from localhost ([127.0.0.1]:60191 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teK6e-0005PQ-UN
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 15:28:45 -0500
Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:45368)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1teK6c-0005OP-5v
 for 75931 <at> debbugs.gnu.org; Sat, 01 Feb 2025 15:28:42 -0500
Received: by mail-pl1-x630.google.com with SMTP id
 d9443c01a7336-2164b1f05caso52059915ad.3
 for <75931 <at> debbugs.gnu.org>; Sat, 01 Feb 2025 12:28:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738441716; x=1739046516; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=qxXCz+LcTxtpXsn037GkV7PuYvgOS+LnlOupUUSek0k=;
 b=OHxSQMFdeZ8tnjiw/twrT6LnDnJSQuam4YZvT5TsUeP3DCoshg8W66KVogTVxmqZy5
 RvWVVQabaIjwk6oLo54UDFlCXy0B9pl158ZSI+8EzGAcKycvuUy8lVHomTNvHFXf8Xl/
 W4Eu/iSU7vlHPDoz73VFLdU6qorgmvBXoVnp4M1Tr1zE1GalfsikXuL0Phmay+iLCo+O
 2FeCV8/cVkQTA/TN5VlQT57gHyq4YBsuGH7uy6q9HwuhyxDc4Q/oVI4caM6CdScmPXBd
 wNp+7alMxgos+qdxHL40ibhi876NWhtb/PqJscQbm79x8ox1AH/r/AG3XvegbYFfYewX
 3D0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738441716; x=1739046516;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=qxXCz+LcTxtpXsn037GkV7PuYvgOS+LnlOupUUSek0k=;
 b=QEO+0AVy/H3MW2QiCxx/pZ9zTg2nzSgtcy2x+b0CvrdX9Pv3m0hrXPxp+vbSH2eE2N
 FG6hG50IC5a2yq8oN10O5cl+w74ipxc5QbCdkpDNRYY008nPPKSwg1SIMsB1gsJeT7tk
 4BEEUEpZHO7Hg6T3Uql4SXEubYGGbda3/vvMgcH0Fzx2ZBn7kFxOmf/hDu7EBdU9AW8s
 jrz2eagss2Fkp+OFGE+rokbCElKJKfzupA9aM6AktQSyAOBlf1IkHDma/NNYeLSUvseX
 KtK1CzzyyS5PnRQgEmNs4XEsKcYqZ8i/Hv8oQIDhmkv5/YHOteyCwnhddWObUfVmCa+F
 qp8A==
X-Gm-Message-State: AOJu0YwMtXmR4wZNqGM+Dyd1kQk0iEWz0+EeiO8pzZMhysNW4lsmVu6C
 S9dp/Fi47erkZd+nOPGg6rZegk+dyIwe32VJSUVMZB5Fp8BPDlfM
X-Gm-Gg: ASbGnctfL8S0InIj/yA7ylwDUjhWx4LL2iK2UjlV6001VyL4IZrluZnduQp35cW1y3t
 EL9jeyRFQh4F3iuUJrnh2WIttOm83/tipn+t3U3QUbJj48jjSMMxTPNn7/9XEFT22Ch7Qo8NwA5
 KgX9v8X3ql86MzhcHn9SiVa4r1nl47rqZXhm4PVSI+osjH3lR38nFQZJpaYORI3fTVtA21sMEAO
 0KiPzWxBmWNZNbIXc1alznyFPj/qsJ3nF748ke+hqA+OpY8dKcvbjinszIYaUy8QFAWJj4HErFW
 4Rq2U0SmwLXs/1nMC5j4Tw==
X-Google-Smtp-Source: AGHT+IH8jqTSqCbJxKHLcrye16UblMVY8oOM5ujIiAiMO5eStBYaDNJXSvnaKVlXmlflLO035urgzA==
X-Received: by 2002:a05:6a20:1584:b0:1e3:cf57:5f5f with SMTP id
 adf61e73a8af0-1ed7a6b290dmr25835768637.27.1738441715945; 
 Sat, 01 Feb 2025 12:28:35 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-72fe69ba3cdsm5560003b3a.91.2025.02.01.12.28.33
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 01 Feb 2025 12:28:35 -0800 (PST)
Message-ID: <1c561472-62f6-46c6-a2ce-5ca95cfe0b5a@HIDDEN>
Date: Sat, 1 Feb 2025 17:28:30 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
 <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN> <86lduqgfqe.fsf@HIDDEN>
 <868a9b2a-5946-4dab-8599-c14143a16b4e@HIDDEN> <867c69g81j.fsf@HIDDEN>
 <4874d479-7fb3-4517-aaf5-6191f91d2470@HIDDEN> <86ldupe8yo.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <86ldupe8yo.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@HIDDEN, 75931 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

 >> Date: Sat, 1 Feb 2025 16:15:14 -0300
 >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>
 >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>
 >>  > So removing both the two lines I added in dispnew.c and the above
 >>  > snippet added by Po Lu (and leaving the rest of the code intact) does
 >>  > solve the problem?
 >>
 >> Yes, commenting those lines out solve it:
 >
 > Thanks.  So then I expect the patch below (which _replaces_ the one I
 > sent before, i.e. it should be applied to the current master branch)
 > to also solve the problem.  Does it?
 >

Yes, it does.




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

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


Received: (at 75931) by debbugs.gnu.org; 1 Feb 2025 19:55:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 14:55:31 2025
Received: from localhost ([127.0.0.1]:60085 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teJaU-0003sl-D1
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 14:55:30 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50970)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1teJaR-0003sW-Av
 for 75931 <at> debbugs.gnu.org; Sat, 01 Feb 2025 14:55:27 -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 1teJaL-0005Yr-LX; Sat, 01 Feb 2025 14:55:21 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=7PARA7NrRqqxCDzw+Ll/LA0fgwgt9bJxe/R7/vWjvsc=; b=gy9121o5dRoC
 3oYDT8O4Ed3c8Jp8AfpQABeICswi/TC1Ey//Wlv9j6c/bOl1gAUB0p7NDbVR0hWY1HW2To47qyZof
 NyaDpYrM3larUuztZCJG8e39ao00z4o/Kngspk6T/l0cugvA7uUNlCTFLKv+jYwhYFEF9IeeaxUfa
 TC2/G0z2DZJKh/DyxFgRU5gooZrh9DCbjOvPuYp5hYV4Iz5LEEKGBEJeT7ihnQUWFCBaeH8hAVHz0
 yUvNU2vlNAutx54EiNRXecxcuKVJkzqTgi8KLq7b1kkPC9qpqOFsl6Y6AKn3gg3Bdz28MrH6exin9
 mJVS+nUTxtZfOHUjb+bvlQ==;
Date: Sat, 01 Feb 2025 21:55:11 +0200
Message-Id: <86ldupe8yo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <4874d479-7fb3-4517-aaf5-6191f91d2470@HIDDEN> (message from
 Mauro Aranda on Sat, 1 Feb 2025 16:15:14 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
 <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN> <86lduqgfqe.fsf@HIDDEN>
 <868a9b2a-5946-4dab-8599-c14143a16b4e@HIDDEN> <867c69g81j.fsf@HIDDEN>
 <4874d479-7fb3-4517-aaf5-6191f91d2470@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@HIDDEN, 75931 <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 (---)

> Date: Sat, 1 Feb 2025 16:15:14 -0300
> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
>  > So removing both the two lines I added in dispnew.c and the above
>  > snippet added by Po Lu (and leaving the rest of the code intact) does
>  > solve the problem?
> 
> Yes, commenting those lines out solve it:

Thanks.  So then I expect the patch below (which _replaces_ the one I
sent before, i.e. it should be applied to the current master branch)
to also solve the problem.  Does it?

diff --git a/src/dispnew.c b/src/dispnew.c
index 35c8d34..e9f3fc2 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -4595,9 +4595,6 @@ gui_update_window_end (struct window *w, bool cursor_on_p,
 				w->output_cursor.hpos, w->output_cursor.vpos,
 				w->output_cursor.x, w->output_cursor.y);
 
-      if (cursor_in_mouse_face_p (w) && cursor_on_p)
-	mouse_face_overwritten_p = 1;
-
       if (draw_window_fringes (w, true))
 	{
 	  if (WINDOW_RIGHT_DIVIDER_WIDTH (w))
diff --git a/src/xdisp.c b/src/xdisp.c
index 0b8dbf5..36e82f8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1229,7 +1229,7 @@ #define face_after_it_pos(IT)  face_before_or_after_it_pos (IT, false)
 
 static void produce_special_glyphs (struct it *, enum display_element_type);
 static void pad_mode_line (struct it *, bool);
-static void show_mouse_face (Mouse_HLInfo *, enum draw_glyphs_face);
+static void show_mouse_face (Mouse_HLInfo *, enum draw_glyphs_face, bool);
 static bool coords_in_mouse_face_p (struct window *, int, int);
 static void reset_box_start_end_flags (struct it *);
 
@@ -15052,14 +15052,14 @@ handle_tab_bar_click (struct frame *f, int x, int y, bool down_p,
     {
       /* Show the clicked button in pressed state.  */
       if (!NILP (Vmouse_highlight))
-	show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN);
+	show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN, true);
       f->last_tab_bar_item = prop_idx; /* record the pressed tab */
     }
   else
     {
       /* Show item in released state.  */
       if (!NILP (Vmouse_highlight))
-	show_mouse_face (hlinfo, DRAW_IMAGE_RAISED);
+	show_mouse_face (hlinfo, DRAW_IMAGE_RAISED, true);
       f->last_tab_bar_item = -1;
     }
 
@@ -15157,7 +15157,7 @@ note_tab_bar_highlight (struct frame *f, int x, int y)
       hlinfo->mouse_face_face_id = TAB_BAR_FACE_ID;
 
       /* Display it as active.  */
-      show_mouse_face (hlinfo, draw);
+      show_mouse_face (hlinfo, draw, true);
     }
 
  set_help_echo:
@@ -16074,7 +16074,7 @@ handle_tool_bar_click_with_device (struct frame *f, int x, int y, bool down_p,
     {
       /* Show item in pressed state.  */
       if (!NILP (Vmouse_highlight))
-	show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN);
+	show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN, true);
       f->last_tool_bar_item = prop_idx;
     }
   else
@@ -16085,7 +16085,7 @@ handle_tool_bar_click_with_device (struct frame *f, int x, int y, bool down_p,
 
       /* Show item in released state.  */
       if (!NILP (Vmouse_highlight))
-	show_mouse_face (hlinfo, DRAW_IMAGE_RAISED);
+	show_mouse_face (hlinfo, DRAW_IMAGE_RAISED, true);
 
       key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY);
 
@@ -16181,7 +16181,7 @@ note_tool_bar_highlight (struct frame *f, int x, int y)
       hlinfo->mouse_face_face_id = TOOL_BAR_FACE_ID;
 
       /* Display it as active.  */
-      show_mouse_face (hlinfo, draw);
+      show_mouse_face (hlinfo, draw, true);
     }
 
  set_help_echo:
@@ -34196,12 +34196,13 @@ erase_phys_cursor (struct window *w)
   /* Since erasing the phys cursor will probably lead to corruption of
      the mouse face display if the glyph's pixel_width is not kept up
      to date with the :box property of the mouse face, just redraw the
-     mouse face.  */
+     mouse face, but leave the mouse cursor as it was.  */
   if (FRAME_WINDOW_P (WINDOW_XFRAME (w)) && mouse_face_here_p)
     {
       w->phys_cursor_on_p = false;
       w->phys_cursor_type = NO_CURSOR;
-      show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), DRAW_MOUSE_FACE);
+      show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), DRAW_MOUSE_FACE,
+		       false);
       return;
     }
 #endif
@@ -34462,7 +34463,8 @@ draw_row_with_mouse_face (struct window *w, int start_x, struct glyph_row *row,
 /* Display the active region described by mouse_face_* according to DRAW.  */
 
 static void
-show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
+show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw,
+		 bool define_mouse_cursor)
 {
   /* Don't bother doing anything if the mouse-face window is not set
      up.  */
@@ -34604,7 +34606,7 @@ show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
 
 #ifdef HAVE_WINDOW_SYSTEM
   /* Change the mouse cursor.  */
-  if (FRAME_WINDOW_P (f) && NILP (track_mouse))
+  if (FRAME_WINDOW_P (f) && NILP (track_mouse) && define_mouse_cursor)
     {
       if (draw == DRAW_NORMAL_TEXT
 #ifndef HAVE_EXT_TOOL_BAR
@@ -34612,8 +34614,7 @@ show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
 #endif
 	  && !EQ (hlinfo->mouse_face_window, f->tab_bar_window))
 	FRAME_RIF (f)->define_frame_cursor (f, FRAME_OUTPUT_DATA (f)->text_cursor);
-      else
-      if (draw == DRAW_MOUSE_FACE)
+      else if (draw == DRAW_MOUSE_FACE)
 	FRAME_RIF (f)->define_frame_cursor (f, FRAME_OUTPUT_DATA (f)->hand_cursor);
       else
 	FRAME_RIF (f)->define_frame_cursor (f, FRAME_OUTPUT_DATA (f)->nontext_cursor);
@@ -34632,7 +34633,7 @@ clear_mouse_face (Mouse_HLInfo *hlinfo)
   bool cleared
     = !hlinfo->mouse_face_hidden && !NILP (hlinfo->mouse_face_window);
   if (cleared)
-    show_mouse_face (hlinfo, DRAW_NORMAL_TEXT);
+    show_mouse_face (hlinfo, DRAW_NORMAL_TEXT, true);
   hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1;
   hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1;
   hlinfo->mouse_face_window = Qnil;
@@ -35199,7 +35200,7 @@ mouse_face_from_buffer_pos (Lisp_Object window,
     = face_at_buffer_position (w, mouse_charpos, &ignore,
 			       mouse_charpos + 1,
                                !hlinfo->mouse_face_hidden, -1, 0);
-  show_mouse_face (hlinfo, DRAW_MOUSE_FACE);
+  show_mouse_face (hlinfo, DRAW_MOUSE_FACE, true);
 }
 
 /* The following function is not used anymore (replaced with
@@ -35909,7 +35910,7 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y,
 	    face_at_string_position (w, string, charpos, 0, &ignore,
 	                             glyph->face_id, true, 0);
 
-	  show_mouse_face (hlinfo, DRAW_MOUSE_FACE);
+	  show_mouse_face (hlinfo, DRAW_MOUSE_FACE, true);
 	  mouse_face_shown = true;
 
 	  if (NILP (pointer))
@@ -36448,7 +36449,7 @@ note_mouse_highlight (struct frame *f, int x, int y)
 	      hlinfo->mouse_face_face_id
 		= face_at_string_position (w, object, pos, 0, &ignore,
 		                           glyph->face_id, true, 0);
-	      show_mouse_face (hlinfo, DRAW_MOUSE_FACE);
+	      show_mouse_face (hlinfo, DRAW_MOUSE_FACE, true);
 	      cursor = No_Cursor;
 	    }
 	  else




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

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


Received: (at 75931) by debbugs.gnu.org; 1 Feb 2025 19:15:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 14:15:28 2025
Received: from localhost ([127.0.0.1]:60041 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teIxk-00022G-2R
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 14:15:28 -0500
Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:61912)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1teIxi-000220-0j
 for 75931 <at> debbugs.gnu.org; Sat, 01 Feb 2025 14:15:26 -0500
Received: by mail-pl1-x62f.google.com with SMTP id
 d9443c01a7336-21669fd5c7cso53486795ad.3
 for <75931 <at> debbugs.gnu.org>; Sat, 01 Feb 2025 11:15:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738437320; x=1739042120; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=keXhOew+Tc4SxGyDm/yvMh3e8ppbppSgCsYedhZFFvQ=;
 b=WW45D+nX3rHJnwikQkeMjFf/Wia9Qol/DaxH5Bo6SHT3jLl1wtrk88eKyrm+jMu2yX
 nkcK1QE0ySohiSPblzrJOJkRAICoZySGzWA5WDHCWX00btWSPTPPE2JjbFhl2V8LwGhh
 H2ZFqdo+5ZD78c1a4Zbx+QdI5FbLxejo0q/tBIW3xGGBdmq0CWEdR/GcZmI9X8RV+KQ+
 b0ZTji6kXC4w4zfycGPr7VnRcG/ikq5oQWU1+Xs52mULSXDMfikXYc3bYyaNv2sTuvc+
 VzAZQJh+hG6Xd6R40qS8wHajRgabFAmkl9QaBTe8jkr8qOsQaNyzd+zzC+5vgAmu8n3K
 JMCg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738437320; x=1739042120;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=keXhOew+Tc4SxGyDm/yvMh3e8ppbppSgCsYedhZFFvQ=;
 b=pskz1WgPBdjwSrhuI3V7B3zhg54XSiasfaV74Ss9QeiTuqYbEBVgJLoDrZB0LCUfTc
 Q4zcXP0hTWIvniqMCN6S5DoRs0bLvc3Tcubf+AZeN0ZPJwRlK+RoXGAeE71utY31bxrw
 HMoq1Y5KFwl1Dzm4JcSVZZgRCGBPvdaeJ/xCJaspP/jbGg+mZEi3UDUINJbxO0UgbEl7
 vF7PA08wHPFWzJFIF4jySbpAIDcwMR+d8vbnM8dW1Mq02zzAA0hyL1GgXulGQYuvWDfn
 1On7bEe5G0bIZv89wRMPli6Ws6KS56ZmpY+qMsJCgKOaQcxpfM3u+wAFKPTmu3bNXL4z
 eUEQ==
X-Gm-Message-State: AOJu0YznhF7hqcUthXEFxeQkEgiyAOSDXWPCNHfvNdBcTUcVywRfwVRW
 Fss7oWI5+OywlUA182zeAzBAewBpppbvm+UyrdSYV/6Tk0HeGu/0
X-Gm-Gg: ASbGnctP4ozQDCoJ75v3xlup59tYmjnPVNRp1grcHLux5o272pjMJzWo85+dn1jja4O
 0YLh9X/gIIeSm/IBCtYMkSIGO1I1+YTtXauP5XNhu+ftM3jGlVXNOnoTmOHIgQn7MG4hV2Tons6
 Gg+BImEKXzweNaWvhXY+Tguo0Rxgax8NpVuusL7cjSX3WRyhtckfMz3m6sOUv6PE2l8SAxGven7
 W6cc4g2/Ju3hfjE1pbIp1fU/C1pXoROnOwZjrHBgfZUqFMc9ZmUUwFZml8wD83BgGQFhzr7Om3z
 qTfOb+WSVZnYTL6F/cs26w==
X-Google-Smtp-Source: AGHT+IE24on1oDHSCbA3n24bLONAdDfQyBrx1IAznmuFqVz7unZD0lHXuoX6j1gSBBPag0aHHLCS6A==
X-Received: by 2002:a17:902:d505:b0:216:7926:8d69 with SMTP id
 d9443c01a7336-21dd7dd72f6mr238951165ad.47.1738437319746; 
 Sat, 01 Feb 2025 11:15:19 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 98e67ed59e1d1-2f848acacadsm5839118a91.41.2025.02.01.11.15.17
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 01 Feb 2025 11:15:19 -0800 (PST)
Message-ID: <4874d479-7fb3-4517-aaf5-6191f91d2470@HIDDEN>
Date: Sat, 1 Feb 2025 16:15:14 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
 <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN> <86lduqgfqe.fsf@HIDDEN>
 <868a9b2a-5946-4dab-8599-c14143a16b4e@HIDDEN> <867c69g81j.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <867c69g81j.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@HIDDEN, 75931 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

 >> Date: Sat, 1 Feb 2025 07:25:29 -0300
 >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>
 >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>
 >>  >> Date: Fri, 31 Jan 2025 05:52:07 -0300
 >>  >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>  >>
 >>  >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>  >>
 >>  >>  >> Date: Thu, 30 Jan 2025 17:41:02 -0300
 >>  >>  >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >>  >>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>  >>  >>
 >>  >>  >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>  >>  >>
 >>  >>  >>  > Please try the patch below.
 >>  >>  >>
 >>  >>  >> Thanks, but the issue remains after applying the patch.
 >>  >>  >
 >>  >>  > That probably means that one or more other calls to 
show_mouse_face
 >>  >>  > need to be passed 'false' as the last argument. Since AFAIU 
only the
 >>  >>  > calls with DRAW_MOUSE_FACE can reset the mouse pointer back 
to the
 >>  >>  > hand shape, those are the calls that are the suspects.  So please
 >>  >>  > change each such call and see which additional one needs 
that.  I
 >> hope
 >>  >>  > there's only one such call, so please change only one call at 
a time,
 >>  >>  > each time returning the other calls to their current state.
 >>  >>
 >>  >> It's the call at the end of mouse_face_from_buffer_pos.
 >>  >
 >>  > I'm confused: didn't you say earlier in this discussion that removing
 >>  > this call to show_mouse_face in erase_phys_cursor:
 >>  >
 >>  >   #ifdef HAVE_WINDOW_SYSTEM
 >>  >     /* Since erasing the phys cursor will probably lead to 
corruption of
 >>  >        the mouse face display if the glyph's pixel_width is not 
kept up
 >>  >        to date with the :box property of the mouse face, just 
redraw the
 >>  >        mouse face, but leave the mouse cursor as it was.  */
 >>  >     if (FRAME_WINDOW_P (WINDOW_XFRAME (w)) && mouse_face_here_p)
 >>  >       {
 >>  >     w->phys_cursor_on_p = false;
 >>  >     w->phys_cursor_type = NO_CURSOR;
 >>  >     show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), 
DRAW_MOUSE_FACE,
 >>  >              false);
 >>  >     return;
 >>  >       }
 >>  >   #endif
 >>  > solves the problem?
 >>
 >> No, I never tried removing it, I said:
 >> "Perhaps it is the call to show_mouse_face that was added to
 >> erase_phys_cursor."
 >>
 >> That was because reverting the changes in dispnew.c solved the problem
 >> after your commit, but didn't solve it anymore after the commit by Po
 >> Lu, which added that call.
 >
 > So removing both the two lines I added in dispnew.c and the above
 > snippet added by Po Lu (and leaving the rest of the code intact) does
 > solve the problem?

Yes, commenting those lines out solve it:

diff --git a/src/dispnew.c b/src/dispnew.c
index 35c8d347616..365dda47ebf 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -4595,8 +4595,8 @@ gui_update_window_end (struct window *w, bool 
cursor_on_p,
                  w->output_cursor.hpos, w->output_cursor.vpos,
                  w->output_cursor.x, w->output_cursor.y);

-      if (cursor_in_mouse_face_p (w) && cursor_on_p)
-    mouse_face_overwritten_p = 1;
+      /* if (cursor_in_mouse_face_p (w) && cursor_on_p) */
+      /*     mouse_face_overwritten_p = 1; */

        if (draw_window_fringes (w, true))
      {
diff --git a/src/xdisp.c b/src/xdisp.c
index a801caae06f..be8385feb72 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -34199,9 +34199,9 @@ erase_phys_cursor (struct window *w)
       mouse face.  */
    if (FRAME_WINDOW_P (WINDOW_XFRAME (w)) && mouse_face_here_p)
      {
-      w->phys_cursor_on_p = false;
-      w->phys_cursor_type = NO_CURSOR;
-      show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), DRAW_MOUSE_FACE);
+      /* w->phys_cursor_on_p = false; */
+      /* w->phys_cursor_type = NO_CURSOR; */
+      /* show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), 
DRAW_MOUSE_FACE); */
        return;
      }
  #endif





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

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


Received: (at 75931) by debbugs.gnu.org; 1 Feb 2025 12:32:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 07:32:21 2025
Received: from localhost ([127.0.0.1]:56924 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teCfd-0001zz-EC
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 07:32:21 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:52710)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1teCfb-0001zh-CJ
 for 75931 <at> debbugs.gnu.org; Sat, 01 Feb 2025 07:32:19 -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 1teCfU-0003ue-Ds; Sat, 01 Feb 2025 07:32:12 -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=70h/vtsSanTu2PCaRRuTt1WCw5TdDEV5AhHrwyMqntY=; b=NuLIu9x74Cx3jDaG5ZkE
 D9v6B7tIedj5xZjwYEn3XiauINzaep5SgV3HvCp6jdejw9Nb8BpWC5uPecdtqPImkL0zTPHHtHaVZ
 DcOYfMCzamP9aVPVspYbz+SKspQlWwyfyFyxOVP6G7W1zmfciNoovAVQeKhKsdqBpZdAGsjV7m1AW
 N6vctbBaHzMAddtnkcx7iByZApM1VRi7DQ+4dJXue6jlRp+kG36Xi9AQFLx2Jv8l1Rq7c47Ei4Ghq
 OrIxhxnGrdLIb+UvBd0bQ1EajHAvhbyLKMTkGOua3R1zUcN6Km5rGI3zimh/oig5Ognt0rxxqefsf
 ZmdhPAxrD8d98w==;
Date: Sat, 01 Feb 2025 14:32:08 +0200
Message-Id: <867c69g81j.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <868a9b2a-5946-4dab-8599-c14143a16b4e@HIDDEN> (message from
 Mauro Aranda on Sat, 1 Feb 2025 07:25:29 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
 <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN> <86lduqgfqe.fsf@HIDDEN>
 <868a9b2a-5946-4dab-8599-c14143a16b4e@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: 75931
Cc: luangruo@HIDDEN, 75931 <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 (---)

> Date: Sat, 1 Feb 2025 07:25:29 -0300
> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
>  >> Date: Fri, 31 Jan 2025 05:52:07 -0300
>  >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
>  >>
>  >> Eli Zaretskii <eliz@HIDDEN> writes:
>  >>
>  >>  >> Date: Thu, 30 Jan 2025 17:41:02 -0300
>  >>  >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
>  >>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
>  >>  >>
>  >>  >> Eli Zaretskii <eliz@HIDDEN> writes:
>  >>  >>
>  >>  >>  > Please try the patch below.
>  >>  >>
>  >>  >> Thanks, but the issue remains after applying the patch.
>  >>  >
>  >>  > That probably means that one or more other calls to show_mouse_face
>  >>  > need to be passed 'false' as the last argument. Since AFAIU only the
>  >>  > calls with DRAW_MOUSE_FACE can reset the mouse pointer back to the
>  >>  > hand shape, those are the calls that are the suspects.  So please
>  >>  > change each such call and see which additional one needs that.  I 
> hope
>  >>  > there's only one such call, so please change only one call at a time,
>  >>  > each time returning the other calls to their current state.
>  >>
>  >> It's the call at the end of mouse_face_from_buffer_pos.
>  >
>  > I'm confused: didn't you say earlier in this discussion that removing
>  > this call to show_mouse_face in erase_phys_cursor:
>  >
>  >   #ifdef HAVE_WINDOW_SYSTEM
>  >     /* Since erasing the phys cursor will probably lead to corruption of
>  >        the mouse face display if the glyph's pixel_width is not kept up
>  >        to date with the :box property of the mouse face, just redraw the
>  >        mouse face, but leave the mouse cursor as it was.  */
>  >     if (FRAME_WINDOW_P (WINDOW_XFRAME (w)) && mouse_face_here_p)
>  >       {
>  >     w->phys_cursor_on_p = false;
>  >     w->phys_cursor_type = NO_CURSOR;
>  >     show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), DRAW_MOUSE_FACE,
>  >              false);
>  >     return;
>  >       }
>  >   #endif
>  > solves the problem?
> 
> No, I never tried removing it, I said:
> "Perhaps it is the call to show_mouse_face that was added to
> erase_phys_cursor."
> 
> That was because reverting the changes in dispnew.c solved the problem
> after your commit, but didn't solve it anymore after the commit by Po
> Lu, which added that call.

So removing both the two lines I added in dispnew.c and the above
snippet added by Po Lu (and leaving the rest of the code intact) does
solve the problem?

I'm flying blind here, so I need all the help I can get.




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

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


Received: (at 75931) by debbugs.gnu.org; 1 Feb 2025 10:25:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 05:25:42 2025
Received: from localhost ([127.0.0.1]:56491 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teAh3-0006bw-ID
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 05:25:42 -0500
Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:52648)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1teAh1-0006bh-L4
 for 75931 <at> debbugs.gnu.org; Sat, 01 Feb 2025 05:25:40 -0500
Received: by mail-pl1-x632.google.com with SMTP id
 d9443c01a7336-21661be2c2dso48776405ad.1
 for <75931 <at> debbugs.gnu.org>; Sat, 01 Feb 2025 02:25:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738405533; x=1739010333; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=wamkHMLahok7AUHLyUDzLxlb6L2yIlRvKViMiWFY1HI=;
 b=k2r+PvEe+RO1lYcQnLsJ31S5vIpg6lALZ3rajT0XlraQA3YJGTWJza36mYrz4i6+FZ
 4+j6mVYBakBkN5d03ehCpjWpqDRt18AXnvyhsqtv/KK3I5cH3p+rGtmvSWBwHvewBpFW
 zS6G5hb8vpSyTz3dbyrG4/cca1cRScaiQ3ZXEQ0ba856PTgW8ii7FTI+mqLTF0E7h9I+
 Zel0EOpQ/4cwQoN8n1vylHwckSMS+VtP00pLyTsdlWZZobFp3K3bXWQGX1EpWOeQTdur
 sCnxW/TfPp/7Tyj8vA+1Gju5nIyCVYiT1sJv5YhDHqO7iOXS9YgQhpolAamKn2rTtuRX
 dfcA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738405533; x=1739010333;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=wamkHMLahok7AUHLyUDzLxlb6L2yIlRvKViMiWFY1HI=;
 b=vFsLUbyOgmj5aXSjFNJRIEeUcAnAr0GJJ3GG190BbmTxVxEryNoMMUMWSy1F5hd9hw
 pDY2wzjXRrAmLfKC+Dce/BO+HzllGCiqPW2hT6BC9dBBSA9+FAOU1Q/YiZJ4ODtmZjTY
 wj/YuLSui15wmISux9NSnFHLbPZkIjQ3rCFK1yY/re9CAqbSmCSv8TKxn7lbL8LKxvd4
 KheBPvo8pSMgin1snyj7HXYKjZtvLImXrHPWoqiLUR+PObrEyhTVUm6xnEKj3mwxZa3f
 HBNoQ94130flzj7jPVKZAIJT0Wh67OKE6UI1WjMzffDkmZVP+BO/bhnHp9onbC7rDRbF
 pTow==
X-Gm-Message-State: AOJu0Yzm9pRy5egyxPy+sGDE8f4C3SiWwN2rwQqHbMfkXjZY4W2qj/ko
 ruB1zjSLjbsONvxU71FA4GubOw6lLlP6KHgL+PZfTb2oXGX+8q2T
X-Gm-Gg: ASbGncsVw4lsd0HSLL/+8BMkXA5dEzDcfGmcsxirJyea7+D5xlJUyH5ruTLlxVdSufh
 mIBH7iCruIiycQzuMui3KP/T+fFTBvzMb+PYQaoPwKwycpVow8GegSJV3HnBoyq1ssxujmjmO/g
 ddnhFN1uLB4XYoJ8Ux6FrQCbHzNH5VT4NC/n1M+d+WmMqTz2uEB1c99NW97Bjox+Jv88poJ+6kg
 +sV2/Ib+GuQ8lMyDM8dzfCuaJt3Cn9PtsasXQwu+YkLtWYS6mPENcJPtAtiKC1BmWYtefm9CeP1
 qxQul5W0fTQ3v1zdRcZEHw==
X-Google-Smtp-Source: AGHT+IGRUvUyCYMlSKLO2TStmPNGiHPLnUqQ1bH0wmWdvYaM9sN6csuH2R0nMOUYHxdXO2Wh0Wib8g==
X-Received: by 2002:a17:902:ccc8:b0:215:9894:5679 with SMTP id
 d9443c01a7336-21dd7b71973mr233603935ad.0.1738405533441; 
 Sat, 01 Feb 2025 02:25:33 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-21de32ea80csm43659395ad.140.2025.02.01.02.25.31
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 01 Feb 2025 02:25:32 -0800 (PST)
Message-ID: <868a9b2a-5946-4dab-8599-c14143a16b4e@HIDDEN>
Date: Sat, 1 Feb 2025 07:25:29 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
 <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN> <86lduqgfqe.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <86lduqgfqe.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@HIDDEN, 75931 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

 >> Date: Fri, 31 Jan 2025 05:52:07 -0300
 >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>
 >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>
 >>  >> Date: Thu, 30 Jan 2025 17:41:02 -0300
 >>  >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>  >>
 >>  >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>  >>
 >>  >>  > Please try the patch below.
 >>  >>
 >>  >> Thanks, but the issue remains after applying the patch.
 >>  >
 >>  > That probably means that one or more other calls to show_mouse_face
 >>  > need to be passed 'false' as the last argument. Since AFAIU only the
 >>  > calls with DRAW_MOUSE_FACE can reset the mouse pointer back to the
 >>  > hand shape, those are the calls that are the suspects.  So please
 >>  > change each such call and see which additional one needs that.  I 
hope
 >>  > there's only one such call, so please change only one call at a time,
 >>  > each time returning the other calls to their current state.
 >>
 >> It's the call at the end of mouse_face_from_buffer_pos.
 >
 > I'm confused: didn't you say earlier in this discussion that removing
 > this call to show_mouse_face in erase_phys_cursor:
 >
 >   #ifdef HAVE_WINDOW_SYSTEM
 >     /* Since erasing the phys cursor will probably lead to corruption of
 >        the mouse face display if the glyph's pixel_width is not kept up
 >        to date with the :box property of the mouse face, just redraw the
 >        mouse face, but leave the mouse cursor as it was.  */
 >     if (FRAME_WINDOW_P (WINDOW_XFRAME (w)) && mouse_face_here_p)
 >       {
 >     w->phys_cursor_on_p = false;
 >     w->phys_cursor_type = NO_CURSOR;
 >     show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), DRAW_MOUSE_FACE,
 >              false);
 >     return;
 >       }
 >   #endif
 > solves the problem?

No, I never tried removing it, I said:
"Perhaps it is the call to show_mouse_face that was added to
erase_phys_cursor."

That was because reverting the changes in dispnew.c solved the problem
after your commit, but didn't solve it anymore after the commit by Po
Lu, which added that call.

Whether passing a false argument in the call counts as "removing it",
for this matter, I don't know.

What I meant with "it's the call at the end of
mouse_face_from_buffer_pos" is that that's the other call that needed to
pass false (in addition to the one in erase_phys_cursor) for the problem
to disappear.

 > Is that still the case with the current code?

Allow me to summarize:

* Does reverting the hunk from your commit in dispnew.c solves it?
- After your commit, it does.

- After the commit by Po Lu, it does not.

* Does arranging for the call to show_mouse_face to not redefine the
mouse cursor solves it?

I tried that by changing FRAME_OUTPUT_DATA (f)->hand_cursor to
FRAME_OUTPUT_DATA (f)->current_cursor

That made the problem go away, without having to revert the hunk in
dispnew.c.  (From now on, everything tested is without reverting that
hunk)

Note that here I may have misunderstood
what you asked me: maybe you wanted me to do something in
erase_phys_cursor, around the call to show_mouse_face, but not inside
show_mouse_face.  I didn't know what to do, but I explained that I
changed the code in show_mouse_face.

* Does the patch where the only call to show_mouse_face that passes
false as a third argument solve it?

No, it doesn't.

* Is there any other call to show_mouse_face (in addition to the one in
erase_phys_cursor that needs to pass false as a third argument for the
problem to go away? If yes, which one/s?

I found out by testing one by one that the other call it's the one in
mouse_face_from_buffer_pos.





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

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


Received: (at 75931) by debbugs.gnu.org; 1 Feb 2025 09:46:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 04:46:12 2025
Received: from localhost ([127.0.0.1]:56418 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teA4p-0004k2-Nm
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 04:46:12 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:33658)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1teA4n-0004jq-JY
 for 75931 <at> debbugs.gnu.org; Sat, 01 Feb 2025 04:46:09 -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 1teA4h-0005MI-Sf; Sat, 01 Feb 2025 04:46:04 -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=X62k1hiuZ92WEtgKUMjVGIqSfHFbxsyb4et/SO7dgaY=; b=bvyj1N9cQd4V/uNXUBHA
 /HhYpP2LO/2EP2MgIsLD3AtU/1o8x2e8tC9CCQlUiSS4jBjBxSy/ZlBRR/ZEVvAdSqcnAPqYhrdql
 zF8mPt0Wk7RvnPKxx8m2N7YbfPk701KrZ/qlrC6T1gZm89mO8L5nhsVXMoLb/dT6MHy3+dyCcJo3G
 FBsIoiSgXn3Td07scHhyeuU6F8zgLPd4+jAdUGxvny3YTc4NNG5L++1ka1bOZF11XVD1K5tfboNgy
 vXorG3pOBBMswRbmmJCF9JLpvSSHmZ6XOrQm4atJDR7xMTk/tBWCahIjSoXQAz3GtBVO02omBzOuX
 kbZlg0Ir8GWVPA==;
Date: Sat, 01 Feb 2025 11:46:01 +0200
Message-Id: <86lduqgfqe.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN> (message from
 Mauro Aranda on Fri, 31 Jan 2025 05:52:07 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
 <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@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: 75931
Cc: luangruo@HIDDEN, 75931 <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 (---)

> Date: Fri, 31 Jan 2025 05:52:07 -0300
> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
>  >> Date: Thu, 30 Jan 2025 17:41:02 -0300
>  >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
>  >>
>  >> Eli Zaretskii <eliz@HIDDEN> writes:
>  >>
>  >>  > Please try the patch below.
>  >>
>  >> Thanks, but the issue remains after applying the patch.
>  >
>  > That probably means that one or more other calls to show_mouse_face
>  > need to be passed 'false' as the last argument.  Since AFAIU only the
>  > calls with DRAW_MOUSE_FACE can reset the mouse pointer back to the
>  > hand shape, those are the calls that are the suspects.  So please
>  > change each such call and see which additional one needs that.  I hope
>  > there's only one such call, so please change only one call at a time,
>  > each time returning the other calls to their current state.
> 
> It's the call at the end of mouse_face_from_buffer_pos.

I'm confused: didn't you say earlier in this discussion that removing
this call to show_mouse_face in erase_phys_cursor:

  #ifdef HAVE_WINDOW_SYSTEM
    /* Since erasing the phys cursor will probably lead to corruption of
       the mouse face display if the glyph's pixel_width is not kept up
       to date with the :box property of the mouse face, just redraw the
       mouse face, but leave the mouse cursor as it was.  */
    if (FRAME_WINDOW_P (WINDOW_XFRAME (w)) && mouse_face_here_p)
      {
	w->phys_cursor_on_p = false;
	w->phys_cursor_type = NO_CURSOR;
	show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), DRAW_MOUSE_FACE,
			 false);
	return;
      }
  #endif

solves the problem?  Is that still the case with the current code?




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

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


Received: (at 75931) by debbugs.gnu.org; 31 Jan 2025 08:52:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 31 03:52:20 2025
Received: from localhost ([127.0.0.1]:49927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdml9-00056y-Sw
	for submit <at> debbugs.gnu.org; Fri, 31 Jan 2025 03:52:20 -0500
Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:45367)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdml7-00056f-UQ
 for 75931 <at> debbugs.gnu.org; Fri, 31 Jan 2025 03:52:18 -0500
Received: by mail-pl1-x62a.google.com with SMTP id
 d9443c01a7336-2164b1f05caso29823675ad.3
 for <75931 <at> debbugs.gnu.org>; Fri, 31 Jan 2025 00:52:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738313532; x=1738918332; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=bRr3ayrvgxdLiSES4rGoEyquEmF5+D7gPKUz5YnQvtg=;
 b=JSuVIe1uk6tIS9kreX04gSbej7dqpB8/qP8mHKwa4jna+PeH1d4odyxQZmkCjUITRJ
 ZBl9UDpaTX5ZQ8JESj4iCkDMK9a17b8ZTMQR4ZC2MbwtuLYpMrRgDYfvs+D8kvLUS0NE
 G4OhoJrp4YbQHpw/GIXTMh9UwHKoxIG7zu9Vu31HQdUvCGJqtRi63c3DcXQWqxO4BVgn
 ZU20puwvdrkGgvmXH7lgfW/1ey3lP0A5FO4ye0B8HoRmZ7rIcx+QWXARF17Xr0nrNC0K
 GC+xxGRXl/rkHxuQ8Jz7eB/1CZzHWRRTx6/TXxv8uzLQo881xQh47WLNCSCMCzi4pEhp
 PHbg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738313532; x=1738918332;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=bRr3ayrvgxdLiSES4rGoEyquEmF5+D7gPKUz5YnQvtg=;
 b=w6EomDXWrXFeJMvsPTmaBR8lo5rNtLyyT9eOLrgQu3p9xduJZqRoCcRyin8gu+rdPi
 WWyCJnKLjUg12CgOjSFsKNNoXiBntA7G4G9cbe0FL18jk7qnu+SxbJ8KiGic+GRgWB7I
 vbxpzZHDd/OjWyCHP9WWpHkN1CWpPUd5L0dVFZUFl3mn5oIuOqjqhpDl/7i3Bxu3sSbX
 05CJxrcS3Xv39tmCxzRVC/yeW9DQrTxW2ImXyokDKbmnbjWftXY9LtRzvzJq4/K9ClrT
 c1akP6TCK3SPY7Cy++Wv7yUowADoe5SVp0Rbayz4wj3v33hZdcZwYbakC+JfLNV0UcaT
 b7mg==
X-Gm-Message-State: AOJu0YwwdUVNW/1emzAg4Pa+KYKiu5zwVXCc6KOfJhD1VSNA10g6Nbyc
 bCI209yzPP+P4A69FLdvfzaiNH8n3245mx9WPzCOFCuGUfYjl5hH
X-Gm-Gg: ASbGncvPqngCAnJAYU2C2u1JwbO6PteUPBBY/1WooQnk7pXE2BnFmzbdyTDntO0Pxq5
 bbzYuw8/B2qbVGzeu4Q8hvF53T93lEBERuCeJ8GdKvs096eTyomYuIzqh20sVug0hXdv2VLqZ8X
 dL6SDhMrly/W7feo4WohfE4f0MzJHqbGMbq0ZJ6ZhDFo3nN34uxUp84yowSDsB8+ZYvaYQSNA72
 z5yB0noikuwHdnMZyyAU4cO5/vcL38Iitb5u7GfSFyMtg51+6WjOy6e1iZuodRtoMHW5PJzhMOC
 2ry7T+COAj9mdW/p93yqJA==
X-Google-Smtp-Source: AGHT+IH0Ur1l+yMi2LErdKIFOXJ8VvUf5tf8M0ShTTWEcBskF01CZRFHbcxARcUfV0yZ+fxyT1wZvQ==
X-Received: by 2002:a17:902:f606:b0:215:89a0:416f with SMTP id
 d9443c01a7336-21dd7d82c71mr152935655ad.30.1738313531782; 
 Fri, 31 Jan 2025 00:52:11 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-21de31ef0d0sm26014935ad.25.2025.01.31.00.52.10
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 31 Jan 2025 00:52:11 -0800 (PST)
Message-ID: <f618f70c-bfbe-405e-b6d9-56f162dd9dcc@HIDDEN>
Date: Fri, 31 Jan 2025 05:52:07 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> <865xlvjwia.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <865xlvjwia.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@HIDDEN, 75931 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

 >> Date: Thu, 30 Jan 2025 17:41:02 -0300
 >> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>
 >> Eli Zaretskii <eliz@HIDDEN> writes:
 >>
 >>  > Please try the patch below.
 >>
 >> Thanks, but the issue remains after applying the patch.
 >
 > That probably means that one or more other calls to show_mouse_face
 > need to be passed 'false' as the last argument.  Since AFAIU only the
 > calls with DRAW_MOUSE_FACE can reset the mouse pointer back to the
 > hand shape, those are the calls that are the suspects.  So please
 > change each such call and see which additional one needs that.  I hope
 > there's only one such call, so please change only one call at a time,
 > each time returning the other calls to their current state.

It's the call at the end of mouse_face_from_buffer_pos.

But passing just false can't be right, since it would prevent drawing
the hand pointer when no pointer property is specified.





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

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


Received: (at 75931) by debbugs.gnu.org; 31 Jan 2025 07:03:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 31 02:03:21 2025
Received: from localhost ([127.0.0.1]:49416 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdl3g-0004qB-Ta
	for submit <at> debbugs.gnu.org; Fri, 31 Jan 2025 02:03:21 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:46082)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tdl3e-0004ps-Ka
 for 75931 <at> debbugs.gnu.org; Fri, 31 Jan 2025 02:03:19 -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 1tdl3Z-00046F-8v; Fri, 31 Jan 2025 02:03:13 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=zHDAAnm7ZsvkaLdXY1yG9q53NExdYXFHTj8nSSeGeBw=; b=jmiM+2zXITcr
 Wnkw9o9Mo8I3TGnrknNe9VKaUD9mECQJPBryGNVV/ESjbebxqK/Y6osvU47XjJ299zUOpyIlELn8f
 vFpHB1QZ3ZVFrfV8AkRC4UBI5RPj53jM9x79lPcNRcw/Y0seyhVRL+kfqNJPMEFtrMThXrHT6+qLe
 MG5Y5c4/NAFmtHIVxz8dw7s/G6OCWA0WY5mzxBPikcc1zwp82Yyh4ihrg9fw5FyoaxTb0aIAlEry+
 vCB7EaJ28eI1+ileKX92Zcw/l1BOIb5VgLNGtlEbi8VcqI7iAK4BZXplbcEP15yupA27PNzP7wpsQ
 e6hg561o8QEkrjAKoYu88w==;
Date: Fri, 31 Jan 2025 09:03:09 +0200
Message-Id: <865xlvjwia.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN> (message from
 Mauro Aranda on Thu, 30 Jan 2025 17:41:02 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
 <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@HIDDEN, 75931 <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 (---)

> Date: Thu, 30 Jan 2025 17:41:02 -0300
> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
>  > Please try the patch below.
> 
> Thanks, but the issue remains after applying the patch.

That probably means that one or more other calls to show_mouse_face
need to be passed 'false' as the last argument.  Since AFAIU only the
calls with DRAW_MOUSE_FACE can reset the mouse pointer back to the
hand shape, those are the calls that are the suspects.  So please
change each such call and see which additional one needs that.  I hope
there's only one such call, so please change only one call at a time,
each time returning the other calls to their current state.




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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 20:41:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 15:41:15 2025
Received: from localhost ([127.0.0.1]:48122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdbLf-0003hm-5v
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 15:41:15 -0500
Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:61899)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdbLb-0003hT-PS
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 15:41:13 -0500
Received: by mail-pj1-x1030.google.com with SMTP id
 98e67ed59e1d1-2ef8c012913so1687633a91.3
 for <75931 <at> debbugs.gnu.org>; Thu, 30 Jan 2025 12:41:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738269665; x=1738874465; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=BLzMAkMYp6Ad6fiv1OjyIK/1dHHtk7BqjePGsScDcgw=;
 b=UQUQUlPlOK7U5G3U6alPAptxNP67T7k4Hzzi/exST2BqF1/Q5e5MX02znCS6CdFqYA
 Bom8X89831apgMbmW+DDUIl3BeYysVGygZ7H82m7uZls39Lwg55+i2/bjX8TEW3zsHEm
 YrCUZk2xsUwz7slwtXeJVkMdDDtLFSe/BqeGgH3Ih06J5gkY+IzI7xpJOw85XZtdE/8K
 tgJLcpPoRxqhvsILj5l0WEIkxcpqNzwlR2WJI2e2E9DXW73A5VLckIn6t73MMXPajaN7
 xbxueBh6icu+tAeOvSm7JtvMw5gBCGtFJVs0wRqRdaZPprHxLUTEiHiuval2XstfLqz8
 cpzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738269665; x=1738874465;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=BLzMAkMYp6Ad6fiv1OjyIK/1dHHtk7BqjePGsScDcgw=;
 b=gOGG1phmYIudOmSkvifgvvQCWkav/DL+pONYEdDxX1uIRAlHWynWYhSjNRygezxLWj
 NHdui3YnJW/TEmR33Ri3TLYUcfVby+/WhQghK6lRsmbrXSfTnEB/FzjCc0NDdLN8eHnH
 H0CNucFg48AqYETguWDaRTjWzgKFwPDHCI7PN/nngeO+ClPdGIMIrOInHdnopwYWf+6R
 oE/nAd914kisdpoPhP9/ZKswCLAcmvcozGoapyu7ENMb63XdepMS2nZU8uIurLr85/zg
 QUB4WVw1H6YC66rI+WojCN9WvGt8gONWsqMVdLF/8hy2/lfGsryPZyxuniGRtbOBdrOq
 fUEw==
X-Gm-Message-State: AOJu0YwRwLgGlmiVWPaL8yT70LHJ/jUAYYUrdhdW9RqubgxeK6WJBnDt
 hvSfBuZ70iVglpUgKMBA2T0kyIvJpskvJX7rLanVE3DCSmAlDQIC
X-Gm-Gg: ASbGncvmgX6RjouInndRHzps4Aku/PE04XvUeGfxaRgX0KKqHYZov9VCHFzR7WXSc9U
 kh7XaOGee+i0BfWMXbyyRzvJuFIZiV301lldKPC60CZfwBi2kbqy4ISx5iyYJsr752weXaKwEUh
 uwbniTDOvLeo8RBIzVDWUxpPpYFNKv17b8B2B+6SJ7e260eCQAzqaGsq486Tg72mWHRMaJohVYz
 GyFCc/x9vGToAIkNBj2fhn9z8ViiKvRvzdKNKoPL8s4/JRn62Iieo53ycemv/rNMf2cuyZkzcCp
 k/SsQ3uP4E9lbSfIFqQkfg==
X-Google-Smtp-Source: AGHT+IE0UprRXu1uvsagODE2q4xMPtNwNrdU2Wtina9eAYKqXpRETaUhqVokf5sqV9vEYsK+VfQOUQ==
X-Received: by 2002:a17:90b:2805:b0:2ee:7698:e565 with SMTP id
 98e67ed59e1d1-2f83abe2142mr11646366a91.8.1738269665399; 
 Thu, 30 Jan 2025 12:41:05 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 98e67ed59e1d1-2f83bfbfe19sm4358399a91.44.2025.01.30.12.41.03
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 30 Jan 2025 12:41:04 -0800 (PST)
Message-ID: <c8ae20a9-d4c1-4503-ad68-571be69e2401@HIDDEN>
Date: Thu, 30 Jan 2025 17:41:02 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> <86h65gjehv.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <86h65gjehv.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@HIDDEN, 75931 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

 > Please try the patch below.

Thanks, but the issue remains after applying the patch.





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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 19:20:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 14:20:10 2025
Received: from localhost ([127.0.0.1]:47852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tda5B-00086W-Gd
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 14:20:10 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:55180)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tda58-00085q-O1
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 14:20:07 -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 1tda53-0005Jd-9a; Thu, 30 Jan 2025 14:20:01 -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=27sK/KfAjbCI8xo9MUMX96t/ZYqjz/nVTQ5A3/OJG8c=; b=Btjvqgs/+v3o8Eg5e/eB
 Df0OCeNP5ZajpLZaeGbNLd7Aw6oPYxpi3wUohxu8c04+B5iPZ5qDceMY0EC33seAoDnGeZH+SM493
 9LJZj0s9sXBOzqmjLuHQzr5o0HEXXtOpLK7Az8vN5R92hbANqDlXgLdneWrpMWu7BxYoJam9535e/
 0lDp/gQuL9XClfRddLvUqJWRftO5vzZ1qbx0JXGcN5MAjt8WCdKzP/fHOXiz57j52FMdQ9f4grk2M
 AUjmz75p8oeFdL9U7ox5cecEvnazRnxvoOosAPUs4hpvp/B6kdIHKVIj2luXF4uRqEuTYfwffXjg8
 tWt6smZXR/2omg==;
Date: Thu, 30 Jan 2025 21:19:56 +0200
Message-Id: <86h65gjehv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN> (message from
 Mauro Aranda on Thu, 30 Jan 2025 09:33:37 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
 <939519e4-1f91-4700-8815-7d98ae805680@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: 75931
Cc: luangruo@HIDDEN, 75931 <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 (---)

> Date: Thu, 30 Jan 2025 09:33:37 -0300
> Cc: 75931 <at> debbugs.gnu.org, luangruo@HIDDEN
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> On 30/1/25 09:25, Eli Zaretskii wrote:
>  >>
>  >> I've no idea how to do that.  So, I did something silly:
>  >> In show_mouse_face, when draw is DRAW_MOUSE_FACE, I changed:
>  >> FRAME_OUTPUT_DATA (f)->hand_cursor
>  >> to:
>  >> FRAME_OUTPUT_DATA (f)->current_cursor
>  >
>  > That's what I had in mind, thanks.
> 
> Great!
> 
>  >> But I'm way out of my league here, so I don't know if the change is
>  >> correct, most probably not.  What seems correct is not specifying
>  >> hand_cursor, but rather find out which cursor do we need to draw when
>  >> redrawing it...
>  >
>  > That'd be the fallback plan, but it would require to refactor the code
>  > in note_mouse_highlight, and in particular move the code which
>  > determines the pointer shape into show_mouse_face (which will make it
>  > more expensive), and also other changes, since show_mouse_face is
>  > called from several places.  Let's hope this will not be necessary.
> 
> OK.  I'll keep my fingers crossed.

Please try the patch below.

diff --git a/src/xdisp.c b/src/xdisp.c
index a801caa..a047035 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1229,7 +1229,7 @@ #define face_after_it_pos(IT)  face_before_or_after_it_pos (IT, false)
 
 static void produce_special_glyphs (struct it *, enum display_element_type);
 static void pad_mode_line (struct it *, bool);
-static void show_mouse_face (Mouse_HLInfo *, enum draw_glyphs_face);
+static void show_mouse_face (Mouse_HLInfo *, enum draw_glyphs_face, bool);
 static bool coords_in_mouse_face_p (struct window *, int, int);
 static void reset_box_start_end_flags (struct it *);
 
@@ -15052,14 +15052,14 @@ handle_tab_bar_click (struct frame *f, int x, int y, bool down_p,
     {
       /* Show the clicked button in pressed state.  */
       if (!NILP (Vmouse_highlight))
-	show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN);
+	show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN, true);
       f->last_tab_bar_item = prop_idx; /* record the pressed tab */
     }
   else
     {
       /* Show item in released state.  */
       if (!NILP (Vmouse_highlight))
-	show_mouse_face (hlinfo, DRAW_IMAGE_RAISED);
+	show_mouse_face (hlinfo, DRAW_IMAGE_RAISED, true);
       f->last_tab_bar_item = -1;
     }
 
@@ -15157,7 +15157,7 @@ note_tab_bar_highlight (struct frame *f, int x, int y)
       hlinfo->mouse_face_face_id = TAB_BAR_FACE_ID;
 
       /* Display it as active.  */
-      show_mouse_face (hlinfo, draw);
+      show_mouse_face (hlinfo, draw, true);
     }
 
  set_help_echo:
@@ -16074,7 +16074,7 @@ handle_tool_bar_click_with_device (struct frame *f, int x, int y, bool down_p,
     {
       /* Show item in pressed state.  */
       if (!NILP (Vmouse_highlight))
-	show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN);
+	show_mouse_face (hlinfo, DRAW_IMAGE_SUNKEN, true);
       f->last_tool_bar_item = prop_idx;
     }
   else
@@ -16085,7 +16085,7 @@ handle_tool_bar_click_with_device (struct frame *f, int x, int y, bool down_p,
 
       /* Show item in released state.  */
       if (!NILP (Vmouse_highlight))
-	show_mouse_face (hlinfo, DRAW_IMAGE_RAISED);
+	show_mouse_face (hlinfo, DRAW_IMAGE_RAISED, true);
 
       key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY);
 
@@ -16181,7 +16181,7 @@ note_tool_bar_highlight (struct frame *f, int x, int y)
       hlinfo->mouse_face_face_id = TOOL_BAR_FACE_ID;
 
       /* Display it as active.  */
-      show_mouse_face (hlinfo, draw);
+      show_mouse_face (hlinfo, draw, true);
     }
 
  set_help_echo:
@@ -34196,12 +34196,13 @@ erase_phys_cursor (struct window *w)
   /* Since erasing the phys cursor will probably lead to corruption of
      the mouse face display if the glyph's pixel_width is not kept up
      to date with the :box property of the mouse face, just redraw the
-     mouse face.  */
+     mouse face, but leave the mouse cursor as it was.  */
   if (FRAME_WINDOW_P (WINDOW_XFRAME (w)) && mouse_face_here_p)
     {
       w->phys_cursor_on_p = false;
       w->phys_cursor_type = NO_CURSOR;
-      show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), DRAW_MOUSE_FACE);
+      show_mouse_face (MOUSE_HL_INFO (WINDOW_XFRAME (w)), DRAW_MOUSE_FACE,
+		       false);
       return;
     }
 #endif
@@ -34462,7 +34463,8 @@ draw_row_with_mouse_face (struct window *w, int start_x, struct glyph_row *row,
 /* Display the active region described by mouse_face_* according to DRAW.  */
 
 static void
-show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
+show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw,
+		 bool define_mouse_cursor)
 {
   /* Don't bother doing anything if the mouse-face window is not set
      up.  */
@@ -34604,7 +34606,7 @@ show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
 
 #ifdef HAVE_WINDOW_SYSTEM
   /* Change the mouse cursor.  */
-  if (FRAME_WINDOW_P (f) && NILP (track_mouse))
+  if (FRAME_WINDOW_P (f) && NILP (track_mouse) && define_mouse_cursor)
     {
       if (draw == DRAW_NORMAL_TEXT
 #ifndef HAVE_EXT_TOOL_BAR
@@ -34612,8 +34614,7 @@ show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
 #endif
 	  && !EQ (hlinfo->mouse_face_window, f->tab_bar_window))
 	FRAME_RIF (f)->define_frame_cursor (f, FRAME_OUTPUT_DATA (f)->text_cursor);
-      else
-      if (draw == DRAW_MOUSE_FACE)
+      else if (draw == DRAW_MOUSE_FACE)
 	FRAME_RIF (f)->define_frame_cursor (f, FRAME_OUTPUT_DATA (f)->hand_cursor);
       else
 	FRAME_RIF (f)->define_frame_cursor (f, FRAME_OUTPUT_DATA (f)->nontext_cursor);
@@ -34632,7 +34633,7 @@ clear_mouse_face (Mouse_HLInfo *hlinfo)
   bool cleared
     = !hlinfo->mouse_face_hidden && !NILP (hlinfo->mouse_face_window);
   if (cleared)
-    show_mouse_face (hlinfo, DRAW_NORMAL_TEXT);
+    show_mouse_face (hlinfo, DRAW_NORMAL_TEXT, true);
   hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1;
   hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1;
   hlinfo->mouse_face_window = Qnil;
@@ -35199,7 +35200,7 @@ mouse_face_from_buffer_pos (Lisp_Object window,
     = face_at_buffer_position (w, mouse_charpos, &ignore,
 			       mouse_charpos + 1,
                                !hlinfo->mouse_face_hidden, -1, 0);
-  show_mouse_face (hlinfo, DRAW_MOUSE_FACE);
+  show_mouse_face (hlinfo, DRAW_MOUSE_FACE, true);
 }
 
 /* The following function is not used anymore (replaced with
@@ -35909,7 +35910,7 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y,
 	    face_at_string_position (w, string, charpos, 0, &ignore,
 	                             glyph->face_id, true, 0);
 
-	  show_mouse_face (hlinfo, DRAW_MOUSE_FACE);
+	  show_mouse_face (hlinfo, DRAW_MOUSE_FACE, true);
 	  mouse_face_shown = true;
 
 	  if (NILP (pointer))
@@ -36448,7 +36449,7 @@ note_mouse_highlight (struct frame *f, int x, int y)
 	      hlinfo->mouse_face_face_id
 		= face_at_string_position (w, object, pos, 0, &ignore,
 		                           glyph->face_id, true, 0);
-	      show_mouse_face (hlinfo, DRAW_MOUSE_FACE);
+	      show_mouse_face (hlinfo, DRAW_MOUSE_FACE, true);
 	      cursor = No_Cursor;
 	    }
 	  else




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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 12:33:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 07:33:49 2025
Received: from localhost ([127.0.0.1]:44914 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdTjw-000168-Vn
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 07:33:49 -0500
Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:61480)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdTju-00015h-Nd
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 07:33:47 -0500
Received: by mail-pl1-x62d.google.com with SMTP id
 d9443c01a7336-2166022c5caso9461075ad.2
 for <75931 <at> debbugs.gnu.org>; Thu, 30 Jan 2025 04:33:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738240420; x=1738845220; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=IR+GkdFvux/+CbUZCsRz0oevXKnxhKTxS3qLR2bSTYA=;
 b=J3vqlE5POQ5QaVP4Oygb0RcW0TDDeM0LfDcl7qktV7L1W6bQJDRm5aqOY+5thUyRna
 ieYcRPu/crp4c8dGH0DUMh9GW9zN04b1aqCrG1t8GMpRMF2/QU4ij63Co3VkmcBY8doX
 hon9dNoMs3gPFlZCkN/v6HizoVVlyxMdToccWw1/zDjrFx6/uXFPaczB5w5nfOSGUHDR
 I8NcrnRs/jAaosZlsG2ycVZbC633tGeIWi9tSE0z//E+Tjv2mQYJxqBXSxUca/am6ycE
 vzVjkKLSxqsDmTYOl8Ugl9BSI7c0urAUphwXn4R9eBMcCm27IwGPT4DYzVvwNqeKDdwa
 lT5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738240420; x=1738845220;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=IR+GkdFvux/+CbUZCsRz0oevXKnxhKTxS3qLR2bSTYA=;
 b=FRPploldvNOOPqPOFuOcRbeZI9VB4DtlzpRc2lMrOQLfAQ0OV3v3sFXa5Z2cHgGTmJ
 27/W5YRE/r7G28LYhOuZee9uEkvHbA58U1SF3hRGsKyEYGXMLhZK7uvX62VQFOmBoCPO
 qiq5ksrT8rbrQ9VTssNeDinZGDGf18PoSmm7ZTZJT2YtkDFIPvqXJnGoE6hnybNnZ334
 hVZ/2eK8rzBNSMq9QKlFlCaqc/y+NcQI9lcqYroDSyB4qhyXnxn5812xjmhRR9eBC5hl
 f9vfE88+4PvmmKUHhAKblLIozx5F6qch+yWoeePB3d8chD+Y+HM3IdLTKNLjtI9OD1Mo
 wj1A==
X-Gm-Message-State: AOJu0YzUah5l9N/SZeCtHOvmX08GVvABaAvxA1yOCa8VmFaX8WBWJ1vu
 0+b/7heyO8AzulKVXFW3nNTEtt1xehLl3sdPg+1wt44NyZhC/GFc
X-Gm-Gg: ASbGnct3oMkFcU9bM46znGJOrJ3CT3bG0sFp7dq9fBqR62rZT6tiCcCFNm5W9xOVoI8
 NDIbZTX7A3sbbg/evz4XQi3waglXLOW5zal5lxWp2aI7VMra4h3We8bQfk8dVVN7HulTVvtqKqD
 6PWI8fEstJzBjrr13IYPlM86Xe7W2p4rxKO9eyyxICEU8xHpsu/hENocz1H0/n29e+A1Ti/RT7h
 W1l3yC9j61HD+tHGfaWNrwJWBr8FnSPzv/AgdMZZxvUH8VF0BqJrTPCyw5C4ZFa/J/AE3bLrNUG
 M7iW+6CI4LA9AasFDD986Q==
X-Google-Smtp-Source: AGHT+IGB1IzeehAcG1hJGMzahEzVdpkaL9udqJtxI2PUttnsRU90suf6+XvqUYVlRhFLH8zFhNr7yg==
X-Received: by 2002:a05:6a00:1412:b0:725:f153:22d5 with SMTP id
 d2e1a72fcca58-72fd0c623damr10040452b3a.18.1738240420285; 
 Thu, 30 Jan 2025 04:33:40 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-72fe69ba322sm1275416b3a.110.2025.01.30.04.33.38
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 30 Jan 2025 04:33:39 -0800 (PST)
Message-ID: <939519e4-1f91-4700-8815-7d98ae805680@HIDDEN>
Date: Thu, 30 Jan 2025 09:33:37 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> <86plk4jxp2.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <86plk4jxp2.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75931
Cc: luangruo@HIDDEN, 75931 <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 (-)

On 30/1/25 09:25, Eli Zaretskii wrote:
 >> Date: Thu, 30 Jan 2025 09:05:23 -0300
 >> Cc: 75931 <at> debbugs.gnu.org, Po Lu <luangruo@HIDDEN>
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>
 >> On 30/1/25 08:36, Eli Zaretskii wrote:
 >>  >> Perhaps it is the call to show_mouse_face that was added to
 >>  >> erase_phys_cursor.
 >>  >
 >>  > Yes, I think so.  If you arrange for that call to show_mouse_face to
 >>  > not redefine the mouse cursor near the end of show_mouse_face, does
 >>  > the problem go away? or do you still need to revert those two 
lines in
 >>  > dispnew.c added by my changes?
 >>
 >> I've no idea how to do that.  So, I did something silly:
 >> In show_mouse_face, when draw is DRAW_MOUSE_FACE, I changed:
 >> FRAME_OUTPUT_DATA (f)->hand_cursor
 >> to:
 >> FRAME_OUTPUT_DATA (f)->current_cursor
 >
 > That's what I had in mind, thanks.

Great!

 >> But I'm way out of my league here, so I don't know if the change is
 >> correct, most probably not.  What seems correct is not specifying
 >> hand_cursor, but rather find out which cursor do we need to draw when
 >> redrawing it...
 >
 > That'd be the fallback plan, but it would require to refactor the code
 > in note_mouse_highlight, and in particular move the code which
 > determines the pointer shape into show_mouse_face (which will make it
 > more expensive), and also other changes, since show_mouse_face is
 > called from several places.  Let's hope this will not be necessary.

OK.  I'll keep my fingers crossed.





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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 12:31:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 07:31:43 2025
Received: from localhost ([127.0.0.1]:44906 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdThv-00012A-KN
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 07:31:43 -0500
Received: from sonic305-21.consmr.mail.ne1.yahoo.com ([66.163.185.147]:38727)
 by debbugs.gnu.org with esmtps
 (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1tdTht-00011v-AJ
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 07:31:41 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1738240294; bh=PmOk7UjHaeMrN1giLOgyve8uesLMW7FfNBWOpUsgZDI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=sYBIA+qguQG6L5lMVdrP9vXT7P02OnLqkDxdJEOXkL+NK3HxoNdiik1oakz+Mj7WXBgDUWMv3mLIyL730UWMQrOXKe2WtcFqZOdssgyPoL/12Z5nKqVNVKN87ylmv436OiK+gn2CRmiGviUwsS+ajO12f7EDzYW2asScKbTamhlsrinwN865ZhY2gF59RaVeaPHlCLawG7tI83hPOb/1zNDMLxgne9srsnzu2E5JtHPYa9RfwSGtEK4ctZfvDehFnP8i6bXD7Z5Im+aNsO0Mc4i+bLh2XeFaRrEDhU3d4siGnUmoRN9MrrhiwcVYoZHjrO1M3cfjZo8T68BHD57pEA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1738240294; bh=LvOTPvkLvTu9mysS7AIAAQW2NDsmHgucqmd2t8NWWyV=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=K0uDQqATC3FPCNundkeryRgMabcPuqN787BX1BhaO2z55OwZoQHPVEQ6N8J6j1Jw78VGB+2ZCTt4DXz24llnT8tSbjkvWGPgI8CEt0Frk73JNXE39KuUg8IUCpnWYuyEE8n8eMJFDxlhrBlh5bSHU0OVnM+P/LpuEJLHVCqWY7OmxlhJ08YYvAD6IMD+VobJ97FaeKTZ33QxbYnTWTrYwoleZBwIIAKi4uvdUklolgSXbShpEurblOk4nDgLFsevykcf3tRUroNHH+AsmSkNzpdaLq92yMk1WPDv9a4zpq4IsMU/sZrXzDJT2qV5OE2UtsmSC+Gto5mlF5xCi2/pqg==
X-YMail-OSG: pS.cFB8VM1kYOMgKqhINBUMdgE7_zkTQNPaBhqgdzJ8yfEM9peJ9pOFob9wx8Xa
 eGvwH5D62PjcvFgXN7zW0MFguWlo2_5jNWSkvkF6Qg_MQOXxZKskru601X6uu1zUVCLKiM_qgtzm
 f.g0DB8F76gsAGjXiCjopP4AaheHt9ivC4i3X5sI7k1HB8qUVizHFH2ti0l5.WPuMz_v24Fju6sw
 uJMWSkWWDMB_nXeu2dTHpBXI4XxXfmd.M7iniLrTOxF6JmeNtPn8yrm9h7QM3dRonUX_yUFYNXm.
 Cl9dArp1qk12oc4PkJuussmvo2J36Gp_iG6BIEC6SJ0h6ze66_Drr1E7f8GSDGrPrJ0j0b1uYMQ0
 6YmAsvJYfu4Uw2KA3qUjaXidkiyocxbvnw0PYpWcVJVZEkyU_zxysoM4Hza01HeYCXWnKwYkpvVT
 5FQer3wzaiugyPXHbLGt1UjxC1BhY0cFQ3Pk2KItaht7Al9vKFuEYje0mNGQZu0ldDIdHDVuPlCo
 blRnba09h7uxGUTfMkT08NuWfvTSahFTaKkoqlPJOSMJv6xyektxUFC.S.UfugdOQ8S4WjDDvWHX
 d3Wv3wpjtCFnbk9KPIdzWrXjBPj8PvtHQl4Tt18JCksMeAQMpM_pcAMdhS0cA0PG2lcWDBCRrNA_
 Ig4fZG82sEJfn.KXbocuY6oF9IQo.Hau3SalEheZNZOdkyoY1z1S6cVbX.5YPY0CMzF4ci5jGQRd
 uYkw1dMksm1vkI2.QCEsguqIt9LbDslyMNPoJ5MfEo24R2uywOG8uWQ4azhufuLseQUwiwWEdLJg
 w7Xs1n_QU2psmSX5ea_y3wixgcSHB3e5Dz.Nv5vCAnft.S0VE9EmzkLzCz2wb5jABdWrzK9iVvtf
 HA1et..X6cRd66vSgYX5RS0bfJ2Qe368Al4PYVmbSza5v997fEo5OFaW3lOhSVzAyfneuiEsN8Fr
 ZT8wwwK_3Vfz36l6LTIWdIzaeUXaDNU0U6Itx_oibJuwt.a4rqUsl__HaIJr7ARwkIoKlGlW.aD_
 dBUDiXe5Xl_XAIqVfK6rDZqZywjFOEueeUhcKNK3LjP8Gp3v6Zt6C8VuPq4SUKnCZeNgFCVwUlch
 n70f9xxFaMKn9QvvOgle03skLBxM4mN6l7s_Gbic5eiqlK7grYI_NhDAfCyumAMgkWyCdyq4RFs4
 wemv_qgnzZ4RZKe4KLuJHSjJ5JoTdDJp1Rj87KB52qFRHDGYciUMrcZg3KTV_I_VORVdDQwNAEs6
 B5hsOSuYN4QRcD_YD.OQ4d9pWd3piwpUiUJmqxDSgA61AvOraj4hmSucIG_D3nGl1Ysuq6fUnRwk
 DlQrMGmM6f6WyXoumaYKaAyjqBQ9JUsdq9VFn3L2qJRb0nE7XDjHAOrKBcrrhacE6qC6bkwdwrMg
 cou.sWFsrPo32olJin7fdOFkpauq_gRCSR3.xXw37JJBHKScefkMe.I7I.73LDkuZc3g3kAyd2XE
 r6l0vO7wfGHGH8B.lR9EH2g0DBpRaA8.kdHXX9HuVVhtVW1HOaP3k9tnpOkZCwlOnIxlvChbYx8D
 fgXZNKVq1FC7tw59M0jrx4LcPJ6RnKcmabd1zDoBcCmJNu5sd2GTLW36HWa_DI67ReAwyV.4nzkH
 uqMj1lIjuyfjE4cm4ASy7cA4pW48a.YzigF1OZtApzpg0d_l_CzIUIfH4gzmUTmnDLdXotRR_gRv
 URQOzmqfiXmuz5miBoztB9PuauS7SaErwBKNQpNbT90YIU4R75ISHqiwn4SCSZvDFKTaSyPBZTv7
 KPN28l7IipQuB0w8bQzNLbey7tTpvIrQAwv3pZ2SY7eIjUpMymbw3smbMRIhtx9YSQS_COAjZQZc
 YoVYGznPWAKkFsbRnoiIfigbHHW1ZoCQHorDOhAnhD0uq2IM.tQsVha9yVlnCPI.P1sx4YRh_yzc
 aHl5HsoG0myGWEoCsCUS0A5.AiWWtszcf0u8nxM.wxO4DlzDnCY2zHBjzTuDV2NL7qiWNB27I7qh
 Urlyw4MxnOofUlmmKkvWjxkPy48G2CuXaqU.PGpQgp29LIVypJcF1v885trkfaY8MPehDmcsTrR8
 RnJuhSPiGr8Gdx9IdzO7wz4wdYbVBcBuVAiet0see0NWfFDUVOBzs1AdnCxKJyQzLi9TM7XEzGAZ
 lM8sEbnGt2eu5pbuxnTl893WEAh4cSuqbOebb7.TFj_jYC5Z6pIg5qZS5V7lJ9b.R9P1_ly6DSI7
 dkRL1pxDr.4oAClvKX3I3E_SLp3Lrw4xVB0tjYa7nRyIIFNC6k0eZCxoWwfVi
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 4e8947ba-1dbb-47e5-9563-d0e7549fc844
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic305.consmr.mail.ne1.yahoo.com with HTTP; Thu, 30 Jan 2025 12:31:34 +0000
Received: by hermes--production-sg3-5b7954b588-7n7t7 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 837e9e8042bea3a84ed7b52a2c95e61b; 
 Thu, 30 Jan 2025 12:31:28 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
In-Reply-To: <8634h0lei6.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 30 Jan
 2025 13:36:49 +0200")
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN>
 <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN>
 <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN>
 <8634h0lei6.fsf@HIDDEN>
Date: Thu, 30 Jan 2025 20:31:22 +0800
Message-ID: <87y0ysmqjp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.23187
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 132
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75931
Cc: Mauro Aranda <maurooaranda@HIDDEN>, 75931 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Po Lu, do you see any reason to recompute the mouse cursor in that
> case?

No, not at all.




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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 12:25:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 07:25:24 2025
Received: from localhost ([127.0.0.1]:44868 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdTbo-00068H-Ca
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 07:25:24 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38138)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tdTbm-00067d-Cr
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 07:25:22 -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 1tdTbh-0001Xt-0I; Thu, 30 Jan 2025 07:25:17 -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=4tFqCj++Z0xvLYC5JuRxCv0JgT1LDXVWXeGyNXjdmgs=; b=djafzC0jFqhle8Y48aNP
 +9+0aGNVwzOaMW2c4thRqL7+3HL5pbL6UDT3l4IYW/zABqvMZnjoENlT/kvMueGLPvKIhfoMSjC32
 n9EWMgAWm98u7n9D2sAaX7aFhcRJL1yHsR9P0YQXUU4py7oljXgtYQyRxjskeO1tTyc1by8i2xykD
 a32DykSKuUq0VeJanI2vtkSYRGUS3cBDjnnnFRJGj9KQLtqr0B86iDzgEocY004cNkgNXdRkKPXJa
 hN4iCEgdVeUZaiXxyNEEa2ulTeLx1U3MfvempmR2woQGf/L77eLr/EKxWkkEqgxetZfe9mgCwOJRn
 9LdlYxH37gEjHg==;
Date: Thu, 30 Jan 2025 14:25:13 +0200
Message-Id: <86plk4jxp2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN> (message from
 Mauro Aranda on Thu, 30 Jan 2025 09:05:23 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
 <51108209-a6d0-46b5-8009-42f0e86c9b80@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: 75931
Cc: luangruo@HIDDEN, 75931 <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 (---)

> Date: Thu, 30 Jan 2025 09:05:23 -0300
> Cc: 75931 <at> debbugs.gnu.org, Po Lu <luangruo@HIDDEN>
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> On 30/1/25 08:36, Eli Zaretskii wrote:
>  >> Perhaps it is the call to show_mouse_face that was added to
>  >> erase_phys_cursor.
>  >
>  > Yes, I think so.  If you arrange for that call to show_mouse_face to
>  > not redefine the mouse cursor near the end of show_mouse_face, does
>  > the problem go away? or do you still need to revert those two lines in
>  > dispnew.c added by my changes?
> 
> I've no idea how to do that.  So, I did something silly:
> In show_mouse_face, when draw is DRAW_MOUSE_FACE, I changed:
> FRAME_OUTPUT_DATA (f)->hand_cursor
> to:
> FRAME_OUTPUT_DATA (f)->current_cursor

That's what I had in mind, thanks.

> With that change, I don't need to revert the changes in dispnew.c.

Good, so we now need to arrange that this particular call to
show_mouse_face doesn't touch the mouse cursor shape.  Let's see what
Po Lu says about that.  If he agrees that there's no need to redefine
the cursor in this particular call of show_mouse_face, the technical
solution is simple.

> But I'm way out of my league here, so I don't know if the change is
> correct, most probably not.  What seems correct is not specifying
> hand_cursor, but rather find out which cursor do we need to draw when
> redrawing it...

That'd be the fallback plan, but it would require to refactor the code
in note_mouse_highlight, and in particular move the code which
determines the pointer shape into show_mouse_face (which will make it
more expensive), and also other changes, since show_mouse_face is
called from several places.  Let's hope this will not be necessary.




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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 12:05:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 07:05:36 2025
Received: from localhost ([127.0.0.1]:44806 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdTId-00056R-Op
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 07:05:36 -0500
Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:41984)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdTIb-000568-Hc
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 07:05:34 -0500
Received: by mail-pj1-x102c.google.com with SMTP id
 98e67ed59e1d1-2ef714374c0so932197a91.0
 for <75931 <at> debbugs.gnu.org>; Thu, 30 Jan 2025 04:05:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738238727; x=1738843527; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=F7oCEGW0ps3rNXht9DALiohqWecyrNMSI5YnaND+pWk=;
 b=FfhlhmwQUrO2tkWkwtcHOEXCaoXqqiE1NY3gUo4U13J4pE5Jzhrk36xVM0xxLjBBNo
 knxLoae+djXy/BarVel51Do1IB1nOVzBcZ7EDgPTzqoyib2xNoGgneAaGeg8TjZn+s8K
 hB1tVbi1gAK78eVJInCMVRNooktaVusQZEovjbaKCWJ0rlipFdMU0qcSnrc7NbdLWJkN
 EF6iK5w8VsAVd67Sfhfg/+bz52r7Yld7XnBNTM8k5p/cWgr0JWhmmpbsg3YRx6pLuf7v
 Hrz5XLSQl0tFG4RcDbSoaKOElLtViFHFwiHzrIIb0ezWSGrzFGjpVOeCEFCUHWv78dy/
 /GQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738238727; x=1738843527;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=F7oCEGW0ps3rNXht9DALiohqWecyrNMSI5YnaND+pWk=;
 b=WnmkI8mdMzUBdm/m1QuRHkr/XrDDGOIDNniHmpzIFI3F7oG6Ui7MBBAoDZbTGHR4k1
 DaEZJxJ87AXGsU/OKVtTbIZIgmrE1T0/SjiELpdj9ihMpbZOOMH1UFq65ynmaUGQw7dR
 C+Pa99lNt6vdbM5wLN7a2qSwEfyHgQAp1n6nu8s5nPz/WZNOF4zoopmWk7Hq2r4631ed
 HBmn3gZpBT738CgU0p5D6kD4vujkUSfoISF4iXGts7m6U0B6oU8By4EFIsSKUHe3BJ0Z
 tnWOmPTxnFjcEm2kXBCb14CQHphz3YlOdA6ijlhqsQzzGuLRmjxnCEr9s72o2p6hy+VM
 AO/w==
X-Gm-Message-State: AOJu0YxfFuqeMOiwP4xnifevNw8W/g+ZnOd9hNk/QejBXh6auzn62SXp
 lBZVWx4MYxliFLFNQUNe4Y6lP5iWomew42xpi2XOkgxH8oUSungw
X-Gm-Gg: ASbGnct+8ZYIIu5CjCHHRzMSSN+kc/ex/ZBQKn4nFiY+Si5vCm5W9ROfsr9MZ9GKG0y
 vYW37CGdHPFSXYlxfMQ5nYRDhyYPlSDIQ88r752RwqBDiPdSXSjVxMveyP5xfHja6wpbGjJmqbm
 LuJNPXlDlOyDfFXRkF9lUzj9emeFV69H2GtCx/CDgB5NuMCKL1Cdekc5BrSNExDWeHDzGtmzGjJ
 sTDC+bpaPY10PaMjUlNQlU4Gxy5ic83dWd23oNZj4SFh0+d82uowR/Sp8K2nEQhV2pztShGCBx7
 oQp1Sjz/VzfVBymio/IxcA==
X-Google-Smtp-Source: AGHT+IFakHBquI03KAvtbrocyqPVj3Tq3mBtec9Nhs1p3EgTmMlFYVfUHD/yycnfwkBbph84XX703g==
X-Received: by 2002:a17:90b:1f90:b0:2ef:949c:6f6b with SMTP id
 98e67ed59e1d1-2f84645790emr4862184a91.13.1738238727292; 
 Thu, 30 Jan 2025 04:05:27 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 98e67ed59e1d1-2f83bd0ce4dsm3749935a91.27.2025.01.30.04.05.25
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 30 Jan 2025 04:05:26 -0800 (PST)
Message-ID: <51108209-a6d0-46b5-8009-42f0e86c9b80@HIDDEN>
Date: Thu, 30 Jan 2025 09:05:23 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> <8634h0lei6.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <8634h0lei6.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75931
Cc: Po Lu <luangruo@HIDDEN>, 75931 <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 (-)

On 30/1/25 08:36, Eli Zaretskii wrote:
 >> Date: Thu, 30 Jan 2025 06:57:32 -0300
 >> Cc: 75931 <at> debbugs.gnu.org
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>
 >> Now, if I go back to your commit, then commenting out that change in
 >> dispnew.c does indeed solve the problem.  But the next commit to xdisp.c
 >> is this:
 >> commit 2028df7826bb2c2909b2aaeba47282ca70c514e3
 >> Author: Po Lu <luangruo@HIDDEN>
 >> Date:   Thu Oct 14 18:38:26 2021 +0800
 >>
 >>      Fix minor issues with text display when cursor is in mouse face
 >>
 >>       * src/xdisp.c (get_cursor_offset_for_mouse_face): Don't calculate
 >>      offsets for the glyph the cursor is on, and move some logic to
 >>      get_glyph_pixel_width_delta_for_mouse_face.
 >>      (fill_composite_glyph_string)
 >>      (fill_gstring_glyph_string)
 >>      (fill_glyphless_glyph_string)
 >>      (fill_glyph_string)
 >>      (fill_image_glyph_string)
 >>      (fill_xwidget_glyph_string)
 >>      (fill_stretch_glyph_string): Set s->face to mouse face whenever
 >>      appropriate.
 >>      (get_glyph_pixel_width_delta_for_mouse_face): New function.
 >>      (set_glyph_string_background_width): Update background width and
 >>      s->width to take into account differing :box properties of the 
mouse
 >>      face, when producing strings for the cursor.
 >>      (erase_phys_cursor): Redraw mouse face when erasing a cursor on 
top of
 >>      the mouse face.
 >>       * src/xterm.c (x_set_mouse_face_gc): Stop setting s->face when 
under
 >>      mouse face because redisplay now does that for us.
 >>       * src/w32term.c (w32_set_mouse_face_gc): Likewise.
 >>
 >> And that commit makes the issue reappear.  And as I said, now reverting
 >> the change in dispnew.c only solves half the problem.
 >>
 >> Perhaps it is the call to show_mouse_face that was added to
 >> erase_phys_cursor.
 >
 > Yes, I think so.  If you arrange for that call to show_mouse_face to
 > not redefine the mouse cursor near the end of show_mouse_face, does
 > the problem go away? or do you still need to revert those two lines in
 > dispnew.c added by my changes?

I've no idea how to do that.  So, I did something silly:
In show_mouse_face, when draw is DRAW_MOUSE_FACE, I changed:
FRAME_OUTPUT_DATA (f)->hand_cursor
to:
FRAME_OUTPUT_DATA (f)->current_cursor

With that change, I don't need to revert the changes in dispnew.c.

But I'm way out of my league here, so I don't know if the change is
correct, most probably not.  What seems correct is not specifying
hand_cursor, but rather find out which cursor do we need to draw when
redrawing it...

With the change I did, specifying pointer to hourglass (for example),
works.  And not specifying it, shows the hand pointer, as it should.







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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 11:37:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 06:37:04 2025
Received: from localhost ([127.0.0.1]:44700 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdSr1-0003cA-N2
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 06:37:04 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50206)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tdSqx-0003bZ-WE
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 06:37:01 -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 1tdSqs-00035d-EV; Thu, 30 Jan 2025 06:36:54 -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=k2w9zIexvD+PqdH4wbqbgy4savh2ehIXk1Ao0ouEkpc=; b=pkUdZmjQxY+wFvG7mQwe
 Lkx3dge2G/Wz/muq0z9CJmhZOTvcthBCQsgmGzXziZeJ6PxwY3PzL2cQIirRH8TQxefvGZqUxCN7f
 IXIlpqJaq6f+S8R6y+Qc6wgrWk86gkvgwt7s2aYGDuQnkeHLNEStcyVzOzp9pRwP3K2RMo9+r5JyN
 9A58jGpWp/jhJApm9YK6tcKlXypBgu7eAIYIwyorI96GYmVtYtJHhe8GLez45kx33RJCD4gP8994d
 U2ZAF/OJNf17hM8LCqzILO5iIJ7hnfiT9WhzFG6EaZ7eie7X6waWutQDJ33mNRDhLqVGUEfufpGSc
 1u++uogA5/+uSg==;
Date: Thu, 30 Jan 2025 13:36:49 +0200
Message-Id: <8634h0lei6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>, Po Lu <luangruo@HIDDEN>
In-Reply-To: <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN> (message from
 Mauro Aranda on Thu, 30 Jan 2025 06:57:32 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
 <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@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: 75931
Cc: 75931 <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 (---)

> Date: Thu, 30 Jan 2025 06:57:32 -0300
> Cc: 75931 <at> debbugs.gnu.org
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> Now, if I go back to your commit, then commenting out that change in
> dispnew.c does indeed solve the problem.  But the next commit to xdisp.c
> is this:
> commit 2028df7826bb2c2909b2aaeba47282ca70c514e3
> Author: Po Lu <luangruo@HIDDEN>
> Date:   Thu Oct 14 18:38:26 2021 +0800
> 
>      Fix minor issues with text display when cursor is in mouse face
> 
>       * src/xdisp.c (get_cursor_offset_for_mouse_face): Don't calculate
>      offsets for the glyph the cursor is on, and move some logic to
>      get_glyph_pixel_width_delta_for_mouse_face.
>      (fill_composite_glyph_string)
>      (fill_gstring_glyph_string)
>      (fill_glyphless_glyph_string)
>      (fill_glyph_string)
>      (fill_image_glyph_string)
>      (fill_xwidget_glyph_string)
>      (fill_stretch_glyph_string): Set s->face to mouse face whenever
>      appropriate.
>      (get_glyph_pixel_width_delta_for_mouse_face): New function.
>      (set_glyph_string_background_width): Update background width and
>      s->width to take into account differing :box properties of the mouse
>      face, when producing strings for the cursor.
>      (erase_phys_cursor): Redraw mouse face when erasing a cursor on top of
>      the mouse face.
>       * src/xterm.c (x_set_mouse_face_gc): Stop setting s->face when under
>      mouse face because redisplay now does that for us.
>       * src/w32term.c (w32_set_mouse_face_gc): Likewise.
> 
> And that commit makes the issue reappear.  And as I said, now reverting
> the change in dispnew.c only solves half the problem.
> 
> Perhaps it is the call to show_mouse_face that was added to
> erase_phys_cursor.

Yes, I think so.  If you arrange for that call to show_mouse_face to
not redefine the mouse cursor near the end of show_mouse_face, does
the problem go away? or do you still need to revert those two lines in
dispnew.c added by my changes?

Po Lu, do you see any reason to recompute the mouse cursor in that
case?




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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 09:57:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 04:57:50 2025
Received: from localhost ([127.0.0.1]:44453 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdRJ0-0006xg-6Z
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 04:57:50 -0500
Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:46080)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdRIs-0006xJ-LA
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 04:57:47 -0500
Received: by mail-pl1-x629.google.com with SMTP id
 d9443c01a7336-219f8263ae0so9831515ad.0
 for <75931 <at> debbugs.gnu.org>; Thu, 30 Jan 2025 01:57:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738231056; x=1738835856; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=5Dsa51oSEgqbgx0oNUvdvr1GVdOzXEAnWX5YrJKLDYs=;
 b=jhhKgLPuWfbqNUjRlIXPkLP/sMLcCeg0IvA/GwBIk/w/DstD0eZTRUAsECPwUyeus9
 edSKI2i5T+vxrIIAr9oD7+L2rn14XfGdGh5B7Ctq0rHJtHO6KL3uyeTTViPakrOwQNYh
 YQwMXsRc9uu6qmr60eb38bW4gj3zFdBWpqWvQ8gDyvS8KN452c4firelYzH4tN/OZKFS
 cHmChRV3NLJiH8Wm54TSqB73T75XuHbyphdpg/9RjCi1arH17+xMT2VlLtCC0BIrcjra
 wN1GzP6bjqdMlU4DvpkoW2nqIEWzI2HOnKVgcaf7Qi2yS+qDyXoVq0ACDLPmln3Y4jEE
 zfIw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738231056; x=1738835856;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=5Dsa51oSEgqbgx0oNUvdvr1GVdOzXEAnWX5YrJKLDYs=;
 b=kokjcjeHmuR2f/8U8cqh0p+4KCUnUshs+VGHMpm0VWJMp+lRzKl4Ypqi0+b5UcUjYq
 hEUmI283D/ihtcpdRdSSJttI23LZbaZzcpCGbz/1rJF4sMXR56S+MmuP23g+s7FDzbtO
 WXoQF+62e1cbo6/3ukUr2lvjUE9idVzPphZTq6gHJZfg6AKJvxzum/Wt92oz5YxsiD6M
 AiZG187N0QNRoCJCo77JTZq47BRNNNWLPHQvwpb3JCmvoZLRTMABpjfXFAtG1fNqE3D2
 ER9U7PFNuLtmCKDsWeDT4BefVmVgjUFk/w5LMbD8T/9UtahI8AraDAH7DLwkzVwKh2W+
 N/Cw==
X-Gm-Message-State: AOJu0YwqujI1J9PMxPX/7D40Haz7oGrZP8Il3vKgsYVljIGiF4wGpLgH
 VGGWdPJe9OwIY/Pr6G4va9qT3Qgwoegv6jIYkl1olK6uk9Z4cCmT
X-Gm-Gg: ASbGncv8g9ItJKrOLcAR5rpf9hoG6qnBluIjK/8x7g2rqCAv5SXNC/xi6D6jUFJrxu1
 oH0r46LOWra70kJkeXPl4dhM5c19CEMKPuhi6kFK0fxWI9sWD3IMC3cL15GlL/0Xk26CMSVJ3xS
 xP1Dl00DSCp1c3nEQCB74bBswMg1wuvVQBesbD8X6OouGuSit49Zb6m9mpcYtE2AKbf6eaW+3b/
 ORDIG0XE4E5Aj6dey7MuQI5/ve3wrVN8PH8b+pL4+kiEk7xQXfDrxWBmRyK0xQyvEwjXeWqEmTh
 +5Xslh9rq248Wkgkiy0VOw==
X-Google-Smtp-Source: AGHT+IGktgHWogwaCeWR7xoT9TFY43uqAHgVmYyZAQXU3Ya+hk1oWLoH7e1bnI6wItQ8JEQab5XlMQ==
X-Received: by 2002:a17:902:eccc:b0:215:5bd8:9f7b with SMTP id
 d9443c01a7336-21dd7c658c3mr97728075ad.15.1738231056381; 
 Thu, 30 Jan 2025 01:57:36 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-21de31ee19esm10235795ad.7.2025.01.30.01.57.34
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 30 Jan 2025 01:57:35 -0800 (PST)
Message-ID: <bfe8bc93-2771-43a1-a5c6-599f4b5aa6d8@HIDDEN>
Date: Thu, 30 Jan 2025 06:57:32 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> <86v7twlskf.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <86v7twlskf.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75931
Cc: 75931 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

 >> Date: Wed, 29 Jan 2025 20:30:05 -0300
 >> Cc: 75931 <at> debbugs.gnu.org
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>
 >> On 29/1/25 16:11, Eli Zaretskii wrote:
 >>  >> Date: Wed, 29 Jan 2025 15:27:24 -0300
 >>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >>  >> Cc: Eli Zaretskii <eliz@HIDDEN>
 >>  >>
 >>  >> I bisected it down to this commit:
 >>  >>
 >>  >> commit 64f9fdc812bb2e1f533ae294355d33396985e469
 >>  >> Author: Eli Zaretskii <eliz@HIDDEN>
 >>  >> Date:   Thu Oct 14 11:57:07 2021 +0300
 >>  >>
 >>  >>      Fix display of cursor in mouse-highlighted face with ':box'
 >>  >>
 >>  >>      * src/xdisp.c (erase_phys_cursor, show_mouse_face): Adjust
 >>  >>      phys_cursor.x as needed if the cursor is inside 
mouse-highlight.
 >>  >>      (get_cursor_offset_for_mouse_face): New function.
 >>  >>      * src/dispnew.c (gui_update_window_end): Set
 >>  >>      'mouse_face_overwritten_p' if the cursor is in mouse-face, to
 >>  >>      trigger more thorough redisplay of the cursor.
 >>  >>      (Bug#50660)
 >>  >
 >>  > Thanks, but it would still be good to know which code changes the
 >>  > mouse pointer to hand.  In the above patch, the only part that could
 >>  > perhaps cause that is the first hunk, in dispnew.c, but I don't 
see an
 >>  > immediate connection, especially since the answer is probably
 >>  > somewhere in X-specific code (xterm.c etc.).
 >>
 >> I'll keep digging.
 >
 > Thanks.  Can you verify that reverting the first hunk of that
 > changeset (2 added lines in dispnew.c:gui_update_window_end) solves
 > the problem?  If not, then I'm afraid I'm on the wrong track and don't
 > understand how the rest of that changeset could cause this regression.

Reverting that hunk on master doesn't solve it, but has a minor effect:
Previously, the back and forth change between hand and arrow happens
when showing the cursor and when hidding it.  If I revert the hunk, it
only happens when hidding it, so it solves half the problem.

Now, if I go back to your commit, then commenting out that change in
dispnew.c does indeed solve the problem.  But the next commit to xdisp.c
is this:
commit 2028df7826bb2c2909b2aaeba47282ca70c514e3
Author: Po Lu <luangruo@HIDDEN>
Date:   Thu Oct 14 18:38:26 2021 +0800

     Fix minor issues with text display when cursor is in mouse face

      * src/xdisp.c (get_cursor_offset_for_mouse_face): Don't calculate
     offsets for the glyph the cursor is on, and move some logic to
     get_glyph_pixel_width_delta_for_mouse_face.
     (fill_composite_glyph_string)
     (fill_gstring_glyph_string)
     (fill_glyphless_glyph_string)
     (fill_glyph_string)
     (fill_image_glyph_string)
     (fill_xwidget_glyph_string)
     (fill_stretch_glyph_string): Set s->face to mouse face whenever
     appropriate.
     (get_glyph_pixel_width_delta_for_mouse_face): New function.
     (set_glyph_string_background_width): Update background width and
     s->width to take into account differing :box properties of the mouse
     face, when producing strings for the cursor.
     (erase_phys_cursor): Redraw mouse face when erasing a cursor on top of
     the mouse face.
      * src/xterm.c (x_set_mouse_face_gc): Stop setting s->face when under
     mouse face because redisplay now does that for us.
      * src/w32term.c (w32_set_mouse_face_gc): Likewise.

And that commit makes the issue reappear.  And as I said, now reverting
the change in dispnew.c only solves half the problem.

Perhaps it is the call to show_mouse_face that was added to
erase_phys_cursor.

 > (I wouldn't be asking these questions if I could reproduce the problem
 > on my machine, but I cannot, unfortunately.)

That's OK.  I just hope I can help you figure it out, I doubt I could do
it on my own.




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

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


Received: (at 75931) by debbugs.gnu.org; 30 Jan 2025 06:33:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 01:33:18 2025
Received: from localhost ([127.0.0.1]:43978 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdO74-0002MN-2s
	for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 01:33:18 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50708)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tdO6z-0002Lz-Bo
 for 75931 <at> debbugs.gnu.org; Thu, 30 Jan 2025 01:33:16 -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 1tdO6t-0005LV-CI; Thu, 30 Jan 2025 01:33:07 -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=OUYPK5gI+tbtEri58xG83yvWUoc4ILhOwxVP3yhafcE=; b=WVJQFjjAXb2dksBuGqJI
 28eDdHLhE8bt4ld5+w+sgXZnv7HA/OQJkGCyqFRS6DgvmrDDXj8apYGKEThAU88nBe2HK+c1gFS8u
 cH7KSBTzsFVp4ivDy8jipkuuPHxxGULMmD8fLfUb4QRvFlXYeVKm2k7xekW4fpIQJdM2ek6kVlMoE
 +sR8S4ayc/UuXB52ZLsl3Eqo/L0UEaf0z+3/aJHYpTcY3lvPzWwMCk8+CmUn2o0PJqu3MWxOjh7KE
 bNPz1w59cEUJfKCgjctCVFxRLw4ViKezohfz/w9EtJ8M7PSc4/EfqGaSUSqM0NtwvxTHhjmhtRu5G
 fLpnu+xwj6NPCw==;
Date: Thu, 30 Jan 2025 08:33:04 +0200
Message-Id: <86v7twlskf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN> (message from
 Mauro Aranda on Wed, 29 Jan 2025 20:30:05 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@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: 75931
Cc: 75931 <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 (---)

> Date: Wed, 29 Jan 2025 20:30:05 -0300
> Cc: 75931 <at> debbugs.gnu.org
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
> On 29/1/25 16:11, Eli Zaretskii wrote:
>  >> Date: Wed, 29 Jan 2025 15:27:24 -0300
>  >> From: Mauro Aranda <maurooaranda@HIDDEN>
>  >> Cc: Eli Zaretskii <eliz@HIDDEN>
>  >>
>  >> I bisected it down to this commit:
>  >>
>  >> commit 64f9fdc812bb2e1f533ae294355d33396985e469
>  >> Author: Eli Zaretskii <eliz@HIDDEN>
>  >> Date:   Thu Oct 14 11:57:07 2021 +0300
>  >>
>  >>      Fix display of cursor in mouse-highlighted face with ':box'
>  >>
>  >>      * src/xdisp.c (erase_phys_cursor, show_mouse_face): Adjust
>  >>      phys_cursor.x as needed if the cursor is inside mouse-highlight.
>  >>      (get_cursor_offset_for_mouse_face): New function.
>  >>      * src/dispnew.c (gui_update_window_end): Set
>  >>      'mouse_face_overwritten_p' if the cursor is in mouse-face, to
>  >>      trigger more thorough redisplay of the cursor.
>  >>      (Bug#50660)
>  >
>  > Thanks, but it would still be good to know which code changes the
>  > mouse pointer to hand.  In the above patch, the only part that could
>  > perhaps cause that is the first hunk, in dispnew.c, but I don't see an
>  > immediate connection, especially since the answer is probably
>  > somewhere in X-specific code (xterm.c etc.).
> 
> I'll keep digging.

Thanks.  Can you verify that reverting the first hunk of that
changeset (2 added lines in dispnew.c:gui_update_window_end) solves
the problem?  If not, then I'm afraid I'm on the wrong track and don't
understand how the rest of that changeset could cause this regression.

(I wouldn't be asking these questions if I could reproduce the problem
on my machine, but I cannot, unfortunately.)




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

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


Received: (at 75931) by debbugs.gnu.org; 29 Jan 2025 23:33:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 29 18:33:15 2025
Received: from localhost ([127.0.0.1]:43429 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdHYY-0003gc-UN
	for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 18:33:15 -0500
Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:60587)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdHYW-0003gN-Hi
 for 75931 <at> debbugs.gnu.org; Wed, 29 Jan 2025 18:33:13 -0500
Received: by mail-pj1-x102e.google.com with SMTP id
 98e67ed59e1d1-2f4448bf96fso229902a91.0
 for <75931 <at> debbugs.gnu.org>; Wed, 29 Jan 2025 15:33:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738193586; x=1738798386; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=sM07fA63Ft/UNq9dmLbzxsXBCCKvuKXEopHJVFrMm/I=;
 b=hDXH4WCry8hoa+gDXipnciG3gbuNvoZOxrvmnSCjOqsyTUQL1ZFngvfdZtBKvc7mbB
 nK1uh1frFPUGZ2BQuHYyEP/PxgxkTi0qak4NqXCiT6pbACxK3SXCpXy47m4L/QkZ/DCn
 Fi7w6/uilr2jy4Mt/Ji+/SV9USQDvsY2iGrXu2vpGqjnqZVBX3uOF/EHX18aaMA7VvJG
 K4wJiZSJnfAkDVg9HZu2ykvqO3qrh7IqUYDRLJIEqqkEpqzySZYs1UpZI+xRH9yiybPj
 T0MBu6iaUJiRzMbdKbfWp2c3tE80jnE/ikQ67SCDR3H1dB3ayzK8ESDezivV+Fuawvfw
 1wbQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738193586; x=1738798386;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=sM07fA63Ft/UNq9dmLbzxsXBCCKvuKXEopHJVFrMm/I=;
 b=jSfQE8T1z1ippwOZpXL23rZ3SUMx4lrs0f0XjeduYLKUcqsK9wThhleQ3HRXzFrjlS
 LX62pLPHQ5t7wH7MIwc74tm3yBy0kACMHFYBxB90fjioxhDxW3dWWNFPpRNeHvuhKQeW
 wVT6LraVmOqZOTq1e1RJL2iSm1ggE5sajYmN2F23lgPYRTMJcrFDDB5iY4fWyKloFZbT
 XO/8F5gC8HvfZ0307btS1bleWDXcDp4phjny+5DwTWKB4XG9jhjvYjLKtYmDPEz6d0ud
 49MUa7SxLeKrTErj4DBVA3lhx31oFpbF3eSz+4Oug7QC4FVKxF+yV2ak8qclcHpaccAO
 NqIg==
X-Gm-Message-State: AOJu0YzYF7ZbyHGYmYOoIZzWfIpg/ksoUGKk3RRqUDZCWAbkPz8HLon8
 Ih0ohqnnnPEcqmUo1NC1hsIMlk4aqrLwLYzKvU0bftqdP69ZNGG86l0NKg==
X-Gm-Gg: ASbGnctZpPPL4zXVof165XSeWoPsaMHprS13wDASXqbQ38PZ5a/e9PA/3saSOTD9WfV
 zCUVNwLurM80SVOF6iXx/oRp1FqFzcxFHinT08yDN+g3JUI8a9Y5vRECYuR6su23BuW+QRza1fP
 2qsSUnR4oglT4kGfI5zErpzv9vQmTy43ZWYu2rTw52qHnxg1SNEjxL5rNfqusHprdcXvZEUe8bF
 RRJHhga8SW5NtvSff4lEAeiPkVSw/47HnwZZalbQp1DrZb9oOFgyQS4MIB249Xb3LOeoKW7dh75
 11Qb1iObGYJ2NlXXKPcfzg==
X-Google-Smtp-Source: AGHT+IFXEOI2f5yjO2c6heIXovyvmNzgqJwiPHsIBX0KDph5Khd0mC2pxOB8xjGKN+9bXtDu3tk+Zw==
X-Received: by 2002:a17:90b:1f81:b0:2ee:bc1d:f98b with SMTP id
 98e67ed59e1d1-2f83ac8ac3amr6521591a91.31.1738193586498; 
 Wed, 29 Jan 2025 15:33:06 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 98e67ed59e1d1-2f83bd0963esm2387652a91.22.2025.01.29.15.33.05
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 29 Jan 2025 15:33:05 -0800 (PST)
Message-ID: <28e2410d-3628-4d1a-a25c-971857f23631@HIDDEN>
Date: Wed, 29 Jan 2025 20:33:03 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
 <8634h1mmlm.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <8634h1mmlm.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75931
Cc: 75931 <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 (-)

On 29/1/25 16:44, Eli Zaretskii wrote:
 >> Cc: 75931 <at> debbugs.gnu.org
 >> Date: Wed, 29 Jan 2025 21:11:05 +0200
 >> From: Eli Zaretskii <eliz@HIDDEN>
 >>
 >>>      * src/xdisp.c (erase_phys_cursor, show_mouse_face): Adjust
 >>>      phys_cursor.x as needed if the cursor is inside mouse-highlight.
 >>>      (get_cursor_offset_for_mouse_face): New function.
 >>>      * src/dispnew.c (gui_update_window_end): Set
 >>>      'mouse_face_overwritten_p' if the cursor is in mouse-face, to
 >>>      trigger more thorough redisplay of the cursor.
 >>>      (Bug#50660)
 >>
 >> Thanks, but it would still be good to know which code changes the
 >> mouse pointer to hand.  In the above patch, the only part that could
 >> perhaps cause that is the first hunk, in dispnew.c, but I don't see an
 >> immediate connection, especially since the answer is probably
 >> somewhere in X-specific code (xterm.c etc.).
 >
 > Does anything change if you customize void-text-area-pointer to a
 > value that is neither 'arrow' nor 'hand'?  Do you see that 3rd shape
 > in the problematic scenario?

No change.




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

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


Received: (at 75931) by debbugs.gnu.org; 29 Jan 2025 23:30:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 29 18:30:19 2025
Received: from localhost ([127.0.0.1]:43425 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdHVj-0003c0-5F
	for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 18:30:19 -0500
Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:54441)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdHVg-0003a5-7Q
 for 75931 <at> debbugs.gnu.org; Wed, 29 Jan 2025 18:30:16 -0500
Received: by mail-pj1-x1035.google.com with SMTP id
 98e67ed59e1d1-2f43d17b0e3so290192a91.0
 for <75931 <at> debbugs.gnu.org>; Wed, 29 Jan 2025 15:30:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738193410; x=1738798210; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=uhp1RJOjlITcifERijFyFRiJQNgNP0SUKx25P0sS5cU=;
 b=AhUHOienXbI5UZrwtzQ157xjPEprWgdVLSLojGGkAJDbB73tqqJ6orI3q+XUkTrNI6
 CDGxCqMfCEnMLw8Wmg+gQF7WCljkLi9bnoou38+qclU44MdOrkoJNlR4dBo87JHKpq0Y
 6ptDEBgqaxgD02lfwloAMW6lwq50XiyCLhoCctNuVeuUMprDZ65VhlG9vJRYl5zBayPo
 qcbik1azVlRYvei1T5BwOuIZabUryOjLPf4OwhFK8VlzPxMB4u77KxvIN+SEzUl1HjuD
 KmeKG1Jm1wgDjUertTXK36O4fro0vxqABm5gTHQggQbWCazvSC97pdmu27GuYVkQjNRx
 QsTg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738193410; x=1738798210;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=uhp1RJOjlITcifERijFyFRiJQNgNP0SUKx25P0sS5cU=;
 b=xG5ENASzoh+IvH+FJoa34uTknMuuYcgA4GsPC+dHKSqKrPBVZTSO3LpBcA+loDZzj+
 qe5qSGlUVLVCYrQ+43jvKmWFhFHpW6pMLRPeuqmh59glm2CxVTRdzQzyEmYR6B35lG40
 E3uNNE0XGjdUYxz81PQqtBXMhvJMxSCCCiuZpUReOBpp1KrCc93E+1vEbBG+6sj7Rk5a
 DjHIuz1PI4xwC2f6AI0a7MAY0BJxPEc0mAzZM6Fm+NBIC3sEldlzKMiC/utQFSM7rq1y
 WrEb/CZKclxUwW/K+GdAVI1K4aTr069goo1qWm/4dPIglJiOM/RYBFo+h57ZbBiaNwEe
 ftKA==
X-Gm-Message-State: AOJu0YzuYvUyx8utVPVrh7ZRlQJtorBWVADFLLvoPQ/k8wZrA8Qj+7b9
 Rzf+ipJW2PovpCTWIzNxyFw0KGzXwIrlwShGrZml2HHCL2sh6AeA
X-Gm-Gg: ASbGncv2IBA2TH47EYIRO3GN69tt3VoPTE0WfMK7/gKfAxv5UN9N6QcFufvW7sOBypw
 NK9al6HxzjCj9qMVTYPa9a0AZdUGJY0AHwo6NEAIhtQiTMArpuzfkLru1DDP/s1e6vR2FF9tFkH
 lyy7rWX1X8zO5QABLt7YjGX2FJBLTcI9YfNADdAKMFYBbty8pmlDdjxhlnG4x3ydiOUeYokZiaB
 +GvZGIZRRpXOkxkg7FrPr6XmrBHAsVMqCEXsy2ad48fesr3/FWJ1qRD7AX5SnrVcGiXzmRs8iQa
 UTZ483tpxX+Dm+b2hhkxxw==
X-Google-Smtp-Source: AGHT+IHcrYqYcdz2tCXCXkTcvueBe1n7cj+lpEIwJ86OIUVmn/WUnU7RDvD9ChaHv5NHnCObZEPMXw==
X-Received: by 2002:aa7:9317:0:b0:725:8b00:167e with SMTP id
 d2e1a72fcca58-72fd0c65edfmr7014352b3a.16.1738193410030; 
 Wed, 29 Jan 2025 15:30:10 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-72fe6a1a766sm30403b3a.161.2025.01.29.15.30.08
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 29 Jan 2025 15:30:09 -0800 (PST)
Message-ID: <f01e4e29-32fa-4a4e-bc84-27857c3b52d4@HIDDEN>
Date: Wed, 29 Jan 2025 20:30:05 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
To: Eli Zaretskii <eliz@HIDDEN>
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <867c6dmo52.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75931
Cc: 75931 <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 (-)

On 29/1/25 16:11, Eli Zaretskii wrote:
 >> Date: Wed, 29 Jan 2025 15:27:24 -0300
 >> From: Mauro Aranda <maurooaranda@HIDDEN>
 >> Cc: Eli Zaretskii <eliz@HIDDEN>
 >>
 >> I bisected it down to this commit:
 >>
 >> commit 64f9fdc812bb2e1f533ae294355d33396985e469
 >> Author: Eli Zaretskii <eliz@HIDDEN>
 >> Date:   Thu Oct 14 11:57:07 2021 +0300
 >>
 >>      Fix display of cursor in mouse-highlighted face with ':box'
 >>
 >>      * src/xdisp.c (erase_phys_cursor, show_mouse_face): Adjust
 >>      phys_cursor.x as needed if the cursor is inside mouse-highlight.
 >>      (get_cursor_offset_for_mouse_face): New function.
 >>      * src/dispnew.c (gui_update_window_end): Set
 >>      'mouse_face_overwritten_p' if the cursor is in mouse-face, to
 >>      trigger more thorough redisplay of the cursor.
 >>      (Bug#50660)
 >
 > Thanks, but it would still be good to know which code changes the
 > mouse pointer to hand.  In the above patch, the only part that could
 > perhaps cause that is the first hunk, in dispnew.c, but I don't see an
 > immediate connection, especially since the answer is probably
 > somewhere in X-specific code (xterm.c etc.).

I'll keep digging.




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

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


Received: (at 75931) by debbugs.gnu.org; 29 Jan 2025 19:44:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 29 14:44:33 2025
Received: from localhost ([127.0.0.1]:43123 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdDzF-0001np-49
	for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 14:44:33 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:40024)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tdDzB-0001nb-Fv
 for 75931 <at> debbugs.gnu.org; Wed, 29 Jan 2025 14:44:31 -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 1tdDz5-0004hD-34; Wed, 29 Jan 2025 14:44:23 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=5wxCeuVSG76GF/wgEqrOVRGup762aZlZKv8BOknjRN8=; b=SH/WJyCkXOX+
 oOKP/6C8xMvxWUrBkjT7185BuJjOjwdBUyjgH2zrIvCrRqlRRGyxvmCIzdZ5J0szoKceFFa3oxLuP
 unxZksvWN1rDKy+BplckiWpQOoHIfhqGsnTgKaYlLUZyLHWqW/863Retn1noj59hwBVq/pFPLR+bf
 j2JdTF8iXsTmgByiZM5MyCrY9EATFsw9MkeI7xRxsJBHdVhPlk+c9daam0NMUBuGAL3S9GvWp6ImP
 gTJ4H3DtLabyuK0uFnv1jHkoLtPstGp5UJSaWPgolRr7QzBEKBScTpS83WtNtMjy80DgEWYuaLi2C
 Q7+hcD2IVfPqLUjLm8hUHw==;
Date: Wed, 29 Jan 2025 21:44:21 +0200
Message-Id: <8634h1mmlm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: maurooaranda@HIDDEN
In-Reply-To: <867c6dmo52.fsf@HIDDEN> (message from Eli Zaretskii on Wed, 29
 Jan 2025 21:11:05 +0200)
Subject: Re: bug#75931: 31.0.50;
 mouse-face and pointer properties make pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> <867c6dmo52.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75931
Cc: 75931 <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 (---)

> Cc: 75931 <at> debbugs.gnu.org
> Date: Wed, 29 Jan 2025 21:11:05 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> >      * src/xdisp.c (erase_phys_cursor, show_mouse_face): Adjust
> >      phys_cursor.x as needed if the cursor is inside mouse-highlight.
> >      (get_cursor_offset_for_mouse_face): New function.
> >      * src/dispnew.c (gui_update_window_end): Set
> >      'mouse_face_overwritten_p' if the cursor is in mouse-face, to
> >      trigger more thorough redisplay of the cursor.
> >      (Bug#50660)
> 
> Thanks, but it would still be good to know which code changes the
> mouse pointer to hand.  In the above patch, the only part that could
> perhaps cause that is the first hunk, in dispnew.c, but I don't see an
> immediate connection, especially since the answer is probably
> somewhere in X-specific code (xterm.c etc.).

Does anything change if you customize void-text-area-pointer to a
value that is neither 'arrow' nor 'hand'?  Do you see that 3rd shape
in the problematic scenario?




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

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


Received: (at 75931) by debbugs.gnu.org; 29 Jan 2025 19:11:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 29 14:11:16 2025
Received: from localhost ([127.0.0.1]:43080 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdDT2-0005iQ-Bv
	for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 14:11:16 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:54338)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tdDT0-0005i9-1F
 for 75931 <at> debbugs.gnu.org; Wed, 29 Jan 2025 14:11:14 -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 1tdDSu-0000ZZ-J4; Wed, 29 Jan 2025 14:11:08 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=JYmpoLTNy/k4ENJx5Xhd7dKx3xUgt0AZhwn3h8kKHcY=; b=eQaJMG7AS9VK
 yT4X5+5rQGXTiShsfJ0kFCx5TqvuaGm4rqLvPruzAFxYM9IqQrvOui1XVoWmzvSRo8JkyNhGl+mKJ
 dfZ0GIs/KMtFPnGWxduy8wZQYbgh/4VkdOEUUIVGKd3aJ6Dwfa8T53Gvhn31vTxZibx+L/L/QfBCD
 7KgyD0Cx6+OOT2fMO4tIeqP7phk6pvuQPm5pefuNLMv5N9DLY70hsBsad59K3WARBk6Jakm/TYp9J
 Y/LuiCWpCaWAwrUK9WEiBNeInZPNa6bOy1IUHiPFVH/zILB7Xm7q9iw90llFrGy8iZfTVKMb/7Tkg
 iEeaP9ZE6jLtM3pO5k0IBw==;
Date: Wed, 29 Jan 2025 21:11:05 +0200
Message-Id: <867c6dmo52.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN> (message from
 Mauro Aranda on Wed, 29 Jan 2025 15:27:24 -0300)
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
 <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75931
Cc: 75931 <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 (---)

> Date: Wed, 29 Jan 2025 15:27:24 -0300
> From: Mauro Aranda <maurooaranda@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>
> 
> I bisected it down to this commit:
> 
> commit 64f9fdc812bb2e1f533ae294355d33396985e469
> Author: Eli Zaretskii <eliz@HIDDEN>
> Date:   Thu Oct 14 11:57:07 2021 +0300
> 
>      Fix display of cursor in mouse-highlighted face with ':box'
> 
>      * src/xdisp.c (erase_phys_cursor, show_mouse_face): Adjust
>      phys_cursor.x as needed if the cursor is inside mouse-highlight.
>      (get_cursor_offset_for_mouse_face): New function.
>      * src/dispnew.c (gui_update_window_end): Set
>      'mouse_face_overwritten_p' if the cursor is in mouse-face, to
>      trigger more thorough redisplay of the cursor.
>      (Bug#50660)

Thanks, but it would still be good to know which code changes the
mouse pointer to hand.  In the above patch, the only part that could
perhaps cause that is the first hunk, in dispnew.c, but I don't see an
immediate connection, especially since the answer is probably
somewhere in X-specific code (xterm.c etc.).




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

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


Received: (at 75931) by debbugs.gnu.org; 29 Jan 2025 18:27:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 29 13:27:37 2025
Received: from localhost ([127.0.0.1]:42955 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdCmn-0003fH-BC
	for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 13:27:37 -0500
Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:58795)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdCmk-0003f1-W2
 for 75931 <at> debbugs.gnu.org; Wed, 29 Jan 2025 13:27:35 -0500
Received: by mail-pl1-x633.google.com with SMTP id
 d9443c01a7336-2165448243fso16209725ad.1
 for <75931 <at> debbugs.gnu.org>; Wed, 29 Jan 2025 10:27:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738175248; x=1738780048; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:cc:content-language
 :references:to:from:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=M3RUY2fegfaiSpiOO5Itr8jAiJzZli4Cvsjh62KYoJU=;
 b=MrjTv6rMrVejxyQVn6Az0OJ3as22xD9AO3nCTdZjyWaNmxyUME3RSmyTj26PnFsPnC
 fgqsNeOs7PsT4mng+h2J407Ccw0l2m9W9drrQ2Fqn3fxgfHS5dnc+TJZvkyXiU1OgqjF
 vvgYuG2zSRo2KbCM5lNjH8YsZaQqgujJliZiDOrkWpj/XfreshoIgmo+bA7yvyZzkFju
 0/yQ80XAtzvyGevvGTnBOTa8W0sgp7VTZ1Rozqnr9nBxPsaBxEjjt0YazavWE8SFW9RT
 rt5xIF3VC0MyZf6VKpbzx9j7hfH2d8d/GuBlEuoDq3K7MvcVRknydePa8dYFGpMoeHlj
 LzXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738175248; x=1738780048;
 h=content-transfer-encoding:in-reply-to:cc:content-language
 :references:to:from:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=M3RUY2fegfaiSpiOO5Itr8jAiJzZli4Cvsjh62KYoJU=;
 b=ft9Ox9bkq5QkFOV2LPRALnhHgpizdj57PHoJCPaDE+1wO2hvk+gLvFW7gFvH76erRr
 AELR1YhVJT10DxWYOeB++Y77cDegXCKV3Vxu4GFKJ4E5XqQu8gcXoR8+tTVjPZHuBKzV
 EPUgdR+XLDVQnqA0AuEpIswMCSCU3DYTaEUknYUcL5sKVcTcHvPyUpj1RAbch5n+wdEg
 PhY8QS5Aa0hhvZf2f2M7lkwMpfWGLK7MislocAx7Gdc+MUYmFiT9I+IUqeNfi4ORFBFz
 Aig/UkYaJFKWPhZjyldlhR4tonevxXQUp9/zLUpdRr7FH98OByusE7wViGlJDHDtF6Zr
 Nmow==
X-Gm-Message-State: AOJu0Ywjxgy1qAUvCO97UqNs2OLMhDhnI27pgBlI2HNszSVIzyBXUwaK
 yGfxqX2LgvuXPWz2bBUkTz4zi3R7jSYwTyKDcmQExPpjqI/LXyERtxe1+w==
X-Gm-Gg: ASbGncuGz7IhZPUosvXbVqjr+fYuEjKxHbePq4AC2gCqU0z8z1wRHG+ESnc9V800DFH
 9FXf1QqgTbpk1F0a/orj7dBMQUeC+4+FM0w/y9vr6hswdZ2iJHqqnCLeW7iBmMYuMULVZj9lqvz
 JBFjAllgkAqY6DPjscwin7Wpvzd0xaFdlwLGo17FhjKuHfppXQTshBUAUUO2kFWBQqB+8vzuN3m
 eKbzhLJSlX/YereEi9g7X+XktfnD88h2eT3jNMgwC7ST25W3AibXdC+sqZyjMBkywniQIypY3Gw
 YqLjkdFEmLQnlWvWrAnJVA==
X-Google-Smtp-Source: AGHT+IGD6jAbFyXoUz2txkAdHpGqtOJ57Q6f785nisQpSzBo3O9Z4IBPnN8ZqCIisM2AFNVll3iXXQ==
X-Received: by 2002:a05:6a00:84c:b0:728:e906:e446 with SMTP id
 d2e1a72fcca58-72fd0c7468amr7431864b3a.24.1738175247232; 
 Wed, 29 Jan 2025 10:27:27 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-72f8a77c779sm11907794b3a.145.2025.01.29.10.27.25
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 29 Jan 2025 10:27:26 -0800 (PST)
Message-ID: <6f25a388-dbed-4c87-b1b9-9e8e66098c62@HIDDEN>
Date: Wed, 29 Jan 2025 15:27:24 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75931: 31.0.50; mouse-face and pointer properties make
 pointer change back and forth
From: Mauro Aranda <maurooaranda@HIDDEN>
To: 75931 <at> debbugs.gnu.org
References: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
Content-Language: en-US
In-Reply-To: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75931
Cc: 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 (-)

I bisected it down to this commit:

commit 64f9fdc812bb2e1f533ae294355d33396985e469
Author: Eli Zaretskii <eliz@HIDDEN>
Date:   Thu Oct 14 11:57:07 2021 +0300

     Fix display of cursor in mouse-highlighted face with ':box'

     * src/xdisp.c (erase_phys_cursor, show_mouse_face): Adjust
     phys_cursor.x as needed if the cursor is inside mouse-highlight.
     (get_cursor_offset_for_mouse_face): New function.
     * src/dispnew.c (gui_update_window_end): Set
     'mouse_face_overwritten_p' if the cursor is in mouse-face, to
     trigger more thorough redisplay of the cursor.
     (Bug#50660)





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

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


Received: (at submit) by debbugs.gnu.org; 29 Jan 2025 18:22:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 29 13:22:59 2025
Received: from localhost ([127.0.0.1]:42947 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tdCiJ-0003Re-0y
	for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 13:22:59 -0500
Received: from lists.gnu.org ([2001:470:142::17]:37234)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdCiE-0003RM-KZ
 for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 13:22:57 -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 <maurooaranda@HIDDEN>)
 id 1tdCi9-00013O-4D
 for bug-gnu-emacs@HIDDEN; Wed, 29 Jan 2025 13:22:49 -0500
Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <maurooaranda@HIDDEN>)
 id 1tdCi7-0001Sv-7P
 for bug-gnu-emacs@HIDDEN; Wed, 29 Jan 2025 13:22:48 -0500
Received: by mail-pl1-x631.google.com with SMTP id
 d9443c01a7336-2164b1f05caso127296345ad.3
 for <bug-gnu-emacs@HIDDEN>; Wed, 29 Jan 2025 10:22:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738174964; x=1738779764; darn=gnu.org;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=dSDcj1U86xwekPAxsL6CYE0U4XsahXNZzEpr5cNp85o=;
 b=h8dhh3ONxh28PYkyhzzRib84/XhNEfx7xM6vfm55uO5oA146TORCV35Lk9ptPEa3gE
 5HwWMEXGW1DS0Hw3HJT10G1/IoWCKonwzagkZ7qOjijPMFhOtM0F5Q6j2Yq+kDHkuV0N
 v59xJq4iLHEw5/YaM+gJiwrPE/shuxeZAIzeBeXONn3IrHKztRluBwT546KB7FSsNjcG
 fiIlqaNXXP5+TK857PnT1dFnofGLLA9AIlkwDEtwma2p7PwfkLggKkyM8JTBLqqzeYz+
 ZCiuoIMgqgRDmrIW8Q3Z/MGiQdTlF5mqjGrfhvbjK6kw6z4qZzj5STdRLfZScXHFAmqI
 Ho9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738174964; x=1738779764;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=dSDcj1U86xwekPAxsL6CYE0U4XsahXNZzEpr5cNp85o=;
 b=TZeKBXKGUHFiJ6y5ceyNlEVkMUcUcAtJ1yfSxzEp/K/MCnZJs1l2og8dQV3csoNULh
 OdvBLDFmxItC3b85l9MN9O7NisA1H0V1+WpHwekeRTiItWzp5ixOuMd9C6RQKeWuuovd
 rg2o+F2NhwJSe/If51LK51GDfaVJlvkCQ5QwfoNyoejivwpE3U1m4RmJUZveLDhl1uwL
 ohkIZrGswz4p0TyFB2DXgsQ4hJYWce6ufgvhys+qsBgaNX0qVYj1GzRC0teWO2bqxdcd
 czS8FGdHLN/XxPCvzuzg/yDFuDD3gfWufAZfyBwkY4X26dnPMEMx7ZhNSOgib9vpHlka
 K3YQ==
X-Gm-Message-State: AOJu0Yz6l9kGV6WMC/7IhEJypyJ83PlVPLi8K8DOWmyolFGU60obXM5U
 LaeSOLNtY6B0yg+OBT1xEC333+m7lKBl5AWjR1jGx7tC84LW9F170Gb5Zw==
X-Gm-Gg: ASbGncu3X4evEGU7Z1iS6nURQd13kWA4cIGzxqL4BZI/OhbPYh0/09bKyMNFobxMv/L
 GtCImsXuFasPfyjXioARoS0FKuoXftnzob+bIz1etiuAiOh7aZwUbPrcpTi57SsLrddyuOjErLO
 TzWH7iDiwlIJnE4pilIAjm7us4QceH56OO3dk6gg+72Urts/lBGNVEu1e0ZpgUYBHPaVG36I8Aw
 uKHmiXrWJUSV5ZTPlbGzYkctQbqFiSSrGnFT0LXu6b2vhiXu83FcD0Qq2hwZW4M1eUCff18L1px
 bWoRO5PSrHfsHiTB8Xy5tQ==
X-Google-Smtp-Source: AGHT+IGhVyE2ByG1dwiHRKDSdUp6zHS3iKjunpKLbgGzsP0Md8M31CuxyIj76VCshDzwrWV+JCE2vw==
X-Received: by 2002:a17:903:120a:b0:215:9894:5670 with SMTP id
 d9443c01a7336-21dd7c57b6fmr57191395ad.16.1738174964365; 
 Wed, 29 Jan 2025 10:22:44 -0800 (PST)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-21da3d9c96csm103376975ad.22.2025.01.29.10.22.42
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 29 Jan 2025 10:22:43 -0800 (PST)
Message-ID: <12863077-34f0-4b09-afad-8770b3918a88@HIDDEN>
Date: Wed, 29 Jan 2025 15:22:41 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: Mauro Aranda <maurooaranda@HIDDEN>
Subject: 31.0.50; mouse-face and pointer properties make pointer change back
 and forth
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2607:f8b0:4864:20::631;
 envelope-from=maurooaranda@HIDDEN; helo=mail-pl1-x631.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, 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-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 (/)

After emacs -Q, evaluate this:

(defun my-test ()
   (interactive)
   (switch-to-buffer "*Test*")
   (kill-all-local-variables)
   (make-local-variable 'widget-example-repeat)
   (let ((inhibit-read-only t))
     (erase-buffer))
   (remove-overlays)
   (insert "TEST")
   (let ((ov (make-overlay (point-min) (point-max))))
     (overlay-put ov 'pointer 'hand))
   (let ((ov (make-overlay (point-min) (point-max))))
     (overlay-put ov 'pointer 'arrow)
     (overlay-put ov 'mouse-face 'shadow)
     (overlay-put ov 'priority 110))
   (insert "\nText without overlay"))

M-x my-test RET

Hover with the mouse the text "TEST", and move point to it (for example,
with M-<).  The pointer begins to change back and forth between arrow
and hand, staying as arrow most of the time.

This seems to be toolkit-dependant, since it doesn't happen on
MS-Windows:
https://lists.gnu.org/archive/html/emacs-devel/2025-01/msg01116.html





In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
  3.24.33, cairo version 1.16.0) of 2025-01-29 built on tbb-desktop
Repository revision: 142fe5ace4e5d4ed667505f73fc95757a764d530
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12201001
System Description: Ubuntu 22.04.5 LTS

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
   value of $LC_MONETARY: es_AR.UTF-8
   value of $LC_NUMERIC: es_AR.UTF-8
   value of $LC_TIME: es_AR.UTF-8
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   minibuffer-regexp-mode: t
   line-number-mode: t
   indent-tabs-mode: t
   transient-mark-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo gtk
x-toolkit xinput2 x multi-tty move-toolbar make-network-process
tty-child-frames emacs)

Memory information:
((conses 16 38994 10422) (symbols 48 5406 0) (strings 32 12571 1813)
  (string-bytes 1 303272) (vectors 16 9355)
  (vector-slots 8 112629 8058) (floats 8 21 3) (intervals 56 233 0)
  (buffers 992 10))





Acknowledgement sent to Mauro Aranda <maurooaranda@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#75931; 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: Sun, 2 Feb 2025 10:00:02 UTC

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