Hi, > at least broke scrolling of articles with <RET> in Gnus and makes > using GDB in Emacs (gud-mode) very inconvenient if the value of > `scroll-margin' is non-zero. > > I don't use GNUS and I cannot test it. The crucial question is, > is Emacs redisplay behaving incorrectly, or is Gnus using it wrong? > > (progn > (setq scroll-margin 1) > (pop-to-buffer (get-buffer-create "*test*")) > (dotimes (i 100) (insert (number-to-string i) "\n")) > (goto-char (point-min)) > (scroll-up 1) > (move-to-window-line 0)) > > You should see that point will not be placed on the first window line > but in the middle of the window. > > That's exactly what the scroll margin is supposed to do: not let point > end up in the specified margin. So I don't think there is a bug.
Since the changes Ralf mentioned, I also have problem when scrolling down, when there is an header line. Below is the message I previously sent to emacs-devel. Sincerely, David -------- Original Message -------- Subject: scroll-down behave strangely with header line Date: Mon, 27 Jun 2005 13:29:03 +0200 (CEST) From: David PONCE <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [email protected] Hi all, Recently, I noticed that scroll-down behaves strangely when there is a header line displayed. The scroll bar is correctly updated, the line number on the mode line too, but the window display doesn't change or change very slowly. No problem with scroll-up. You can try to reproduce it like this: emacs -Q C-h i (To display an info buffer with an header line.) Visit a relatively long page like the one of the "GNU Free Documentation License", go to the end of the buffer, then repeat the <prior> key to scroll down. Do you observe the same thing? The only recent change that could be related to that seems this one: 2005-06-25 Richard M. Stallman <[EMAIL PROTECTED]> * macfns.c (Fx_show_tip): Pass new arg to try_window. * w32fns.c (Fx_show_tip): Pass new arg to try_window. * xfns.c (Fx_show_tip): Pass new arg to try_window. * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed. (redisplay_window): Handle try_window reporting point in scroll margin. Sincerely, David In GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, GTK+ Version 2.4.14) of 2005-06-27 on localhost X server distributor `The X.Org Foundation', version 11.0.60802000 configured using `configure '--with-gtk' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t _______________________________________________ Emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
