From: Tassilo Horn <tassilo@member.fsf.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Ted Zlatanov <tzz@lifelogs.com>, emacs-devel@gnu.org
Subject: Re: general lazy list facility for Emacs Lisp?
Date: Thu, 24 Mar 2011 08:26:49 +0100 [thread overview]
Message-ID: <87r59xugg6.fsf@member.fsf.org> (raw)
In-Reply-To: <jwvbp11jyti.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 23 Mar 2011 17:51:05 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
Hi Stefan,
> Note that the byte-compiler won't like the above. You'll want either
>
> (let ((x 1))
> (defalias 'lex-test (lambda (y) (+ x y))))
>
> or
>
> (defalias 'lex-test (let ((x 1)) (lambda (y) (+ x y))))
>
> or something like that.
Yes, I know, just wanted to check if it works at all.
>>> and will report issues if I find one in my daily use.
>> Found one! C-h k lexical-binding RET errors.
>
> Hmm... works here.
Strange.
>> I've reported it, but the confirmation mail has not yet arrived.
>
> I'll wait for the precise report, then.
Oh, I'll have to add that this happens for any describe command, no
matter what I describe. First I get that error, but after quitting the
debugger, I get the *Help* buffer anyway...
>>> I guess, that there are many packages that won't work with
>>> lexical-binding set to t, right?
>
> Indeed. Tho check the Elisp manual for hints about how to convert
> (it's usually pretty easy).
Great, I'll see if I can help with some patches for transitioning the
packages I'm using most.
>> Seems to be a false assumption. At least org and Gnus are running
>> fine.
>
> I think you're misunderstanding your test, because I doubt either of
> Gnus or Org would work with lexical-binding without any additional
> modification. lexical-binding is a variable that applies to a
> file/buffer. E.g. it affects the compiler but not the compiled code.
Ah, ok. In the mean time, I've found out that Gnus does not build
(byte-compile) at all with a lexical-binding set to t.
Bye,
Tassilo
next prev parent reply other threads:[~2011-03-24 7:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-23 15:07 general lazy list facility for Emacs Lisp? Ted Zlatanov
2011-03-23 16:45 ` Tassilo Horn
2011-03-23 17:12 ` Ted Zlatanov
2011-03-23 17:46 ` Thierry Volpiatto
2011-03-23 18:09 ` Ted Zlatanov
2011-03-23 18:27 ` Thierry Volpiatto
2011-03-23 20:33 ` Ted Zlatanov
2011-03-23 20:43 ` Ted Zlatanov
2011-03-23 19:03 ` Tassilo Horn
2011-03-23 19:10 ` Tassilo Horn
2011-03-23 19:42 ` Ted Zlatanov
2011-03-24 5:27 ` Eric Schulte
2011-03-24 15:43 ` Ted Zlatanov
2011-03-25 12:30 ` Eric Schulte
2011-03-23 20:03 ` Stefan Monnier
2011-03-23 20:14 ` Jason Earl
2011-03-23 20:19 ` Tassilo Horn
2011-03-23 20:18 ` Tassilo Horn
2011-03-23 20:41 ` Tassilo Horn
2011-03-23 21:51 ` Stefan Monnier
2011-03-24 7:26 ` Tassilo Horn [this message]
2011-03-23 20:26 ` Ted Zlatanov
2011-03-23 17:13 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r59xugg6.fsf@member.fsf.org \
--to=tassilo@member.fsf.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tzz@lifelogs.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.