From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#42406: Mouse-wheel scrolling can be flickering Date: Fri, 18 Dec 2020 14:57:01 +0100 Message-ID: References: <3FA2BD5E-5EAA-496E-AA2F-83810F62082C@univie.ac.at> <5945639e-0fe1-1308-e9e7-62ef44407e89@gmx.at> <8AF2FA71-E12D-414A-9224-31DCC5528BA9@univie.ac.at> <3a8d5d16-4362-a267-acc6-3f2c845fc8ed@gmx.at> <83zh2d91wh.fsf@gnu.org> <5dfe58f9-cddd-cf7b-5061-8929de3f8995@gmx.at> <83r1np8y9o.fsf@gnu.org> <8505b808-3c5b-7864-fc10-90c8e3409e61@gmx.at> <1a3b1fd6-e438-0c77-d317-576e707930a0@gmx.at> <1950D435-7BC8-41AF-99D5-FD673455B3AE@univie.ac.at> <83tusk7aro.fsf@gnu.org> <31e56bf1-203f-f895-20cd-32bab5e05988@gmx.at> <83pn3874r0.fsf@gnu.org> <5014029f-852f-e52e-3f2f-5f7deeba8d67@gmx.at> <83k0tg71mn.fsf@gnu.org> <25f0682d-5f12-4db2-a913-edd3bb8c0610@gmx.at> <834kkj7dte.fsf@gnu.org> <83zh2b5ocy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21502"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, konrad.podczeck@univie.ac.at, 42406@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 18 15:07:26 2020 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 1kqGPm-0005We-5l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 15:07:26 +0100 Original-Received: from localhost ([::1]:38316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqGPl-0005qC-75 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 09:07:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqGGg-0007Md-JU for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 08:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqGGg-0004GZ-Bs for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 08:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqGGg-0008CB-87 for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 08:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Dec 2020 13:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42406 X-GNU-PR-Package: emacs Original-Received: via spool by 42406-submit@debbugs.gnu.org id=B42406.160829983331438 (code B ref 42406); Fri, 18 Dec 2020 13:58:02 +0000 Original-Received: (at 42406) by debbugs.gnu.org; 18 Dec 2020 13:57:13 +0000 Original-Received: from localhost ([127.0.0.1]:38148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqGFt-0008B0-Cr for submit@debbugs.gnu.org; Fri, 18 Dec 2020 08:57:13 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:58091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqGFr-0008Am-MD for 42406@debbugs.gnu.org; Fri, 18 Dec 2020 08:57:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608299822; bh=ZgTuJimmlit3vCOsosbN42cC9+jmNHzp15AJVW9t+9U=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=LQ39tdLP0Z1nV3MYmO9JzdF2LIyqqFxoBAA1/FGw5AY222s7bCRvYk96YO8reKtBU zwTkA1sb5/TksVxiJTuH1uqbJwISnPIZFXbRHnZRpOlc/S7rm6OAUgAtbVTEZv83Yd ZjSsxiTM4e+diRQhVOBOu2NrEVC+g32Idozu/WA4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.177]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N9MpY-1k2dli1XlM-015FRC; Fri, 18 Dec 2020 14:57:02 +0100 In-Reply-To: <83zh2b5ocy.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:Ro5iYz/1Lk5KdskjNir8p260c0clcH5wGbjHvcDYdcnNMlrh3h5 J4xrEWKTKodXi0NC3JDCOebZ/6jfC/TAfiC4hd6v4ECRK0gPwRWTxcYX7zeLScDvOXGdc5B X2RG+WDQjVTwD3SgPeywz+WRDPdyC2oN2JAW4HmZW+TFURV9fSicdupCoOJnPT/0UU/vDjB 16c6zrQqXsvbTIN48/J1g== X-UI-Out-Filterresults: notjunk:1;V03:K0:jRqZh5ks8Co=:QXZ9kRrccVEqw54/0s/auz rUcQKMjhqg0PTohdL2UhIzM1Hyp+Ga952KRMKQgiipYv1GJYEP8yKYHxwJNXCg7T6uLTO37/v BQYijkWkba782D5dYg7/20wrE+/gdgjutRoaiMKlvkKTt2YPVtCt4CiHaQtDowIC3hQKnNRLU h5hT6YthyL+lKSUyIzrMUajGKHd1zE7oQqpgtyn4mNptdjRewTsqT4eWbWR90sqr3YOOxHwG1 HUNj4dd8aLWuSFeKLSn1hD5OfBvDAhpZytUQFd3oBZTSwwLOwqtpV589p/1HwF3y/K6kff9Xm E6QfNLIjEDpcrOL0kvPb6GlCXm5KXfA5SF2OohpLjCn6a0Tm1HvY/bnMgcxLzUdP/qn1g/DMZ FDQh6yWXzfP2U1oACjM1C7u2bnIiA+EnZjju1KOrpVlK0eBllyNlUSH6pHo+0KAS7mI9fXpjG JeWB8lkt9+oMTQnuC7cskcK5X/VQIKu+uck06Av4WeFpO078m3tCNOKkozmXeP26IDeUqwd2H usuz5LBMtReBL2Vpw7nnCkB14sNh2yxC6vltLbm7XbwnmjC5jd8OgHpHGn1BqKBl1TF1yaPlm P/lC9fgntOtYOhSSRr8nawh/7q782bLnCJ5fcW+gCHR/EJedsnJT0BqBy0kBjtHoe9zf/FJjV Z/dICwrl1+kiz/RbiJRJjqWG2PnxU4JRUc6OCkvabVyhyrMJrbvd3WMd9EghYDgqxW7KDPQMR u2Q41q7QWuYuHkAiY/vxN/cLXruaRoIAPjHzfeNu4sNP0jMHzSPJ8J2h7JBuNfbpQUWWTe1k 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:196322 Archived-At: >> In redisplay_window we set >> >> update_mode_line = (w->update_mode_line >> || update_mode_lines >> >> where w is the window we redisplay because it got scrolled. Later down >> we have >> >> if (update_mode_line >> && EQ (FRAME_SELECTED_WINDOW (f), window)) >> { >> ... >> gui_consider_frame_title (w->frame); >> >> so we do update the frame title after the frame's selected window got >> scrolled. What am I missing? > > This, I think: > > if (current_matrix_up_to_date_p > && (rc = try_cursor_movement (window, startp, &temp_scroll_step), > rc != CURSOR_MOVEMENT_CANNOT_BE_USED)) > { > switch (rc) > { > case CURSOR_MOVEMENT_SUCCESS: > used_current_matrix_p = true; > goto done; > > IOW, we might think that nothing needs to be updated except perhaps > the cursor position, and then fail to update the frame's title. Just to make sure I understand your argument correctly: With my xdisp.c update_mode_line = (w->update_mode_line is on line 18065 case CURSOR_MOVEMENT_SUCCESS: is on line 18458 done: is on line 18929 if (update_mode_line is on line 18975 gui_consider_frame_title (w->frame); is on line 19020 so I can't see why a CURSOR_MOVEMENT_SUCCESS could bypass gui_consider_frame_title. martin