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 19:10:26 -0500 Message-ID: <87muf16t8t.fsf@alphapapa.net> References: <87impps3ce.fsf@fastmail.fm> <87r24d6zzd.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38621) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAk1v-0008To-3W for emacs-orgmode@gnu.org; Wed, 18 Sep 2019 20:10:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAk1u-00025I-2b for emacs-orgmode@gnu.org; Wed, 18 Sep 2019 20:10:39 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:38496 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAk1t-00023c-Rq for emacs-orgmode@gnu.org; Wed, 18 Sep 2019 20:10:38 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iAk1o-0013FJ-Ow for emacs-orgmode@gnu.org; Thu, 19 Sep 2019 02:10:32 +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 John Kitchin writes: > I am not sure why you have to loop over everything in a let statement > though. you can use something like > https://github.com/nicferrier/emacs-kv to get all the keys an loop > over those to do what you want, or you can just use cl-loop to do > that. Recent Emacs versions also have, e.g. map-keys from map.el.