From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: [PATCH 06/10] add most lisp-level features Date: Mon, 13 Aug 2012 15:02:08 -0600 Message-ID: <87mx1y4ib3.fsf@fleche.redhat.com> References: <87a9y3etto.fsf@fleche.redhat.com> <502467BF.2020301@dancol.org> <87d32u7smb.fsf@fleche.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344891759 19162 80.91.229.3 (13 Aug 2012 21:02:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2012 21:02:39 +0000 (UTC) Cc: Daniel Colascione , Emacs discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 13 23:02:38 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T11mK-0003KK-5S for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2012 23:02:24 +0200 Original-Received: from localhost ([::1]:43070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T11mJ-0005vh-Al for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2012 17:02:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T11mE-0005ke-RB for emacs-devel@gnu.org; Mon, 13 Aug 2012 17:02:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T11mC-0003Vv-Jh for emacs-devel@gnu.org; Mon, 13 Aug 2012 17:02:18 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:13726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T11mC-0003Vb-Bz for emacs-devel@gnu.org; Mon, 13 Aug 2012 17:02:16 -0400 Original-Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7DL29uX017578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Aug 2012 17:02:09 -0400 Original-Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7DL28SJ001472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 13 Aug 2012 17:02:08 -0400 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Mon, 13 Aug 2012 16:46:54 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152497 Archived-At: I'm not really trying to continue this sub-thread more than it needs to be... Tom> Yet one more observation here. The Bordeaux approach lets you specify Tom> which bindings to capture. Stefan> AFAIK, you can easily do that manually with the "no capture" behavior Stefan> as well. All I could think of is backquote, which seems pretty gross. (make-thread `(lambda () (let ((default-directory ,default-directory)) ...))) I'm not really a fan of the Bordeaux approach either though. Better to have a convenience macro, I think. Tom> Maybe everything important really will use lexical binding. Stefan> At least the `make-thread' code will likely be in a lexical-binding Stefan> file, yes. It occurs to me now that even lexically bound code will use some variables which are always dynamic. It still seems odd not to capture these. Tom