From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.w3m Subject: Re: labels usage Date: Tue, 12 Jun 2012 09:07:38 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339506495 8396 80.91.229.3 (12 Jun 2012 13:08:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2012 13:08:15 +0000 (UTC) Cc: emacs-w3m@namazu.org, emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 15:08:12 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SeQpH-0003F4-JH for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 15:08:03 +0200 Original-Received: from localhost ([::1]:44730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeQpH-00007b-Ch for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 09:08:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeQp6-000070-7R for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:08:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeQow-0003Sa-Dd for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:07:51 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeQow-0003Rx-9P for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:07:42 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q5CD7cN1000513; Tue, 12 Jun 2012 09:07:39 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 976F2AE239; Tue, 12 Jun 2012 09:07:38 -0400 (EDT) In-Reply-To: (Katsumi Yamaoka's message of "Tue, 12 Jun 2012 15:53:55 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4249=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4249> : streams <766917> : uri <1135124> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150904 gmane.emacs.w3m:8843 Archived-At: > (labels ((fx (arg) arg)) > (setq fn 'fx)) 'fx evaluates to the *symbol* `fx', not the *function* `fx'. In Elisp until Emacs-24, you can use pretty much interchangeably a function and the symbol to which it is bound, but with lexical scoping this is not true any more. CL's `labels' used to follow the "Elisp tradition" and looked inside `quote' to turn that symbol into a reference to the locally defined function. But that was fundamentally a bug. Stefan