From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Redisplay problems? Date: Fri, 28 Mar 2014 10:15:24 +0300 Message-ID: <83bnwqyesz.fsf@gnu.org> References: <83y5024r1w.fsf@gnu.org> <83ior6489a.fsf@gnu.org> <834n2q43os.fsf@gnu.org> <83vbv62gr7.fsf@gnu.org> <83txao1c8n.fsf@gnu.org> <83k3bj1otm.fsf@gnu.org> <838urz1jjg.fsf@gnu.org> <834n2n0wbe.fsf@gnu.org> <83d2h9yo5m.fsf@gnu.org> <83lhvvy2a3.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1395990931 19233 80.91.229.3 (28 Mar 2014 07:15:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 07:15:31 +0000 (UTC) Cc: rudalics@gmx.at, christian@defun.dk, cloos@jhcloos.com, kanru@kanru.info, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 28 08:15:39 2014 Return-path: Envelope-to: ged-emacs-devel@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 1WTR0s-000461-TI for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2014 08:15:39 +0100 Original-Received: from localhost ([::1]:57561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTR0s-00014f-1O for ged-emacs-devel@m.gmane.org; Fri, 28 Mar 2014 03:15:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTR0i-00010P-Ve for emacs-devel@gnu.org; Fri, 28 Mar 2014 03:15:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTR0e-0002ZH-Qn for emacs-devel@gnu.org; Fri, 28 Mar 2014 03:15:28 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:47934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTR0e-0002Z3-I4 for emacs-devel@gnu.org; Fri, 28 Mar 2014 03:15:24 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N3400000XG3SU00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 28 Mar 2014 10:15:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N34000YZXHMDE80@a-mtaout20.012.net.il>; Fri, 28 Mar 2014 10:15:23 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171063 Archived-At: > From: Stefan Monnier > Cc: rudalics@gmx.at, christian@defun.dk, kanru@kanru.info, cloos@jhcloos.com, emacs-devel@gnu.org > Date: Thu, 27 Mar 2014 17:13:00 -0400 > > > How does all this relate to moving blocks of pixels? > > 0 - frame gets deiconified, we don't redraw anything. > 1 - we recompute desired matrices. > 2 - we compare matrices and see that the top part of the frame can be drawn > be copying the pixels from the bottom part (assuming here incorrectly > that those pixels are in sync with the current matrices). > 3 - we copy the incorrect pixels and consider ourselves happy to have > redisplayed the top-part of the frame :-( > > I think this can't happen, which is why I think it's OK not to redraw > anything at step 0. I think it can happen. See scrolling_window and x_scroll_run that it calls.