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: Lexical binding Date: Sat, 02 Apr 2011 14:38:31 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301769524 4511 80.91.229.12 (2 Apr 2011 18:38:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2011 18:38:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 02 20:38:40 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 1Q65iY-0008AO-FH for ged-emacs-devel@m.gmane.org; Sat, 02 Apr 2011 20:38:38 +0200 Original-Received: from localhost ([127.0.0.1]:45326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q65iY-00068r-2v for ged-emacs-devel@m.gmane.org; Sat, 02 Apr 2011 14:38:38 -0400 Original-Received: from [140.186.70.92] (port=49832 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q65iT-00068c-L0 for emacs-devel@gnu.org; Sat, 02 Apr 2011 14:38:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q65iS-0003xa-JW for emacs-devel@gnu.org; Sat, 02 Apr 2011 14:38:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:47583 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q65iS-0003xU-Bg for emacs-devel@gnu.org; Sat, 02 Apr 2011 14:38:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAIBsl03O+IOK/2dsb2JhbAClYniIebYUhWsElj8 X-IronPort-AV: E=Sophos;i="4.63,288,1299474000"; d="scan'208";a="102785421" Original-Received: from 206-248-131-138.dsl.teksavvy.com (HELO pastel.home) ([206.248.131.138]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 02 Apr 2011 14:38:31 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1B23D58E7E; Sat, 2 Apr 2011 14:38:31 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Sat, 2 Apr 2011 04:33:04 +0200") 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.183 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:138066 Archived-At: >> Just a note that the lexbind branch has been merged into trunk, > An interesting warning: > ;;; file test.el -*- lexical-binding: t -*- > (require 'cl) > (defun test (&rest args) > (loop for x in args)) > ;;; end of file > => test.el:4:1:Warning: Unused lexical variable `x' > => test.el:4:1:Warning: variable `_x' not left unused Indeed, if a variable is only assigned to, it's both "unused lexical var" and "not left unused". Stefan