unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tom Tromey <tromey@redhat.com>
Cc: Daniel Colascione <dancol@dancol.org>,
	Emacs discussions <emacs-devel@gnu.org>
Subject: Re: [PATCH 06/10] add most lisp-level features
Date: Mon, 13 Aug 2012 21:13:24 -0400	[thread overview]
Message-ID: <jwvboieuvjn.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87mx1y4ib3.fsf@fleche.redhat.com> (Tom Tromey's message of "Mon,  13 Aug 2012 15:02:08 -0600")

> All I could think of is backquote, which seems pretty gross.
>   (make-thread
>     `(lambda ()
>        (let ((default-directory ,default-directory))
>          ...)))

   (let ((foo inhibit-read-only))
     (make-thread (lambda () (let ((inhibit-read-only foo)) ...)))

Of course, this presumes the use of lexical-binding, otherwise you need
to use lexical-let.

> It occurs to me now that even lexically bound code will use some
> variables which are always dynamic.

Such as?


        Stefan



  reply	other threads:[~2012-08-14  1:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 19:41 [PATCH 06/10] add most lisp-level features Tom Tromey
2012-08-10  1:45 ` Daniel Colascione
2012-08-13 14:51   ` Tom Tromey
2012-08-13 20:46     ` Stefan Monnier
2012-08-13 21:02       ` Tom Tromey
2012-08-14  1:13         ` Stefan Monnier [this message]
2012-08-14 14:46           ` Tom Tromey
2012-08-14 15:05             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvboieuvjn.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dancol@dancol.org \
    --cc=emacs-devel@gnu.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).