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: Sat, 19 Jun 2010 16:27:13 +0300 Message-ID: <83aaqrgnke.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> <83fx0lihov.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1276954206 2281 80.91.229.12 (19 Jun 2010 13:30:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Jun 2010 13:30:06 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 19 15:30:05 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 1OPy7R-0004IR-OJ for ged-emacs-devel@m.gmane.org; Sat, 19 Jun 2010 15:29:58 +0200 Original-Received: from localhost ([127.0.0.1]:45839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPy7Q-0007O4-RY for ged-emacs-devel@m.gmane.org; Sat, 19 Jun 2010 09:29:56 -0400 Original-Received: from [140.186.70.92] (port=58239 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPy7L-0007K6-Ax for emacs-devel@gnu.org; Sat, 19 Jun 2010 09:29:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPy7K-0004Zg-42 for emacs-devel@gnu.org; Sat, 19 Jun 2010 09:29:51 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:37515) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPy7J-0004ZZ-T1 for emacs-devel@gnu.org; Sat, 19 Jun 2010 09:29:50 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0L4900E00JW65Z00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 19 Jun 2010 16:29:16 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.178.198]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L4900BBIK4R7U80@a-mtaout23.012.net.il>; Sat, 19 Jun 2010 16:29:16 +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:126211 Archived-At: > 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: > > + 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) = 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. However, I'm not sure I did all the necessary steps. First, how did you get to window-width of 55? I just resized the Emacs frame. 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. If you still see the problem 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".