[comp.emacs] Updating a window while executing more ELISP cmds

kinstrey@wsqtba.crd.ge.com (M. A. Kinstrey) (03/22/91)

Does anyone know how to force a window or screen to repaint 
DURING the execution of an Elisp function. I have a function
where I want to switch-to-buffer (and actually see the newly
displayed buffer) while some additional Elisp code executes.

The purpose is to be able to read the newly displayed buffer
while I'm waiting for the rest of the command(s) to finish.

Everything I've tried so far will not repaint the screen until
the function has completed execution, and control is returned
to the keyboard.

-- 
-----------------------------------------------------------------------------
kinstrey@wsqtba.crd.ge.com  | Sattinger's Law:
uunet!crdgw1!wsqtba!kinstrey|      It works better if you plug it in.
____________________________|________________________________________________

abrown@hpcvca.CV.HP.COM (Allen Brown) (03/23/91)

> Does anyone know how to force a window or screen to repaint 
> DURING the execution of an Elisp function. I have a function
> where I want to switch-to-buffer (and actually see the newly
> displayed buffer) while some additional Elisp code executes.
>	kinstrey@wsqtba.crd.ge.com  | Sattinger's Law:

Follow this with (sit-for 1).  I think (sit-for 0) will also work.
--
  Allen Brown  abrown@cv.hp.com or abrown%hpcvca@hplabs.hp.com
	    or hplabs!hpcvca!abrown or "Hey you!"
  Q: What has 10 heads and no brains?  A: a committee.