From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16621: 24.3.50; Periodic timer + overlays = flickering near point Date: Wed, 05 Feb 2014 22:00:47 +0200 Message-ID: <83bnyl1g9c.fsf@gnu.org> References: <87r47m72ft.fsf@yandex.ru> <838utt4gff.fsf@gnu.org> <52F051D2.9020404@yandex.ru> <83eh3j35cq.fsf@gnu.org> <52F08602.5090501@yandex.ru> <83a9e63m1n.fsf@gnu.org> <76F58FD5-23A5-43EC-91FA-BAD933BB41DA@swipnet.se> <83ppn21a9s.fsf@gnu.org> <83iost1ret.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1391630472 21974 80.91.229.3 (5 Feb 2014 20:01:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2014 20:01:12 +0000 (UTC) Cc: 16621@debbugs.gnu.org, dgutov@yandex.ru To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 05 21:01:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WB8ep-0000Rv-TU for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 21:01:16 +0100 Original-Received: from localhost ([::1]:33001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB8ep-0005XY-JK for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Feb 2014 15:01:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB8eh-0005Qg-Fe for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 15:01:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WB8ec-0008Vp-VQ for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 15:01:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WB8ec-0008VT-Rs for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 15:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WB8ec-0006m2-57 for bug-gnu-emacs@gnu.org; Wed, 05 Feb 2014 15:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Feb 2014 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16621 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16621-submit@debbugs.gnu.org id=B16621.139163045826029 (code B ref 16621); Wed, 05 Feb 2014 20:01:02 +0000 Original-Received: (at 16621) by debbugs.gnu.org; 5 Feb 2014 20:00:58 +0000 Original-Received: from localhost ([127.0.0.1]:51224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WB8eX-0006lj-If for submit@debbugs.gnu.org; Wed, 05 Feb 2014 15:00:57 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:36913) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WB8eT-0006lV-6v for 16621@debbugs.gnu.org; Wed, 05 Feb 2014 15:00:55 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N0J00G00GKMPU00@mtaout26.012.net.il> for 16621@debbugs.gnu.org; Wed, 05 Feb 2014 21:59:42 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0J008UPGVIG290@mtaout26.012.net.il>; Wed, 05 Feb 2014 21:59:42 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84640 Archived-At: > From: Stefan Monnier > Cc: jan.h.d@swipnet.se, dgutov@yandex.ru, 16621@debbugs.gnu.org > Date: Wed, 05 Feb 2014 13:57:43 -0500 > > > I thought I explained a few messages back what "flag" is that: the > > moment we redisplay the echo area, we are forced to call update_frame, > > for the selected frame, which will redraw the cursors of that frame's > > windows (and also its fringes, btw). > > We can probably refine update_frame then, so it only redraws the windows > that have changed, which can be recognized thanks to a flag such as > `redisplay' or a new flag if that one can't be used (under ttys, the > redraw is really frame-wide so that wouldn't apply, but for GUIs that > should not be a problem). This is not needed, because update_frame actually does nothing in this case: it sees that none of the lines in any window on the selected frame changed, and does not redraw any of their screen lines. But it always redraws the cursor and the fringes. So we only need to introduce some infrastructure that would allow us to avoid redrawing the cursor on GUI frames, when the text surrounding the cursor was not redrawn.