From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: general lazy list facility for Emacs Lisp? Date: Wed, 23 Mar 2011 17:51:05 -0400 Message-ID: References: <87pqphswn3.fsf@lifelogs.com> <877hbpzsy8.fsf@member.fsf.org> <87oc51rcal.fsf@lifelogs.com> <87tyetfymt.fsf@member.fsf.org> <87pqphfyak.fsf@member.fsf.org> <87hbatfv4q.fsf@member.fsf.org> <87bp11604d.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300917084 24919 80.91.229.12 (23 Mar 2011 21:51:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2011 21:51:24 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 22:51:20 2011 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.69) (envelope-from ) id 1Q2VxV-00007W-Us for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2011 22:51:18 +0100 Original-Received: from localhost ([127.0.0.1]:47999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2VxR-0006B4-CS for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2011 17:51:13 -0400 Original-Received: from [140.186.70.92] (port=57351 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2VxM-0006Az-Sj for emacs-devel@gnu.org; Wed, 23 Mar 2011 17:51:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2VxL-0007c0-6M for emacs-devel@gnu.org; Wed, 23 Mar 2011 17:51:08 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:10602 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2VxL-0007bZ-3n for emacs-devel@gnu.org; Wed, 23 Mar 2011 17:51:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAKoHik1MCqfZ/2dsb2JhbAClRXiITbsYhWkElXg X-IronPort-AV: E=Sophos;i="4.63,233,1299474000"; d="scan'208";a="97760613" Original-Received: from 76-10-167-217.dsl.teksavvy.com (HELO pastel.home) ([76.10.167.217]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 23 Mar 2011 17:51:05 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 29172591E8; Wed, 23 Mar 2011 17:51:05 -0400 (EDT) In-Reply-To: <87bp11604d.fsf@member.fsf.org> (Tassilo Horn's message of "Wed, 23 Mar 2011 21:41:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:137616 Archived-At: > (let ((x 1)) > (defun lex-test (y) > (+ x y))) 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. >> and will report issues if I find one in my daily use. > Found one! C-h k lexical-binding RET errors. Hmm... works here. > I've reported it, but the confirmation mail has not yet arrived. I'll wait for the precise report, then. >> 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). > 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. Stefan