From: Ralf Angeli <angeli@caeruleus.net>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: Recentering during article scrolling with scroll-margin
Date: Mon, 11 Aug 2008 18:35:07 +0200 [thread overview]
Message-ID: <87sktb8q84.fsf@photon.caeruleus.net> (raw)
In-Reply-To: <b4mzlnkp8l1.fsf@jpl.org> (Katsumi Yamaoka's message of "Mon, 11 Aug 2008 11:51:54 +0900")
* Katsumi Yamaoka (2008-08-11) writes:
> I tried (setq scroll-margin 3) on the latest Emacs 22.0.50 and
> 23.0.60 and confirmed this fix is necessary for the case where
> `gnus-article-over-scroll' is nil (the default).
Thanks for confirming.
>> If necessary I can provide a change log entry for such a change.
>
> Please provide it and I'll commit the slightly modified one like:
>
> (move-to-window-line (if (featurep 'xemacs) -1 (- -1 scroll-margin)))
>
> (Note that there is no `scroll-margin' control in XEmacs.)
Okay, here is a change log entry and a patch:
2008-08-11 Ralf Angeli <angeli@caeruleus.net>
* gnus-art.el (gnus-article-next-page): Respect `scroll-margin' when
moving point to the bottom of the window in order to avoid recentering.
--- gnus-art.el.~7.279.~ 2008-08-03 12:03:34.000000000 +0200
+++ gnus-art.el 2008-08-11 18:30:35.000000000 +0200
@@ -6113,7 +6113,7 @@
If end of article, return non-nil. Otherwise return nil.
Argument LINES specifies lines to be scrolled up."
(interactive "p")
- (move-to-window-line -1)
+ (move-to-window-line (if (featurep 'xemacs) -1 (- -1 scroll-margin)))
(if (and (not (and gnus-article-over-scroll
(> (count-lines (window-start) (point-max))
(+ (or lines (1- (window-height)))
--
Ralf
next prev parent reply other threads:[~2008-08-11 16:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-10 9:27 Ralf Angeli
2008-08-11 2:51 ` Katsumi Yamaoka
2008-08-11 16:35 ` Ralf Angeli [this message]
2008-08-11 22:54 ` Katsumi Yamaoka
2008-08-13 19:01 ` Reiner Steib
2008-08-14 0:48 ` Katsumi Yamaoka
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=87sktb8q84.fsf@photon.caeruleus.net \
--to=angeli@caeruleus.net \
--cc=ding@gnus.org \
--cc=yamaoka@jpl.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).