[Top][All Lists]

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

Re: Call lisp function asynchronous

From: Katsumi Yamaoka
Subject: Re: Call lisp function asynchronous
Date: Thu, 07 Jun 2007 11:02:53 +0900
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

>>>>> In <address@hidden>
>>>>>   Juraj Kubelka wrote:

> Is it possible to call lisp function asynchronous?

It is possible but rather difficult to do it in earnest.  Good
examples are in emacs-w3m (

> I would like to use it with this intention: I have defined overlay on
> a region. And after few seconds I would like to delete this overlay.

>          #'(lambda (overlay)
>              (sleep-for 2)
>              (delete-overlay overlay))

> But I do not know how to call it without waiting for response (funcall
> delete-overlay overlay).
> Can you help me?  Or is there better solution for it?

A timer seems to answer such a purpose.  For example:

#'(lambda (overlay)
    (run-at-time 2 nil #'delete-overlay overlay))

reply via email to

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