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: Tue, 8 Jun 2021 22:23:26 +0200 Message-ID: <20210608202326.GG14693@tuxteam.de> References: <20210608183138.GA14693@tuxteam.de> <20210608200312.GE14693@tuxteam.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sClP8c1IaQxyux9v" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6901"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: Jean Louis , Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 08 22:24:11 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 1lqiGg-0001XC-MM for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 22:24:10 +0200 Original-Received: from localhost ([::1]:48174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqiGf-00075V-Oi for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 16:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqiG3-00071R-Dh for help-gnu-emacs@gnu.org; Tue, 08 Jun 2021 16:23:31 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:38581) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1lqiG0-0000FJ-7m for help-gnu-emacs@gnu.org; Tue, 08 Jun 2021 16:23:31 -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=NLxUhMzosnB5oC5titV0BjV+tfGnV04y7AyTdWAEAGo=; b=jD43VN7Xuf5JsKt0CGLfYiCl4loaqahpBnTQ4+mnilMS1APvFmjEGifaos2wT16volfLFglvgVqW5uEUGqVH7bqFe0W90oBbi1L1OS9qZgrm/0ytjzEmxlf/ilvoRWvv7R+BNuPHGnzeroDaWah5IwZpGnK3/SvALQa3OFdwltbyzfeVnHcYGlWsYxfSkSnCzdXlRug58qoQeHW2t8aKHkbFhKdWA4l0o7JSxgcl/c95eEBE3werWX01OUFMDjP2mC3QDxBHOovvab7zH6qjpaPt3kVHsYI15CUQFkjABJZ7EZD9Jlo+eqDoALnlxiKkk4NdGT8rJMLiSL+GkIvtog==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1lqiFy-0005iR-4S; Tue, 08 Jun 2021 22:23:26 +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:130646 Archived-At: --sClP8c1IaQxyux9v Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 08, 2021 at 11:12:26PM +0300, Jean Louis wrote: [it seems to be your mailer which is setting up Drew in the mail-followup-to: I exchanged the recipient] > * tomas@tuxteam.de [2021-06-08 23:04]: > > You want to define a variable whose name you can only know > > at run time? Did I understand that correctly? >=20 > Exactly. OK. Since you can't go back in time, you can set the variable for a part of the program which isn't yet compiled. Otherwise you'd have to "un-compile" your program first, right? > The dynamic history variable in this case. One step at a time. > - The database table "notes" references the table "people" >=20 > - User edits the table "notes" and wish to re-assign the note to > another person; pressing up down brings back the history items for > that specific table, and the variable becomes automatically defined > as `people-history' >=20 > - now imagine hundreds of such variables and they grow each week > dynamically whenever some new table gets added; >=20 > Larger problem is the mixed history causes problems, so this way there > is no global history. =2E..but I have the hunch that a variable might not be the right tool here. It smells of "dictionary" (hash or something). But I might be wrong. Cheers - t --sClP8c1IaQxyux9v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmC/0b4ACgkQBcgs9XrR2kbVhwCfURySfAu20U7rOEDmSBJjyv9e GMgAnRVs+JOX9IIFkxJZ7dtJoVBh2juQ =7N4V -----END PGP SIGNATURE----- --sClP8c1IaQxyux9v--