From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: problems with flet on last emacs Date: Wed, 27 Jun 2012 17:55:45 +0200 Message-ID: <87y5n87nr2.fsf@thinkpad.tsdh.de> References: <87pq8lnd7v.fsf@gmail.com> <87ehp099bb.fsf@thinkpad.tsdh.de> <87sjdgq0ig.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340812562 21887 80.91.229.3 (27 Jun 2012 15:56:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 15:56:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Pascal J. Bourguignon" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 27 17:56:01 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 1Sjub2-0007Gf-Lm for ged-emacs-devel@m.gmane.org; Wed, 27 Jun 2012 17:56:00 +0200 Original-Received: from localhost ([::1]:47703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjub2-00041j-Oh for ged-emacs-devel@m.gmane.org; Wed, 27 Jun 2012 11:56:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjuaz-00041S-IH for emacs-devel@gnu.org; Wed, 27 Jun 2012 11:55:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sjuas-0002oj-Mi for emacs-devel@gnu.org; Wed, 27 Jun 2012 11:55:57 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:57908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjuas-0002oD-Gl for emacs-devel@gnu.org; Wed, 27 Jun 2012 11:55:50 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id BB05ED24A2; Wed, 27 Jun 2012 17:55:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h9jAZQASlEMk; Wed, 27 Jun 2012 17:55:48 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 1F84BD2499; Wed, 27 Jun 2012 17:55:47 +0200 (CEST) In-Reply-To: <87sjdgq0ig.fsf@kuiper.lan.informatimago.com> (Pascal J. Bourguignon's message of "Wed, 27 Jun 2012 16:42:47 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 141.26.64.15 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:151221 Archived-At: "Pascal J. Bourguignon" writes: >> Two times `x', and those should probably gensyms, anyway... > > They probably are. > > Try: > > (eq 'x (first (first (second (macroexpand '(flet ((foo () 1)) > (foo))))))) > and try: > > (let ((expansion (macroexpand '(flet ((foo () 1)) (foo))))) > (eq (first (first (second expansion))) > (first (second (second expansion))))) Ok, both are nil, so x and x are different symbols. cl uses macroexp's macro expansion macros at various places, and `macroexp-let2' uses (make-symbol "x") to create new symbols. That's not making it easier to understand... Bye, Tassilo