emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 06/10] add most lisp-level features


From: Tom Tromey
Subject: Re: [PATCH 06/10] add most lisp-level features
Date: Mon, 13 Aug 2012 15:02:08 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]