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: Latest changes in redisplay code Date: Wed, 06 Feb 2013 20:08:39 +0200 Message-ID: <8362259uxk.fsf@gnu.org> References: <83pq0g9hcf.fsf@gnu.org> <51109E0B.3000402@yandex.ru> <83d2weabda.fsf@gnu.org> <5112083A.5090409@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1360174109 8746 80.91.229.3 (6 Feb 2013 18:08:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2013 18:08:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 06 19:08:50 2013 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 1U39QQ-0004tJ-BJ for ged-emacs-devel@m.gmane.org; Wed, 06 Feb 2013 19:08:50 +0100 Original-Received: from localhost ([::1]:53961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U39Q7-0002b9-B9 for ged-emacs-devel@m.gmane.org; Wed, 06 Feb 2013 13:08:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U39Q5-0002b2-0R for emacs-devel@gnu.org; Wed, 06 Feb 2013 13:08:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U39Q3-00057O-Rd for emacs-devel@gnu.org; Wed, 06 Feb 2013 13:08:28 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:46581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U39Q3-000575-K5 for emacs-devel@gnu.org; Wed, 06 Feb 2013 13:08:27 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MHT00L008ZX8200@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Wed, 06 Feb 2013 20:08:25 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MHT00LVO9212Q60@a-mtaout23.012.net.il>; Wed, 06 Feb 2013 20:08:25 +0200 (IST) In-reply-to: <5112083A.5090409@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:156839 Archived-At: > Date: Wed, 06 Feb 2013 11:37:30 +0400 > From: Dmitry Antipov > CC: emacs-devel@gnu.org > > On 02/05/2013 10:01 PM, Eli Zaretskii wrote: > > > In any case, the potential for problems is still there, because now > > w->base_line_pos gets reset to zero in many more places than it was > > before. Previously, only xdisp.c would manipulate this attribute in a > > few well-defined places. Now it can be reset by any function that > > calls adjust_window_count, including wset_buffer, which is called from > > many primitives, most of them outside xdisp.c. Therefore, it's quite > > possible that we will now have to count from the beginning of the > > buffer much more frequently than we did before. In large buffers, > > this could be quite a hit. > > Hm. I'll try to reproduce such a situation and check what happens. > Maybe we should invalidate window_end_valid and base_line_pos only > if either window is really switched to another buffer or buffer > is changed. That'd be hard, because there are many places that switch to another buffer temporarily, and they all call adjust_window_count.