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: Sat, 19 Jun 2010 15:36:16 +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> <83iq5hiiin.fsf@gnu.org> <83fx0lihov.fsf@gnu.org> <83aaqrgnke.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 1276954610 3504 80.91.229.12 (19 Jun 2010 13:36:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Jun 2010 13:36:50 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 19 15:36:48 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 1OPyE2-0007G1-Ra for ged-emacs-devel@m.gmane.org; Sat, 19 Jun 2010 15:36:47 +0200 Original-Received: from localhost ([127.0.0.1]:55349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPyE2-00023D-7Z for ged-emacs-devel@m.gmane.org; Sat, 19 Jun 2010 09:36:46 -0400 Original-Received: from [140.186.70.92] (port=42556 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPyDu-00021x-Fm for emacs-devel@gnu.org; Sat, 19 Jun 2010 09:36:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPyDt-0005J1-4F for emacs-devel@gnu.org; Sat, 19 Jun 2010 09:36:38 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:56432) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPyDt-0005Iq-0k; Sat, 19 Jun 2010 09:36:37 -0400 Original-Received: by gxk3 with SMTP id 3so1275367gxk.0 for ; Sat, 19 Jun 2010 06:36:36 -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=fEmpslh1xuKLAdY7VdqWAoIC1N5TNmQbl4AD8oU77Ps=; b=G94W7VevnyTLjoRTOangh/BppQ/6B2342+SrdFxF8OBl7rbibYbJJRY6rcHdHqvOl7 pS3O0PBq2TK3pKmwm62uD4XeaEM56bLv6mDpItHAcVIlE+fbVRwbVeCTPxh6n66cYFfg f5OKH63SCPDZ2Mc9NHuJFHIwIOSw6fdE3TmuQ= 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=lIxpTaeEBIUIsGCSx/cLRIbgzRKnH4qAzxgJLdRKIpkimX3GOjUKu6M8Jg9maTD3mk a4LFA19zhzaPv8M163JO/2if2NwcPtpu0Lsz+JxaRQ7rN6+CKRq4v8N0ZGuT3RAplK8U AZgu88XKTKy/KE4kqXbeJg+w6eBBf/Dl+dJBE= Original-Received: by 10.100.245.27 with SMTP id s27mr2002497anh.53.1276954596116; Sat, 19 Jun 2010 06:36:36 -0700 (PDT) Original-Received: by 10.100.154.15 with HTTP; Sat, 19 Jun 2010 06:36:16 -0700 (PDT) In-Reply-To: <83aaqrgnke.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:126212 Archived-At: On Sat, Jun 19, 2010 at 3:27 PM, Eli Zaretskii wrote: >> From: Lennart Borgman >> Date: Fri, 18 Jun 2010 01:49:52 +0200 >> Cc: emacs-devel@gnu.org >> >> Recentering happens whenever you are at the bottom of the screen if >> some conditions are met. I can reproduce it with this: >> >> - Open window.c >> - Goto line 702: >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0+ WINDOW_HEADER_LINE_HEIGHT (w)), >> >> - Turn on wrap-to-fill-column-mode. Turn it off again. >> - Turn on visual-line-mode >> - I have (window-width) =3D 55, height 34. >> - Position to W in WINDOW (it is on a wrapped line) >> - Use C-L to get this to the bottom. >> - Press down arrow. > > With the latest trunk, I cannot reproduce this: pressing the down > arrow just scrolls by a single line, as expected. =C2=A0However, I'm not > sure I did all the necessary steps. > > First, how did you get to window-width of 55? =C2=A0I just resized the > Emacs frame. Same. > Next, there's this: > >> (Note: wrap-to-fill-column-mode justs adds add wrap-prefix here. Which >> is for some reason does not remove. Bug ;-( -- >> wrap-to-fill-column-mode is of course part of nXhtml, but probably you >> can just add a fill prefix on the whole line that is equal to what the >> line indentation have.) > > wrap-to-fill-column-mode is complicated. =C2=A0If you still see the probl= em > with the current trunk, please show a recipe that does not use > wrap-to-fill-column-mode, but instead sets the fill prefix and/or > whatever else is needed to reproduce this problem in "emacs -Q". I told that recipe when I mentioned wrap-to-fill-column-mode. Mentioning that mode was just a way to accomplish that much more easy. Unfortunately I can not test now for these reasons: - It takes some time for the changes to reach Launpad. - You have said you implemented another way to avoid the scrolling bug and that will clash with my way. I found it a bit disturbing if you just implemented another way. I can't say if it is right or wrong until I have seen your patch but from our discussion it looks to me like you at least before misunderstood the problem.