From: martin rudalics <rudalics@gmx.at>
To: Phil Sung <psung@mit.edu>
Cc: 925@emacsbugs.donarmstrong.com
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 [thread overview]
Message-ID: <48C8DCE2.7020809@gmx.at> (raw)
In-Reply-To: <18631.64418.476362.955622@gargle.gargle.HOWL>
> 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
next prev parent reply other threads:[~2008-09-11 8:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <49074F4C.6080008@gmx.at>
2008-09-07 22:26 ` bug#925: 23.0.60; follow-mode doesn't work in buffers with a header line Phil Sung
2008-09-08 16:08 ` martin rudalics
2008-09-10 16:53 ` Phil Sung
2008-09-11 8:54 ` martin rudalics [this message]
2008-10-28 17:55 ` bug#925: marked as done (23.0.60; follow-mode doesn't work in buffers with a header line) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48C8DCE2.7020809@gmx.at \
--to=rudalics@gmx.at \
--cc=925@emacsbugs.donarmstrong.com \
--cc=psung@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.