🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by M. A. Kinstrey Thu, 21 Mar 1991 22:22
Updating a window while executing more ELISP cmds
#372
Author: M. A. Kinstrey
Date: Thu, 21 Mar 1991 22:22
17 lines
1259 bytes
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.
____________________________|________________________________________________
Updating a window while executing more ELISP cmds
#2121
Author: Ed Simpson
Date: Fri, 22 Mar 1991 14:45
12 lines
919 bytes
Try:

    (sit-for 0)

If that doesn't work, try:

    (save-excursion (set-buffer (other-buffer)))
    (sit-for 0)

----------
Ed Simpson    e-mail by ARPANET: evs@cs.duke.edu    tel.: (919)660-5107
P.O.Box 3140, Duke Univ. Medical Center, Durham, NC, USA 27710
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads