From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: The unwarranted scrolling assumption Date: Thu, 17 Jun 2010 00:17:11 +0200 Message-ID: References: <87ocfcj7r4.fsf@mail.jurta.org> <87631jvpzg.fsf@gmail.com> <4C18211C.3070106@harpegolden.net> <87vd9j5neu.fsf@kfs-lx.rd.rdm> <83sk4misf2.fsf@gnu.org> 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 1276726669 9723 80.91.229.12 (16 Jun 2010 22:17:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Jun 2010 22:17:49 +0000 (UTC) Cc: david@harpegolden.net, storm@cua.dk, emacs-devel@gnu.org, no-spam@cua.dk To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 17 00:17:47 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 1OP0vZ-0003eK-EW for ged-emacs-devel@m.gmane.org; Thu, 17 Jun 2010 00:17:45 +0200 Original-Received: from localhost ([127.0.0.1]:53651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OP0vY-0007VI-Lo for ged-emacs-devel@m.gmane.org; Wed, 16 Jun 2010 18:17:44 -0400 Original-Received: from [140.186.70.92] (port=49634 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OP0vN-0007Sh-Pe for emacs-devel@gnu.org; Wed, 16 Jun 2010 18:17:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OP0vM-0002Ow-Ee for emacs-devel@gnu.org; Wed, 16 Jun 2010 18:17:33 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:58162) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP0vM-0002OM-BG; Wed, 16 Jun 2010 18:17:32 -0400 Original-Received: by gyg4 with SMTP id 4so5254698gyg.0 for ; Wed, 16 Jun 2010 15:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=C8HtazT1n3tldMTKRXfy/upr1eNkgT+Eox/UQJlFM9U=; b=gjrHN17Sj9JzajlAnHQHOczqjouNU60vmNwK6nubvFDHBODimntQfSnOkGau8V5q85 8QvEr+MDi/Z6HGZp5Uv9u45MvokCTBAwaYmoBU/OESUOyPo0UXaBCUbksknextu73cPz VYkyagXS3oxMykdkjesjmkzTd09TtWvB5+2is= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=IEFVFWjJgvS4t+172k3aHLZv8ejKjNLl0N6UUui5DjAgtmnRnS6NwNYTSSabsJSOsk b30wnGMMG68SsufIQeJmZ8Mvbk16Pd7feC935q8TM+9MyXh91Npeln3A1490uTRd+Eja kSm4V5ZQdmNxaG4JekbAaZ4Bx8dLUGaKLMztI= Original-Received: by 10.100.246.23 with SMTP id t23mr7756918anh.167.1276726651344; Wed, 16 Jun 2010 15:17:31 -0700 (PDT) Original-Received: by 10.100.154.15 with HTTP; Wed, 16 Jun 2010 15:17:11 -0700 (PDT) In-Reply-To: <83sk4misf2.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:126043 Archived-At: On Wed, Jun 16, 2010 at 11:22 PM, Eli Zaretskii wrote: >> From: Lennart Borgman >> Date: Wed, 16 Jun 2010 19:35:53 +0200 >> Cc: "Kim F. Storm" , emacs-devel@gnu.org, >> =C2=A0 =C2=A0 =C2=A0 David De La Harpe Golden >> >> I looked around a bit and it looks like perhaps clip_changed is the >> problem, but I am not sure. Save-restriction and friends sets this to >> 1. >> >> redisplay_window checks this somewhere around line 14500 where the >> comment says "Try to scroll by specified few lines". If clip_changed >> is set then the if arg will be 0 and the "jumping scrolling" will >> happen. At least that is how I understand it at the moment. > > I'm not sure this is the problem. =C2=A0Can you step through try_scrollin= g > in the case that "jumping scrolling" happens, and tell what it does in > that case and what value it returns? It is a bit diffucult to step through a problem like this. First you have to guess what is happening and then you can add a little bit code that let you just break when it happens for those reasons you guessed ... ;-) And in this case it does not pass try_scroll when the "jumping scrolling" happens. I think the problem is in the handling of clip_changed as I said before, but I am not sure it can be cured. A lot of calls are made to narrow_to_region and I thought that the problem was the bugs in the handling of clip_changed there, but that does not seem to be the whole story. But thanks for the tip. Is there anything else that comes up in your head h= ere?