emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scroll-down and partially-visible lines.


From: Matt Hodges
Subject: scroll-down and partially-visible lines.
Date: Fri, 18 Feb 2005 14:54:45 +0000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/22.0.50 (gnu/linux)

In GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, GTK+ Version 2.6.2)
 of 2005-02-14 on dugong
Distributor `The XFree86 Project, Inc', version 11.0.40300001
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: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

I see a problem with scroll-down and partially-visible lines which can
be triggered in view-mode.  Run `emacs -q' and evaluate:

    (progn
      (set-face-attribute 'modeline nil :family "helv")
      (find-file (expand-file-name "NEWS" data-directory))
      (set-buffer "NEWS")
      (goto-char (point-max))
      (view-mode 1)
      (split-window))

Now recenter point at the bottom of the window with `M-- C-l' and
scroll backward one line with `y' (or C-u 1 M-v).  The cursor is
displayed momentarily on a partially-visible line, and then point is
recentered, its value being the same.  (When there is no possibility
of partially-visible lines, point moves up one line and remains on the
last line of the window.)  Hence, pressing y over and over can mean
you go round in circles (providing a redisplay happens for the
situation detailed above).

Note that when the window isn't split, if point is on a
partially-visible line the recentering doesn't occur, and point moves
up two lines after every second one-line scroll.

Thanks.

Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]