From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giuseppe Scrivano Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Wed, 03 Dec 2008 19:26:24 +0100 Message-ID: <87y6yxm7xr.fsf@master.homenet> References: <87abbiody1.fsf@master.homenet> <877i6l5d8s.fsf@master.homenet> <874p1npvtj.fsf@master.homenet> <87ej0qci8g.fsf@master.homenet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228328837 28556 80.91.229.12 (3 Dec 2008 18:27:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2008 18:27:17 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 03 19:28:19 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L7wSQ-00017p-P5 for ged-emacs-devel@m.gmane.org; Wed, 03 Dec 2008 19:28:19 +0100 Original-Received: from localhost ([127.0.0.1]:42007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7wRG-0000Kl-9w for ged-emacs-devel@m.gmane.org; Wed, 03 Dec 2008 13:27:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7wQo-0008RS-Cq for emacs-devel@gnu.org; Wed, 03 Dec 2008 13:26:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7wQm-0008PX-Bp for emacs-devel@gnu.org; Wed, 03 Dec 2008 13:26:37 -0500 Original-Received: from [199.232.76.173] (port=44229 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7wQm-0008PL-1F for emacs-devel@gnu.org; Wed, 03 Dec 2008 13:26:36 -0500 Original-Received: from joe.mail.tiscali.it ([213.205.33.54]:53162) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7wQk-0006hF-1a; Wed, 03 Dec 2008 13:26:34 -0500 Original-Received: from master.homenet (84.222.168.43) by joe.mail.tiscali.it (8.0.022) id 48F74907025DD8C7; Wed, 3 Dec 2008 19:26:31 +0100 Original-Received: from gscrivano by master.homenet with local (Exim 4.69) (envelope-from ) id 1L7wQa-0003wh-HC; Wed, 03 Dec 2008 19:26:24 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 02 Dec 2008 21:17:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106525 Archived-At: Stefan Monnier writes: >>> I rarely use multiple terminals, and when I use them, the current >>> restrictions are mostly bearable. OTOH I very often would like to keep >>> using my Emacs while it's byte-compiling some files, or while Gnus is >>> fetching some newsgroup. > >> This is exactly the problem I had when I first thought of threads. > >> Do you think we can solve it (at least partially) using a concurrent >> model? > > Of course. Even just with cooperative threads. Yes, I was referring to the cooperating threads model using a QUIT macro. How can it be used by gnus while fetching new data? Will it give the control to another thread immediately after the trasfer begins? I am concentrating on this example because usually when I fetch my emails, I wish to have threads in Emacs. Thanks, Giuseppe