From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gL0dCW/Q0l7LDgAA0tVLHw (envelope-from ) for ; Sat, 30 May 2020 21:30:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yFXxBG/Q0l7NeQAAB5/wlQ (envelope-from ) for ; Sat, 30 May 2020 21:30:23 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 22BD194038F for ; Sat, 30 May 2020 21:30:20 +0000 (UTC) Received: from localhost ([::1]:59218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jf93a-0008AS-LE for larch@yhetil.org; Sat, 30 May 2020 17:30:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf92y-0008AK-EI for emacs-orgmode@gnu.org; Sat, 30 May 2020 17:29:40 -0400 Received: from confino.investici.org ([2a00:c38:11e:ffff::a020]:64517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf92v-0007JX-MW for emacs-orgmode@gnu.org; Sat, 30 May 2020 17:29:40 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 6FA0D20FDC; Sat, 30 May 2020 21:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anche.no; s=stigmate; t=1590874174; bh=b9VI7dHNLH1zOScRjU+h7Nx4SLQZLM1WoFmNAO1Aj4c=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=s9d891QlMVd6DEKSjLMVjUTERaSZnIoFJA6znrpJoPn6ez122sqP2oHPZr6VBaje/ oAiS0k62O4MQBAOFM3K3hkx4V2/SCLnH0pOEcR//PgriuglzO5H6afM0P5LYC6RLMI gPOUhQGW4vMitmYnWEaDEHfv5Nwy0EWQeX4h0sHI= Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: mariotomo@inventati.org) by localhost (Postfix) with ESMTPSA id 67EAC20FD8; Sat, 30 May 2020 21:29:33 +0000 (UTC) Subject: Re: `with` as a list. To: Kyle Meyer References: <87h7vxuq8i.fsf@kyleam.com> From: Mario Frasca Message-ID: <1a448b21-cdf9-467d-e707-471bb8c01781@anche.no> Date: Sat, 30 May 2020 16:29:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <87h7vxuq8i.fsf@kyleam.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=2a00:c38:11e:ffff::a020; envelope-from=mario@anche.no; helo=confino.investici.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=anche.no header.s=stigmate header.b=s9d891Ql; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: 9yMQerqHcq88 oops .. you mentioned `cl-loop' and I found it interesting, in particular the de-structuring part. so I rewrote the (dolist (col-with …) …) as (cl-loop for (col . with) in … do …). so I could simplify `(car col-with)' and `(cdr col-with)', then I replaced the `do' with a `collect', so I could squash other `setq' into one, and finally removed the need to do a `reverse' on the result.  less parentheses, and 4 lines less. I added one regression test which is still respected, as is the rest of the test suite. so maybe all is fine. putting order in the commits is now the challenge.  thank you for your hints on git commit amend etc. I hope to be back soon with a single commit... ciao, Mario