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: The unwarranted scrolling assumption Date: Thu, 17 Jun 2010 22:26:40 +0300 Message-ID: <83fx0lihov.fsf@gnu.org> References: <87ocfcj7r4.fsf@mail.jurta.org> <87631jvpzg.fsf@gmail.com> <4C18211C.3070106@harpegolden.net> <87vd9j5neu.fsf@kfs-lx.rd.rdm> <83sk4misf2.fsf@gnu.org> <83iq5hiiin.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1276802915 30958 80.91.229.12 (17 Jun 2010 19:28:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Jun 2010 19:28:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 17 21:28:34 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OPKlH-00020P-4x for ged-emacs-devel@m.gmane.org; Thu, 17 Jun 2010 21:28:27 +0200 Original-Received: from localhost ([127.0.0.1]:40142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPKlG-0002cF-GT for ged-emacs-devel@m.gmane.org; Thu, 17 Jun 2010 15:28:26 -0400 Original-Received: from [140.186.70.92] (port=57904 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPKl3-0002Zh-M7 for emacs-devel@gnu.org; Thu, 17 Jun 2010 15:28:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPKl2-0007hC-5x for emacs-devel@gnu.org; Thu, 17 Jun 2010 15:28:13 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:53922) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPKl1-0007gz-V4 for emacs-devel@gnu.org; Thu, 17 Jun 2010 15:28:12 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L4600H00B7HX900@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Thu, 17 Jun 2010 22:26:35 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.88.125]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L4600CT6BCATSD0@a-mtaout22.012.net.il>; Thu, 17 Jun 2010 22:26:35 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:126092 Archived-At: > From: Lennart Borgman > Date: Thu, 17 Jun 2010 21:14:04 +0200 > Cc: emacs-devel@gnu.org >=20 > > =C2=A0if (b->clip_changed > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 && !NILP (w->window_end_valid) > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 && w->current_matrix->buffer = =3D=3D b > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 && w->current_matrix->zv =3D= =3D BUF_ZV (b) > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 && w->current_matrix->begv = =3D=3D BUF_BEGV (b)) > > =C2=A0 =C2=A0b->clip_changed =3D 0; > > > > So, if b->clip_changed is non-zero at entry to reconsider_clip_ch= anges, > > and w->window_end_valid is non-nil, as you say, this code should = have > > reset b->clip_changed to zero. =C2=A0And yet you say it didn't. = =C2=A0Why not? > > what prevented it from doing so? >=20 > I thought so first too, but please see the message I just sent with= an > explanation of the patches I sent. Sorry, that doesn't explain it to me, because narrowing is not part o= f the recipe at all. Again, PLEASE answer my questions, if you really want my help in understanding this issue. What parts of the above condition prevente= d reconsider_clip_changes from resetting b->clip_changed to zero? If needed, please re-run under GDB (without your patches) and see what other factors are at work here.