From: Michael Albinus <michael.albinus@gmx.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: tramp-devel@gnu.org, emacs-devel@gnu.org
Subject: Re: Asynchronous insertion / saving of buffers
Date: Sat, 21 Apr 2012 10:57:04 +0200 [thread overview]
Message-ID: <87obqlzcm7.fsf@gmx.de> (raw)
In-Reply-To: <jwv1unhvo19.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 20 Apr 2012 22:06:44 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> With threads you could "just" do something like
>
> (run-thread (lambda ()
> (insert-file-contents ...)
> ...))
>
> so there'd be no need to provide new asynchronous versions of things
> like insert-file-contents.
But you still need a mean to inform the caller, that the parallel action
has been finished. And you need a mean to lock the buffer, while
insert-file-contents modifies it.
I haven't read the doc in the concurrency branch, maybe this would
answer my questions.
> Stefan
Best regards, Michael.
next prev parent reply other threads:[~2012-04-21 8:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-13 12:44 Asynchronous insertion / saving of buffers Michael Albinus
2012-04-13 15:22 ` Stefan Monnier
2012-04-20 13:41 ` Michael Albinus
2012-04-21 2:06 ` Stefan Monnier
2012-04-21 8:57 ` Michael Albinus [this message]
2012-04-21 14:17 ` Stefan Monnier
2012-04-22 18:27 ` Michael Albinus
2012-04-13 18:16 ` Ted Zlatanov
2012-04-20 13:49 ` Michael Albinus
2012-04-21 16:14 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87obqlzcm7.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tramp-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.