From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: [SOLVED with `eval']: Why I cannot use this variable in macro call from function? Date: Wed, 9 Jun 2021 13:33:53 +0200 Message-ID: <20210609113353.GB4155@tuxteam.de> References: <20210608202326.GG14693@tuxteam.de> <20210609060959.GA21706@tuxteam.de> <20210609065129.GB21706@tuxteam.de> <20210609073928.GC21706@tuxteam.de> <20210609085406.GH21706@tuxteam.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8P1HSweYDcXXzwPJ" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33042"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 09 13:35:12 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqwUJ-0008Ni-W1 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 13:35:12 +0200 Original-Received: from localhost ([::1]:35396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqwUI-0004gG-UJ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 07:35:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqwT9-0003dx-BR for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 07:33:59 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:40462) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1lqwT6-0005CE-Rd for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 07:33:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=q2/6/KqYCj5H9tpah6E3rdUCsz/8XbZYyYvco8AvHVo=; b=HtiFY6+4Y2mhSLTiH9MKBjHXByaKJQJJp1mOFlL7bpaswaPDP+H83OXoOvC640Ieg2XDRbRVigroHLRclvGZ74NwyZ9knVU01Bv9isTW+fUO9OOn8JSe1J43IGTabaakS3VAnhsyzeYwU76cMJHY09hqTB6CeJgXBii4ortnDxLmzFniovOWojZI6hyb1ean9Hzn4MFuS+kPiAtG9+G9o0QsulKOp15ll9TY3v+0FJcBJ10tEEC1jCObwVzsAJOEAxa9XrUxSWP16VHqthpvotZr2KJiHt72y3VKbDKLC2QyZb+gNZMpC8xrNO8n6+QK14bF64n+GGLyARb3QaDfhA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1lqwT3-0001g8-TH for help-gnu-emacs@gnu.org; Wed, 09 Jun 2021 13:33:53 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130671 Archived-At: --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 09, 2021 at 01:56:45PM +0300, Jean Louis wrote: > * tomas@tuxteam.de [2021-06-09 11:54]: > > On Wed, Jun 09, 2021 at 11:22:38AM +0300, Jean Louis wrote: > > > * tomas@tuxteam.de [2021-06-09 10:40]: > > > > You snipped the (for me) interesting part: did you notice how > > > > `eval' jumps over the local declaration? > > >=20 > > > Do you mean variables within `let'? > >=20 > > Yes, it doesn't see them :) >=20 > Maybe in theory it does not see, but in reality it does see it as > `list' is evaluated before `eval', so the interned `rcd-symbol' and > variable `description' they get evaluated before `eval'. That sentence doesn't make any sense to me. It does or it doesn't. I propose to you the next experiment: * experiment 3 (let () (let ((x 42)) (eval '(progn (setq x 43) (message "in eval: x is %S" x))) (message "inner let: x is %S" x)) (message "outer let: x is %S" x)) (you might have to switch to the *Messages* buffer to see all three messages). What are the results? Do they correspond to your expectations? If not, why not? Cheers - t --8P1HSweYDcXXzwPJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmDApyEACgkQBcgs9XrR2kal9gCcCmWyATIBscxolZM2aHU1B4Zv BPUAnjQe1xRzsjl4SjXXmvMn6eg7c3u8 =JeF3 -----END PGP SIGNATURE----- --8P1HSweYDcXXzwPJ--