From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50660: 28.0.50; Text artifacting when the cursor moves over text under mouse face that originally displayed a box Date: Tue, 21 Sep 2021 13:17:58 +0300 Message-ID: <83bl4mz0yx.fsf@gnu.org> References: <87czp6ysw7.fsf.ref@yahoo.com> <877dfdz9ni.fsf@yahoo.com> <831r5l5d6d.fsf@gnu.org> <87h7egy8jo.fsf@yahoo.com> <838rzs4i09.fsf@gnu.org> <87fsu06oxi.fsf@yahoo.com> <83ee9j3ju3.fsf@gnu.org> <834kaf3ets.fsf@gnu.org> <8335pz3dli.fsf@gnu.org> <87r1dj4q4m.fsf@yahoo.com> <83zgs71su7.fsf@gnu.org> <87k0jb4k5l.fsf@yahoo.com> <83sfxz1pw0.fsf@gnu.org> <87ee9j4i8y.fsf@yahoo.com> <83o88n1l1f.fsf@gnu.org> <87pmt23gqg.fsf@yahoo.com> <8335py1mqm.fsf@gnu.org> <87a6k62xgn.fsf@yahoo.com> <83pmt2z593.fsf@gnu.org> <874kae2skg.fsf@yahoo.com> <83ee9iz2tm.fsf@gnu.org> <87wnna1cu6.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28217"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 50660@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 21 12:19:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mScro-00079H-Vv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 12:19:12 +0200 Original-Received: from localhost ([::1]:35056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mScrl-0008MO-Q4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 06:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mScre-0008Km-Sc for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 06:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mScre-0000un-LN for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 06:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mScre-00089O-H4 for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 06:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 10:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50660 X-GNU-PR-Package: emacs Original-Received: via spool by 50660-submit@debbugs.gnu.org id=B50660.163221949431260 (code B ref 50660); Tue, 21 Sep 2021 10:19:02 +0000 Original-Received: (at 50660) by debbugs.gnu.org; 21 Sep 2021 10:18:14 +0000 Original-Received: from localhost ([127.0.0.1]:45025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mScqs-000886-0i for submit@debbugs.gnu.org; Tue, 21 Sep 2021 06:18:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mScqq-00087t-LU for 50660@debbugs.gnu.org; Tue, 21 Sep 2021 06:18:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44640) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mScqk-00007O-R6; Tue, 21 Sep 2021 06:18:07 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2352 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mScqk-0005ys-CE; Tue, 21 Sep 2021 06:18:06 -0400 In-Reply-To: <87wnna1cu6.fsf@yahoo.com> (message from Po Lu on Tue, 21 Sep 2021 17:45:37 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214946 Archived-At: > From: Po Lu > Cc: larsi@gnus.org, 50660@debbugs.gnu.org > Date: Tue, 21 Sep 2021 17:45:37 +0800 > > Eli Zaretskii writes: > > > Only the characters at the beginning and end of the box jump, so they > > are the only ones that need an additional adjustment. Right? > > Yeah, they are the only characters causing the jump, but the effect of > that jump "ripples", in a way, throughout the entire box. It ripples only once, when the mouse-highlight is applied, and at that time show_mouse_face will be called. After the mouse-highlight is applied, if you just move the cursor (NOT the mouse pointer), the only part of the text that changes are the two edge characters. > So even if I move the cursor into the middle of the box, it will > still be in the wrong location, but when the cursor is moved, > show_mouse_face is not called, so I think putting the correction is > show_mouse_face is not the solution to this problem. We could identify this situation and call show_mouse_face forcibly, e.g. in gui_update_window_end or some such place. It's also fine with me to do it where you wanted, as long as you can resolve the problems with that which I mentioned earlier.