[Top][All Lists]

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

Re: Asynchronous insertion / saving of buffers

From: Stefan Monnier
Subject: Re: Asynchronous insertion / saving of buffers
Date: Fri, 13 Apr 2012 11:22:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

> Obviously, we need some design how to handle asynchronous file
> operations. Any proposals?

I think it requires fairly major changes: you can't just make
insert-file-contents asynchronous because its behavior is defined (and
assumed by callers) to be synchronous.

I.e. you need a new way to "insert asynchronously".  It can be via a new
function `insert-file-asynchronously' or via a new argument (or special
arg value) of insert-file-contents, so that insert-file-contents knows
that the caller expects an async behavior.

And then all the callers that want to support async operations need to
be rewritten (and some of their callers as well).

Maybe working on the concurrency branch would be easier and more useful.


reply via email to

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