From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard M Stallman Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Sun, 07 Dec 2008 11:02:53 -0500 Message-ID: References: <87abbiody1.fsf@master.homenet> <877i6l5d8s.fsf@master.homenet> <874p1npvtj.fsf@master.homenet> <87ej0qci8g.fsf@master.homenet> <87y6yxm7xr.fsf@master.homenet> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1228665924 22046 80.91.229.12 (7 Dec 2008 16:05:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 16:05:24 +0000 (UTC) Cc: gscrivano@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 07 17:06:27 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 1L9M8w-0002dS-Jk for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2008 17:06:02 +0100 Original-Received: from localhost ([127.0.0.1]:49606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9M7l-0003NP-Sl for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2008 11:04:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9M6T-0002cu-9h for emacs-devel@gnu.org; Sun, 07 Dec 2008 11:03:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9M6R-0002bk-6h for emacs-devel@gnu.org; Sun, 07 Dec 2008 11:03:28 -0500 Original-Received: from [199.232.76.173] (port=38578 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9M6Q-0002bR-TV for emacs-devel@gnu.org; Sun, 07 Dec 2008 11:03:26 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:39779) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9M6Q-0006yM-FE for emacs-devel@gnu.org; Sun, 07 Dec 2008 11:03:26 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1L9M5t-0003sx-ML; Sun, 07 Dec 2008 11:02:53 -0500 In-reply-to: (message from Stefan Monnier on Sat, 06 Dec 2008 17:41:20 -0500) 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:106655 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. 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.