From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: lisp: scoping vars in repetitive defuns Date: Wed, 18 Sep 2019 16:44:54 -0500 Message-ID: <87r24d6zzd.fsf@alphapapa.net> References: <87impps3ce.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52265) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAhl2-00069v-Jr for emacs-orgmode@gnu.org; Wed, 18 Sep 2019 17:45:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAhl1-0005gj-Pr for emacs-orgmode@gnu.org; Wed, 18 Sep 2019 17:45:04 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:43016 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAhl1-0005gP-Jd for emacs-orgmode@gnu.org; Wed, 18 Sep 2019 17:45:03 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iAhl0-000sLL-0g for emacs-orgmode@gnu.org; Wed, 18 Sep 2019 23:45:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Joost Kremers writes: > On Wed, Sep 18 2019, Matt Price wrote: >> Is thre away to do that kind of destructuring bind -- which >> binds *everything* in the plist, without knowing the symbol names in >> advance? that would be really great. > > let-alist perhaps? Well, let-alist is for alists, not plists. ;) But anyway, it's a macro, and it does require knowing keys at compile time. -let is a good alternative for plists and other maps.