unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Almer S. Tigelaar" <almer@gnome.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: scroll-margin
Date: 28 Mar 2002 21:56:56 +0100	[thread overview]
Message-ID: <1017349016.364.24.camel@almer> (raw)
In-Reply-To: <200203262317.g2QNHuU08166@aztec.santafe.edu>

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

Dear Mr. Stallman,

On Wed, 2002-03-27 at 00:17, Richard Stallman wrote:
> I can't reproduce this problem.  Would you please specify a single
> *precise* test case?  Please read the Bugs section in the Emacs
> manual, which provides guidelines on how to write a bug report to give
> us the necessary information so we can fix the bug.

My apologies for being vague about the issue. A retry :

I've attached something which can reproduce the problem. To try :
- Use the "dot-emacs" as init-file.
- After startup open "emacstest".
- Type "M-x hang-exec". (all it does it randomly scroll up and down)
- Sit back, let it scroll and wait :-)

I've tested with the following versions :
GNU Emacs 21.1.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2001-12-06 on raven, modified by Debian
GNU Emacs 21.1.1 (i386-MSVC-NT5.0.2195) of 2001-10-22 on Buffy
GNU Emacs 21.2.1 (i386-MSVC-NT5.0.2195) of 2002-03-19 on Buffy

(I define a "hang" as 100% CPU usage and Emacs not responding and
redrawing at all)

Observations :
- All of them "hang" within 3 minutes after the call to "hang-exec".
- The problem does not occur when scroll-margin is set to "0".

Yours sincerely,

Almer S. Tigelaar

[-- Attachment #2: dot-emacs --]
[-- Type: text/plain, Size: 545 bytes --]

(setq scroll-margin 10)

(defun hang-callback ()
  (setq hang-sequence (random 4))
  (setq hang-lines (1+ (random 24)))
  (if (> hang-sequence 1)
      (message "sequence %d lines %d" hang-sequence hang-lines)
      (message "sequence %d" hang-sequence))
  (if (equal hang-sequence 0) (next-line))
  (if (equal hang-sequence 1) (previous-line))
  (if (equal hang-sequence 2) (scroll-down hang-lines))
  (if (equal hang-sequence 3) (scroll-up hang-lines)))

(defun hang-exec ()
  (interactive)
  (run-at-time nil 1 'hang-callback))

[-- Attachment #3: emacstest --]
[-- Type: text/plain, Size: 319 bytes --]

1
2
3
4
5
6
7
8
9
0
9
8
7
6
5
4
3
2
1
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
0

      reply	other threads:[~2002-03-28 20:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-22 12:25 scroll-margin Almer S. Tigelaar
2002-03-26 23:17 ` scroll-margin Richard Stallman
2002-03-28 20:56   ` Almer S. Tigelaar [this message]

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=1017349016.364.24.camel@almer \
    --to=almer@gnome.org \
    --cc=bug-gnu-emacs@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).