From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: sending function arguments to recursive function calls Date: Thu, 09 May 2013 08:23:31 -0400 Message-ID: References: <0F54256BD7B94384AC4DDA919D502C20@us.oracle.com> <4D1DF48A7223443FA454C07B20B80E21@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368102231 31483 80.91.229.3 (9 May 2013 12:23:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 May 2013 12:23:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Gauthier =?iso-8859-1?Q?=D6stervall?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 09 14:23:49 2013 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 1UaPsy-00056A-Vd for geh-help-gnu-emacs@m.gmane.org; Thu, 09 May 2013 14:23:49 +0200 Original-Received: from localhost ([::1]:43853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaPsy-0000LY-Ia for geh-help-gnu-emacs@m.gmane.org; Thu, 09 May 2013 08:23:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaPsk-0000LP-Lp for help-gnu-emacs@gnu.org; Thu, 09 May 2013 08:23:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaPsj-0005UW-KY for help-gnu-emacs@gnu.org; Thu, 09 May 2013 08:23:34 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:51920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaPsj-0005UO-GR for help-gnu-emacs@gnu.org; Thu, 09 May 2013 08:23:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rwb8/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFG4rwb8/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="11632722" Original-Received: from 184-175-6-252.dsl.teksavvy.com (HELO pastel.home) ([184.175.6.252]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 09 May 2013 08:23:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0A5F067A27; Thu, 9 May 2013 08:23:32 -0400 (EDT) In-Reply-To: ("Gauthier =?iso-8859-1?Q?=D6stervall=22's?= message of "Thu, 9 May 2013 10:35:36 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:90574 Archived-At: > Is there a way (and is it better) to set lexical-binding = t locally > for the new function? No. But converting existing dynamically scoped code to lexical scoping is usually pretty easy: set lexical-binding to t at the top of the file, then byte-compile it, then fix the warnings, and you should be good to go. Sometimes there's some extra tricks undetected by the simple checks performed by the byte-compiler, so it doesn't always work as smoothly, but in most cases it's really a straightforward process. Stefan