From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#925: 23.0.60; follow-mode doesn't work in buffers with a header line Date: Thu, 11 Sep 2008 10:54:58 +0200 Message-ID: <48C8DCE2.7020809@gmx.at> References: <18628.21774.308940.632822@gargle.gargle.HOWL> <48C54DE8.8080100@gmx.at> <18631.64418.476362.955622@gargle.gargle.HOWL> Reply-To: martin rudalics , 925@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221124082 29779 80.91.229.12 (11 Sep 2008 09:08:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 09:08:02 +0000 (UTC) Cc: 925@emacsbugs.donarmstrong.com To: Phil Sung Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 11:08:57 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdiAa-0005VK-8L for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 11:08:56 +0200 Original-Received: from localhost ([127.0.0.1]:50622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdi9a-0006Gy-2x for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 05:07:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdi9T-0006FA-RA for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 05:07:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdi9R-0006Bw-Gg for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 05:07:46 -0400 Original-Received: from [199.232.76.173] (port=52716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdi9Q-0006BA-NJ for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 05:07:44 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53948) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kdi9J-0004tD-UI for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 05:07:42 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8B97XHX017936; Thu, 11 Sep 2008 02:07:35 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8B955uV016528; Thu, 11 Sep 2008 02:05:05 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Sep 2008 09:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 925 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 925-submit@emacsbugs.donarmstrong.com id=B925.122112350913755 (code B ref 925); Thu, 11 Sep 2008 09:05:05 +0000 Original-Received: (at 925) by emacsbugs.donarmstrong.com; 11 Sep 2008 08:58:29 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8B8wNYr013712 for <925@emacsbugs.donarmstrong.com>; Thu, 11 Sep 2008 01:58:25 -0700 Original-Received: (qmail invoked by alias); 11 Sep 2008 08:58:17 -0000 Original-Received: from 62-47-61-65.adsl.highway.telekom.at (EHLO [62.47.61.65]) [62.47.61.65] by mail.gmx.net (mp055) with SMTP; 11 Sep 2008 10:58:17 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19VI2osXPxVW/JW7oDfjvq+NopwbQDladxhthaUi7 fAL+2J2l8Gc5nB User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <18631.64418.476362.955622@gargle.gargle.HOWL> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.74 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 11 Sep 2008 05:07:46 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20468 Archived-At: > No, it doesn't. When I do that, not only does the expected behavior > not happen, point moves back to the center of the first screen. This > didn't happen with the default value of scroll-conservatively. I don't understand well. When I set `scroll-conservatively' to 100 there's no recentering with emacs -Q and both windows scroll. There's, however, at least one line missing as you remark below. > Here's what I now think is going on: > > When there's a header line, follow-mode miscomputes the beginning of > the second window-- if you try out the "steps to reproduce", you can > see that there's one line after the end of the first window which is > not visible in the second window. When you try to C-n to that line, > follow-mode can't display that line in either window, so something > weird happens. > > I tried the (flawed) patch below, which decreases the effective > window-height when there's a header line. I'm not sure if this is the > right approach. Ideally, the second window wouldn't display the header line at all. > With this patch, point correctly moves from one window to the other, > and the two windows display consecutive lines, as expected. However, > sometimes when moving point between windows, the text will shift up or > down by a line. I don't know why that happens. This seems to already happen without your patch. martin