From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Sun, 07 Dec 2008 15:52:48 -0500 Message-ID: References: <87abbiody1.fsf@master.homenet> <877i6l5d8s.fsf@master.homenet> <874p1npvtj.fsf@master.homenet> <87ej0qci8g.fsf@master.homenet> <87y6yxm7xr.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 1228683261 9240 80.91.229.12 (7 Dec 2008 20:54:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 20:54:21 +0000 (UTC) Cc: gscrivano@gnu.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 07 21:55:26 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 1L9Qeq-00035Y-IZ for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2008 21:55:16 +0100 Original-Received: from localhost ([127.0.0.1]:39416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9Qdf-0003sp-Pn for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2008 15:54:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9Qcb-0003RZ-Ty for emacs-devel@gnu.org; Sun, 07 Dec 2008 15:52:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9Qcb-0003QQ-6t for emacs-devel@gnu.org; Sun, 07 Dec 2008 15:52:57 -0500 Original-Received: from [199.232.76.173] (port=59078 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9Qcb-0003QK-0z for emacs-devel@gnu.org; Sun, 07 Dec 2008 15:52:57 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:49420) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9QcX-0004ZF-9u; Sun, 07 Dec 2008 15:52:53 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EALfGO0nO+KHA/2dsb2JhbACBbMo0gwWBJg X-IronPort-AV: E=Sophos;i="4.33,731,1220241600"; d="scan'208";a="30759759" Original-Received: from 206-248-161-192.dsl.teksavvy.com (HELO pastel.home) ([206.248.161.192]) by ironport2-out.teksavvy.com with ESMTP; 07 Dec 2008 15:52:49 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D21668219; Sun, 7 Dec 2008 15:52:48 -0500 (EST) In-Reply-To: (Richard M. Stallman's message of "Sun, 07 Dec 2008 11:02:53 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106663 Archived-At: >> Each thread should have its own local bindings. To do this >> requires swapping bindings in and out of the specpdls >> when switching threads. It is not hard. > Currently my guess is that generalizing the existing > buffer-local/frame-local/terminal-local machinery to include > thread-local is going to work well, with fairly limited changes. > That seems like a misunderstanding. No, it's not a misunderstanding. I'm just suggesting a different implementation technique. > What I am talking about does not involve adding another kind of > binding. It is a matter of correctly implementing the existing kinds > of binding in the context of multiple threads. Indeed, it is, and there several alternatives. Stefan