unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: [az@ftc.ru: hl-line-mode conflicts with scroll-margin]
Date: 15 Jun 2004 12:42:19 +0200	[thread overview]
Message-ID: <m3n035drw4.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <m3brjl227w.fsf@kfs-l.imdomain.dk>

storm@cua.dk (Kim F. Storm) writes:

> Juri Linkov <juri@jurta.org> writes:
> 
> > storm@cua.dk (Kim F. Storm) writes:
> > > The following patch solves the problem.
> > 
> > Here is another related bug report for you :-)
> > 
> > If scroll-margin is not 0 and font-lock-mode is turned on, i.e.
> > 
> > (progn
> >   (setq scroll-margin 5)
> >   (global-font-lock-mode))
> > 
> > then after moving the cursor down until it reaches the fifth line from
> > the bottom of the window the cursor is placed in the center of the window
> > where it starts jumping forth and back: after 1 second it moves to the
> > end of the line, and after another 1 second moves to the beginning
> > of the following line.
> > 
> > This bug can be reproduced on GNU/Linux in Emacs versions starting
> > at least from 21.3.
> 
> 
> Ok, try this patch:


I have installed the patch.

I have also corrected scrolling at the top of the window when a header
line is present -- before, the header line counted as one line, so
the scroll margin seemed to be one less than the configured value.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2004-06-15 10:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-13  0:01 [az@ftc.ru: hl-line-mode conflicts with scroll-margin] Richard Stallman
2004-06-14 12:13 ` Kim F. Storm
2004-06-14 17:41   ` Juri Linkov
2004-06-14 22:40     ` Kim F. Storm
2004-06-15 10:42       ` Kim F. Storm [this message]
2004-06-15 11:11         ` Juri Linkov
2004-06-15 10:40   ` Kim F. Storm
  -- strict thread matches above, loose matches on Subject: below --
2004-06-05 13:48 Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3n035drw4.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).