[Top][All Lists]

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

Re: Delayed redisplay problem

From: Johan Bockgård
Subject: Re: Delayed redisplay problem
Date: Fri, 16 Jun 2006 15:10:10 +0200
User-agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux)

address@hidden (Kim F. Storm) writes:

> It doesn't happen to me with the test case you provided.
> I might be doing something wrong, but I'm not sure how to proceed.
> Maybe you can give me a 100% step-by-step test case starting from
> emacs -D -Q.

Try it on a tty.

$ emacs -nw -Q

(defun comint-scroll-to-bottom (window display-start)
  (let ((proc (get-buffer-process (current-buffer))))
    (when (and proc window (window-live-p window))
      (let ((resize-mini-windows nil))
          (select-window window)
            (when (>= (point) (process-mark proc))
                (goto-char (point-max))
                (recenter -1)
                (sit-for 0)))))))))

(let ((explicit-shell-file-name "bash"))
  (add-hook 'window-scroll-functions 'comint-scroll-to-bottom nil t)
  (comint-send-string nil "while sleep 1 ; do echo -n x ; done\n")
  (display-buffer "*scratch*"))

M-x eval-buffer

If you do `C-x o' to switch away from the *shell* buffer the update
stops (for many seconds).

Johan Bockgård

reply via email to

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