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: Thu, 17 Dec 2020 14:21:48 +0100 Message-ID: References: <83czzg3ge1.fsf@gnu.org> <83sg89cyrq.fsf@gnu.org> <0FD2AAC6-BA1C-483F-9967-3E18B4ADD4D3@univie.ac.at> <0d3c9f07-7783-3e41-bf85-24a034c02e5c@gmx.at> <01B63545-A435-48C5-AB62-441EAD24F24C@univie.ac.at> <8A9929A0-1C51-4CC7-9EB1-1555788465F0@univie.ac.at> <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> 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="7948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Third , 42406@debbugs.gnu.org To: Konrad Podczeck Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 17 14:22:10 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 1kptEQ-0001wz-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 14:22:10 +0100 Original-Received: from localhost ([::1]:38014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kptEP-0006u4-GE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 08:22:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kptEI-0006tq-F2 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 08:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kptEI-00081c-7N for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 08:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kptEI-00020E-1Y for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 08:22: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: Thu, 17 Dec 2020 13:22: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.16082113217690 (code B ref 42406); Thu, 17 Dec 2020 13:22:02 +0000 Original-Received: (at 42406) by debbugs.gnu.org; 17 Dec 2020 13:22:01 +0000 Original-Received: from localhost ([127.0.0.1]:35063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kptEG-0001zx-MN for submit@debbugs.gnu.org; Thu, 17 Dec 2020 08:22:00 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:60781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kptEE-0001zj-MN for 42406@debbugs.gnu.org; Thu, 17 Dec 2020 08:22:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608211309; bh=DseaJqLDy27qC12a4Z6Hddcd1DY6lvJVABHN0xmpTsU=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=PjYRivLjvJZfBJHCIyTwlvzeReMydcliaaDBvVgKF9QmjAEuFQ1V73MJ52Kn8lEuD 0Kr+qhWgnQ1AVTnQT7HxOzsPNF0Za4Wr4p4p1m7n+RuzU7Ezj9nVG0stvFFL4nFQMx 5DO7FHa8onMh/5WdmjOI/Q8LIfyXuZvXTnZnB8C4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.7.238]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MwQTF-1jzzSa24ur-00sQpc; Thu, 17 Dec 2020 14:21:49 +0100 In-Reply-To: <1950D435-7BC8-41AF-99D5-FD673455B3AE@univie.ac.at> Content-Language: en-US X-Provags-ID: V03:K1:x3lSghrfVGtLD4/uRQcDvSRHBz/5u1f9mT+RRWBz7WHpiB7ktmG 1Oa19E7ezmc0LWr7HV9Pqyafr1go25SrrtW2INKx4PfNkPpIDGIyRwKXvv+yKNF6E0lsC/F dDPDM5G5OuPIEjDe8Cd9zMkw968ZE1Tbjx0SATOoHoShv75mjwHv8YUwOnNKK6wCuQopO1G 1++VwZ3suYKVJdhpCWgLw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Gqrgwyf5D5Y=:s7U9TXKwdLtr005tHoJij9 8P17Y88wMTuuZkRGhEukn1llfKommn+x8nkp5BvGtDABxTwvsChSbK96nXplhdnRDStEebxSw VL5uVUkaLQ+jw9g9NhtmDbmrSQHFePFHuqZQuz+3FAa0ggJ6Ce4EQ6kNFOaTQ9gqn1+8fTpGx miqXI1rWIpCLsIffBJ340HO8M8VuzNwKKNAE1R8iOecFMBnYwoWXWTDwiBPOQtTW1KIATz0pM ZYWoM9rgxMKImH1/1Pz8KtDQcf+lqJRNU7pvJP6M1OzklemA/+pg/b+LOLAWWqm02EgseLxyH ZBe1D0r67t4a3DeEK2RVISXH21S/Nqt1LTcEf9BLSjScuGMw/7qsqiRYv9XidEq+Vg4cRawWX 0Z623QWBwN2wrlMAs0GMDhRr7kMPShLQhQ7zo7drILT2VUc+rb1ET5J4YpsZ9v3bgzxV26+j+ UVW6viz0q5xD9PiIua/z3QdfKxUs1uq0x9ZsPpMbKHvdriV89hDS/Z0SMrq22Plp6dvYrpfO4 0gsbMkKzvSwOaj08EhmOVMhmOVhsyFEgtGgZtcn5BXEiBlb+zx2EfeLj3dAjDo2zJtiML3Qv8 h/fAiyKPLvGYb2d2xO8uQj/t3e2mxdAKH6hnfik5ffMGZabp40Uz+bmzCe/RdFeIT7Ygd4Nw7 CQbT173eq+wE5SeS18TSFCGggHV8xgPhEiqXtXSnUNb+G8WsBIUeNZtrUqqc7UI7t5dnDbsma Yi2qgnQSrXTOrc6pj2gdh6SEI1o+m68nMTUwlt1u9OrwcfXVfgADaVDrFyVq9LYwxa2FNy3f 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:196252 Archived-At: > Thanks! This did the job. Is there a way to exactly test whether the > (now) three out-commenting of wset_update_mode_line are really as > harmless at they appear? Could there be other scrolling problems, say > by scrolling via keys? First of all I would replace these wset_update_mode_line (w); with w->update_mode_line = true; This way you make sure that the mode line does get updated whenever the scrolled window is on the selected frame. Then problems should occur only when you either use the mouse wheel or the scroll bar on a non-selected frame. In that case, the line number of the associated window might not get updated until its frame gets selected. The (IMHO) right fix would be to have wset_update_mode_line add the frame containing the scrolled window to a list of frames the next redisplay should investigate. This might still fail when say frame A is selected, a window on frame B was scrolled and the title format of frame C wants to display the line number of that window. I wouldn't care about such pathological cases but maybe someone does. martin