From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78420 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: Gnus compatibility with the lexical binding branch Date: Fri, 08 Apr 2011 00:51:08 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87bp0h70kz.fsf@lifelogs.com> References: <871v2ako4c.fsf@fencepost.gnu.org> <87lj0ha52s.fsf@lifelogs.com> <87y64g6833.fsf@lifelogs.com> <87ei5tzneu.fsf@turtle.gmx.de> <877hbjkquz.fsf@lifelogs.com> <87tyemgenp.fsf@lifelogs.com> <87tyem3qy0.fsf@fencepost.gnu.org> <87lizygdhe.fsf_-_@lifelogs.com> <87pqp9ejip.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302241964 11001 80.91.229.12 (8 Apr 2011 05:52:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2011 05:52:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M26723@lists.math.uh.edu Fri Apr 08 07:52:41 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q84ca-0000oF-Pu for ding-account@gmane.org; Fri, 08 Apr 2011 07:52:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Q84bT-0003Lj-0j; Fri, 08 Apr 2011 00:51:31 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Q84bR-0003Lb-GC for ding@lists.math.uh.edu; Fri, 08 Apr 2011 00:51:29 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q84bO-0006UI-Q7 for ding@lists.math.uh.edu; Fri, 08 Apr 2011 00:51:28 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q84bM-0008IJ-JX for ding@gnus.org; Fri, 08 Apr 2011 07:51:24 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q84bM-0000Bb-A0 for ding@gnus.org; Fri, 08 Apr 2011 07:51:24 +0200 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2011 07:51:24 +0200 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2011 07:51:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Rm/DM2sIAGLUvbCcHSvSgMmQ3YA= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78420 gmane.emacs.devel:138304 Archived-At: On Tue, 29 Mar 2011 20:42:20 -0400 Stefan Monnier wrote: >> Is there an example of how to do this properly, how to test that it's >> correct, and is there any way to catch it at the byte-compile stage? SM> Example, no, and neither "tests that it's correct", but the Texinfo doc SM> includes a discussion of how to do it (using byte-compiler messages to SM> catch likely problems). I looked at (info "(elisp) Lexical Binding") and (info "(elisp) Converting to Lexical Binding") and it was educational, though a few examples would have been nice to explain how it all works, especially what the resulting `closure' cons cell looks like. Would you like me to write something up? (info "(elisp) Extent") incorrectly says that Emacs Lisp does not have closures so it probably should be fixed. I don't know the details well enough to offer a patch. Ted