From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: dlet (need help): let: =?utf-8?Q?Symbo?= =?utf-8?B?bOKAmXM=?= value as variable is void: wrs::variables Date: Tue, 21 Sep 2021 07:28:47 +0300 Message-ID: References: <87pmt27s77.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10223"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.7+183 (3d24855) (2021-05-28) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 21 06:31:59 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 1mSXRn-0002SN-0O for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 06:31:59 +0200 Original-Received: from localhost ([::1]:39430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSXRl-0003Ou-2y for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 00:31:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSXQr-0003Of-MO for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 00:31:01 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:40493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSXQp-00087b-UQ for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 00:31:01 -0400 Original-Received: from localhost ([::ffff:41.210.154.92]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000005A04F.0000000061496001.00002F20; Mon, 20 Sep 2021 21:30:56 -0700 Mail-Followup-To: Michael Heerdegen , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87pmt27s77.fsf@web.de> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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:133118 Archived-At: * Michael Heerdegen [2021-09-21 02:18]: > Jean Louis writes: > > > I just know that this code worked, and now it doesn't: > > > > (dlet ((wrs::variables (make-hash-table :test 'equal)) > > (wrs::_ (puthash "areas_name" "Hyperscope" wrs::variables))) > > ) > > [...] > > No need to disadvise me using `dlet' as I do need it. Does anybody > > know if this could be bug or why it does not work? > > I think this should be due to this: > > | b72f88518b Make dlet work like let, not let* > | Mattias EngdegÄrd Sun Aug 1 17:05:48 2021 +0200 > | > | Change `dlet` so that it has binding semantics like `let` because that > | is what a user would expect and it allows a corresponding `dlet*` to > | be added later should the need arise. Fortunately the change has no > | effect where it is currently used. > > There was a discussion about that before the change, should not be hard > to find if you are interested in the reasons. > > AFAIR there were was not much interest in adding `dlet*'. I have dynamic binding script `rcd-template-eval' RCD Template Interpolation System for Emacs https://hyperscope.link/3/7/1/3/3/RCD-Template-Interpolation-System-for-Emacs.html If I call `rcd-template-eval' from dynamic binding script, I guess that works well. If I call it from lexical bound script but don't use the hash to pass it to `rcd-template-eval' that also works. If I wish to pass a hash to function `rcd-template-eval' from lexical bound script, that does not work without `dlet' and that is now broken as `dlet' behaves not any more similar to `let*' I have only 4120 WWW pages currently depending on `dlet', that is interest large enough for function to exist. If there is other solution that would work, I am glad to accept it, except that I cannot and do not want to change dynamically bound script to lexical for reasons previously explained. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/