From unknown Fri Aug 15 16:01:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10464 <10464@debbugs.gnu.org> To: bug#10464 <10464@debbugs.gnu.org> Subject: Status: 24.0.92; mouse highlight regression Reply-To: bug#10464 <10464@debbugs.gnu.org> Date: Fri, 15 Aug 2025 23:01:46 +0000 retitle 10464 24.0.92; mouse highlight regression reassign 10464 emacs submitter 10464 Chong Yidong severity 10464 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 05:17:22 2012 Received: (at submit) by debbugs.gnu.org; 9 Jan 2012 10:17:22 +0000 Received: from localhost ([127.0.0.1]:50704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkCI4-0002Nc-Ig for submit@debbugs.gnu.org; Mon, 09 Jan 2012 05:17:21 -0500 Received: from eggs.gnu.org ([140.186.70.92]:56061) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkCI1-0002NO-Md for submit@debbugs.gnu.org; Mon, 09 Jan 2012 05:17:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkCHd-0004su-RG for submit@debbugs.gnu.org; Mon, 09 Jan 2012 05:16:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:45043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkCHd-0004sq-Pw for submit@debbugs.gnu.org; Mon, 09 Jan 2012 05:16:53 -0500 Received: from eggs.gnu.org ([140.186.70.92]:59688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkCHd-0005Px-2i for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 05:16:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkCHX-0004rt-6D for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 05:16:52 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:43779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkCHX-0004rp-3W for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 05:16:47 -0500 Received: from [155.69.19.183] (port=60207 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RkCHV-0001vx-T6 for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 05:16:46 -0500 From: Chong Yidong To: bug-gnu-emacs@gnu.org Subject: 24.0.92; mouse highlight regression Date: Mon, 09 Jan 2012 18:16:38 +0800 Message-ID: <87ty45kwop.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) With latest trunk, the (non-automated) redisplay testsuite is failing in Test 2. Here is a simplified recipe: emacs -Q Insert the following: (let ((opoint (point)) overlay) (insert "XXX") (setq overlay (make-overlay opoint (point))) (overlay-put overlay 'display "XXX") (overlay-put overlay 'mouse-face 'highlight)) M-x eval-buffer RET Move the mouse over the XXX that was inserted. Result: multiple lines are highlighted, from the end of the first buffer line to the end of the display string. Expected result (works in Emacs 23): only the XXX is highlighted. In GNU Emacs 24.0.92.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.2.0) of 2012-01-09 on furball Windowing system distributor `The X.Org Foundation', version 11.0.11004000 configured using `configure '--with-x-toolkit=gtk3' 'CFLAGS=-g'' From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 07:33:07 2012 Received: (at 10464) by debbugs.gnu.org; 9 Jan 2012 12:33:07 +0000 Received: from localhost ([127.0.0.1]:50748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkEPP-0006F9-Eo for submit@debbugs.gnu.org; Mon, 09 Jan 2012 07:33:07 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:44059 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkEPJ-0006Ef-09 for 10464@debbugs.gnu.org; Mon, 09 Jan 2012 07:33:01 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RkEP4-0001gq-FG; Mon, 09 Jan 2012 07:32:42 -0500 Date: Mon, 09 Jan 2012 07:32:42 -0500 Message-Id: From: Eli Zaretskii To: Chong Yidong In-reply-to: <87ty45kwop.fsf@gnu.org> (message from Chong Yidong on Mon, 09 Jan 2012 18:16:38 +0800) Subject: Re: bug#10464: 24.0.92; mouse highlight regression References: <87ty45kwop.fsf@gnu.org> X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10464 Cc: 10464@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) > From: Chong Yidong > Date: Mon, 09 Jan 2012 18:16:38 +0800 > > With latest trunk, the (non-automated) redisplay testsuite is failing in > Test 2. Here is a simplified recipe: > > emacs -Q > > Insert the following: > > (let ((opoint (point)) > overlay) > (insert "XXX") > (setq overlay (make-overlay opoint (point))) > (overlay-put overlay 'display "XXX") > (overlay-put overlay 'mouse-face 'highlight)) > > M-x eval-buffer RET > Move the mouse over the XXX that was inserted. > > Result: multiple lines are highlighted, from the end of the first buffer > line to the end of the display string. > > Expected result (works in Emacs 23): only the XXX is highlighted. Did this work with Emacs 24 at some recent time (or ever), i.e. do you remember this working for you past Emacs 23? If it did, it will allow me to consider only the latest changes. TIA From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 15:49:24 2012 Received: (at 10464) by debbugs.gnu.org; 9 Jan 2012 20:49:24 +0000 Received: from localhost ([127.0.0.1]:51343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkM9k-00014c-8N for submit@debbugs.gnu.org; Mon, 09 Jan 2012 15:49:24 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:58810) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkM9h-00014Q-Px for 10464@debbugs.gnu.org; Mon, 09 Jan 2012 15:49:23 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LXJ00A00TKYG600@a-mtaout22.012.net.il> for 10464@debbugs.gnu.org; Mon, 09 Jan 2012 22:48:24 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.148.90]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXJ00MOITSNAAM7@a-mtaout22.012.net.il>; Mon, 09 Jan 2012 22:48:24 +0200 (IST) Date: Mon, 09 Jan 2012 22:48:26 +0200 From: Eli Zaretskii Subject: Re: bug#10464: 24.0.92; mouse highlight regression In-reply-to: <87ty45kwop.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: Chong Yidong Message-id: <83lipgeh5x.fsf@gnu.org> References: <87ty45kwop.fsf@gnu.org> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 10464 Cc: 10464@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Chong Yidong > Date: Mon, 09 Jan 2012 18:16:38 +0800 > > With latest trunk, the (non-automated) redisplay testsuite is failing in > Test 2. Here is a simplified recipe: > > emacs -Q > > Insert the following: > > (let ((opoint (point)) > overlay) > (insert "XXX") > (setq overlay (make-overlay opoint (point))) > (overlay-put overlay 'display "XXX") > (overlay-put overlay 'mouse-face 'highlight)) > > M-x eval-buffer RET > Move the mouse over the XXX that was inserted. > > Result: multiple lines are highlighted, from the end of the first buffer > line to the end of the display string. > > Expected result (works in Emacs 23): only the XXX is highlighted. I think I fixed this (trunk revision 106827), but please test, including any variations on this theme you can come up with. The bidi-aware mouse highlight is tricky business, especially when display strings are involved. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 23:21:38 2012 Received: (at 10464) by debbugs.gnu.org; 10 Jan 2012 04:21:39 +0000 Received: from localhost ([127.0.0.1]:51710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkTDO-0007Rk-M4 for submit@debbugs.gnu.org; Mon, 09 Jan 2012 23:21:38 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:60233) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkTDM-0007Rd-B1 for 10464@debbugs.gnu.org; Mon, 09 Jan 2012 23:21:37 -0500 Received: from bb119-74-248-93.singnet.com.sg ([119.74.248.93]:24831 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RkTD3-00007x-UJ; Mon, 09 Jan 2012 23:21:18 -0500 From: Chong Yidong To: Eli Zaretskii Subject: Re: bug#10464: 24.0.92; mouse highlight regression References: <87ty45kwop.fsf@gnu.org> <83lipgeh5x.fsf@gnu.org> Date: Tue, 10 Jan 2012 12:21:10 +0800 In-Reply-To: <83lipgeh5x.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 09 Jan 2012 22:48:26 +0200") Message-ID: <87wr90qjbd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10464 Cc: 10464@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Eli Zaretskii writes: > I think I fixed this (trunk revision 106827), but please test, > including any variations on this theme you can come up with. The > bidi-aware mouse highlight is tricky business, especially when display > strings are involved. Thanks for the very quick fix. This specific case is indeed fixed, but there is still a failing corner case in the redisplay testsuite. Load test/redisplay-testsuite.el, do M-x test-redisplay, and go to the very last case in Test 2. When the mouse is over the XXX, the highlight only extends to the end of the text, whereas it's expected to go to the end of the line. This is the case where there's an overlay with "XXX\n" as the display string and a mouse face. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 10 00:26:29 2012 Received: (at 10464) by debbugs.gnu.org; 10 Jan 2012 05:26:30 +0000 Received: from localhost ([127.0.0.1]:51725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkUE9-0000R5-8y for submit@debbugs.gnu.org; Tue, 10 Jan 2012 00:26:29 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:32856) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkUE6-0000Qv-25 for 10464@debbugs.gnu.org; Tue, 10 Jan 2012 00:26:27 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RkUDn-0000PN-VC; Tue, 10 Jan 2012 00:26:07 -0500 Date: Tue, 10 Jan 2012 00:26:07 -0500 Message-Id: From: Eli Zaretskii To: Chong Yidong In-reply-to: <87wr90qjbd.fsf@gnu.org> (message from Chong Yidong on Tue, 10 Jan 2012 12:21:10 +0800) Subject: Re: bug#10464: 24.0.92; mouse highlight regression References: <87ty45kwop.fsf@gnu.org> <83lipgeh5x.fsf@gnu.org> <87wr90qjbd.fsf@gnu.org> X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10464 Cc: 10464@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) > From: Chong Yidong > Cc: 10464@debbugs.gnu.org > Date: Tue, 10 Jan 2012 12:21:10 +0800 > > When the mouse is over the XXX, the highlight only extends to the end of > the text, whereas it's expected to go to the end of the line. This is > the case where there's an overlay with "XXX\n" as the display string and > a mouse face. I will look into it, but (compatibility with Emacs 23 aside) how important is it to have the entire display line come up in mouse color in this case? I could make an argument that what we do in Emacs 24 is actually better, since the newline is not shown on display as any tangible glyph. IOW, are there practical use cases where this difference matters? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 11 14:48:30 2012 Received: (at 10464-done) by debbugs.gnu.org; 11 Jan 2012 19:48:30 +0000 Received: from localhost ([127.0.0.1]:54143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl49u-0001Gd-Fq for submit@debbugs.gnu.org; Wed, 11 Jan 2012 14:48:30 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:64060) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl49s-0001GU-25 for 10464-done@debbugs.gnu.org; Wed, 11 Jan 2012 14:48:29 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LXN00I00G771B00@a-mtaout20.012.net.il> for 10464-done@debbugs.gnu.org; Wed, 11 Jan 2012 21:47:24 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.135.112]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXN00GKUGAY0WO0@a-mtaout20.012.net.il>; Wed, 11 Jan 2012 21:47:22 +0200 (IST) Date: Wed, 11 Jan 2012 21:47:26 +0200 From: Eli Zaretskii Subject: Re: bug#10464: 24.0.92; mouse highlight regression In-reply-to: <87wr90qjbd.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: Chong Yidong Message-id: <831ur6dnsh.fsf@gnu.org> References: <87ty45kwop.fsf@gnu.org> <83lipgeh5x.fsf@gnu.org> <87wr90qjbd.fsf@gnu.org> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 10464-done Cc: 10464-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Chong Yidong > Cc: 10464@debbugs.gnu.org > Date: Tue, 10 Jan 2012 12:21:10 +0800 > > Thanks for the very quick fix. > > This specific case is indeed fixed, but there is still a failing corner > case in the redisplay testsuite. Load test/redisplay-testsuite.el, do > M-x test-redisplay, and go to the very last case in Test 2. > > When the mouse is over the XXX, the highlight only extends to the end of > the text, whereas it's expected to go to the end of the line. This is > the case where there's an overlay with "XXX\n" as the display string and > a mouse face. Fixed (trunk revision 106848). From unknown Fri Aug 15 16:01:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 Feb 2012 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator