From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: justinhj@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Surrounding Lexical Variable Reference in the Body of defun Date: Wed, 22 Aug 2012 19:56:12 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <8b43586d-2ad4-4cf6-ae15-446e909bf496@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1345695617 30756 80.91.229.3 (23 Aug 2012 04:20:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2012 04:20:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 23 06:20:18 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T4Ou2-0006NJ-17 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Aug 2012 06:20:18 +0200 Original-Received: from localhost ([::1]:38386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4Otz-0002x7-Kw for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Aug 2012 00:20:15 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 174.1.232.63 Original-X-Trace: posting.google.com 1345695519 27569 127.0.0.1 (23 Aug 2012 04:18:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 23 Aug 2012 04:18:39 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=174.1.232.63; posting-account=TRYAnwoAAACQSZLtRGzVwoGHB-2kZf9n User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:194120 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86485 Archived-At: Does this mean that if you build from emacs trunk then the code above should compile and run just fine? In which case is the manual wrong (or at least out of date) about warning you not to refer to the surrounding lexical environment from inside a defun? Justin > I believe this is fixed in the Emacs trunk (where defun is just a macro > > that expands to a defalias+lambda and where the docstrings handling was > > improved accordingly). > > > > > > Stefan