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: lexbind Date: Mon, 03 Mar 2008 17:45:46 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204584381 30860 80.91.229.12 (3 Mar 2008 22:46:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2008 22:46:21 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "paul r" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 03 23:46:48 2008 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.50) id 1JWJQc-00023L-CG for ged-emacs-devel@m.gmane.org; Mon, 03 Mar 2008 23:46:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWJQ4-0002vf-Sz for ged-emacs-devel@m.gmane.org; Mon, 03 Mar 2008 17:46:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWJPt-0002jl-Cp for emacs-devel@gnu.org; Mon, 03 Mar 2008 17:45:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWJPr-0002fi-HC for emacs-devel@gnu.org; Mon, 03 Mar 2008 17:45:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWJPr-0002fS-8n for emacs-devel@gnu.org; Mon, 03 Mar 2008 17:45:51 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWJPn-0000x9-6E; Mon, 03 Mar 2008 17:45:47 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAHsOzEfO+LKX/2dsb2JhbACuD4EA X-IronPort-AV: E=Sophos;i="4.25,440,1199682000"; d="scan'208";a="15518309" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 03 Mar 2008 17:45:46 -0500 Original-Received: from pastel.home ([206.248.178.151]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id JZW32446; Mon, 03 Mar 2008 17:45:46 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0B7078279; Mon, 3 Mar 2008 17:45:46 -0500 (EST) In-Reply-To: (paul r.'s message of "Mon, 3 Mar 2008 23:18:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:91249 Archived-At: >> > Hopefully none since the lexbind branch only uses lexical-binding when >> > the code asks for it. > will this allow lexical binding for defun ? No. Just like there's no dynamically-scoped binding for functions, I don't know of any plans to have lexically-scoped bindings for functions. > Currently defun binds function to symbol globaly, so it can not be > used as a local-only function helper, for instance in > a tail-recursion. You can use (let ((loop (lambda (arg) body))) ... (funcall foo exp) ...) -- Stefan