From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kMIcGOHvKWMXSQAAbAwnHQ (envelope-from ) for ; Tue, 20 Sep 2022 18:52:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +MInGOHvKWORXwAA9RJhRA (envelope-from ) for ; Tue, 20 Sep 2022 18:52:49 +0200 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 1285314F48 for ; Tue, 20 Sep 2022 18:52:49 +0200 (CEST) Received: from localhost ([::1]:49628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oagUJ-0000Nr-Q9 for larch@yhetil.org; Tue, 20 Sep 2022 12:52:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oadLJ-0000wK-0t for emacs-orgmode@gnu.org; Tue, 20 Sep 2022 09:31:20 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:43596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oadLH-00047f-HW for emacs-orgmode@gnu.org; Tue, 20 Sep 2022 09:31:16 -0400 Received: by mail-pj1-x102c.google.com with SMTP id o70-20020a17090a0a4c00b00202f898fa86so2490862pjo.2 for ; Tue, 20 Sep 2022 06:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=g1qmBkxwKdNRNnFGlQUWVA2ABNYlYbShXUURhWakq3w=; b=eDAKJ7M1BTfBRpaZB6XzjOiXRBbvktQUlj/fuDO03tUpaPe+Gw+V/UKALjQjEGDz3R e1C3QDVK5HYErg82pctQjtXkAcrNBBJVcQpneGzKsihce8NsWXBkulDO609SjNv+Rd2y BVTruUQzD0SelAvzX+AE6LsJ2gew6RszVqTJxHeu55dcz/vZAu+8j0+JmDFWK0LMcUj2 Xy4d78Aqm24qnHxh+9S4lO8zIJZX1A4N+O6VeblBUvQuH+LGYEWVbbFw9LV4Ze4rEIgj fnK5C/vzzE2EoBzb3rf3r7tDZ81as9ksBiOb+JVS6SuvDDTsO9OBIpqtmdj5oWkah9kR /OqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=g1qmBkxwKdNRNnFGlQUWVA2ABNYlYbShXUURhWakq3w=; b=3KP50ENDsFh62SB2SCj5J16crEnR0a9d69agoxiHaQtEeUZRADhNlkpkpak+02qtzS VhyB6vK4Z84P7HxYPAAiSFD0aHPH2MMyS3h+l8pVOP4xue6xXUen+I8rI7xNqvTGvsJ5 F0LTzm870LWjXV5BcYUqsHER8YmMT8VAQGlPyvhGMxA0veJYWIJT39ioMSEBLz8r/sLD bIk2xoJHPvnrGpqeQAIbQUtS9lGgbDdyGKeSj6Pt6cax6KCXwrY6FCQRoMaJIYxE47ot ilRFOKsE3LRnWQf15g3XI8WUHydypRDCFat+ZHStLHHU6AfeyiegO8xayN8DMuGZdi7e YYsw== X-Gm-Message-State: ACrzQf3f1uLeMk0Gzk2sefdjaXVEoCpa+l2Qo09O9fl6IqvEUqwFH6VG 5C4jNUqzibZCdZxQcIRjfzM= X-Google-Smtp-Source: AMsMyM5K+Vkl0A8AGSvDiNqjnm1mDHz+pYbr25t5CTCBV4kEL9oGSzM0OJO3wqXcPyKdxbKf0+DS9A== X-Received: by 2002:a17:90b:4b44:b0:202:562a:b8c0 with SMTP id mi4-20020a17090b4b4400b00202562ab8c0mr3919505pjb.99.1663680674205; Tue, 20 Sep 2022 06:31:14 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:ad00:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id p2-20020a622902000000b0053fcb800ec0sm1693980pfp.9.2022.09.20.06.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 06:31:13 -0700 (PDT) From: Ihor Radchenko To: numbchild@gmail.com Cc: Org Mode Subject: Re: [PATCH] Updated patch, fixed data structure for table In-Reply-To: <62520bbb.1c69fb81.678b3.5ceaSMTPIN_ADDED_BROKEN@mx.google.com> References: <62520bbb.1c69fb81.678b3.5ceaSMTPIN_ADDED_BROKEN@mx.google.com> Date: Tue, 20 Sep 2022 21:32:04 +0800 Message-ID: <878rmeyxwr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663692769; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=g1qmBkxwKdNRNnFGlQUWVA2ABNYlYbShXUURhWakq3w=; b=OGbp2HxUNG58jpXrKuVxLkHmBqTzCGLAhMKiTMg9VAOjYYsgYsM48ZSinKTr/PFmzpy4rJ wCBdWTjaCXaUuEfqzBKB7ppTqF1WoRJ49LNQJ1yLfX5PqBWqoVNfpTD2mCCrEimQ3qyP84 J5/l/kjLq9EMK1//+u7NMNitF5UcbyuJMB5rxLTZAW34vPbOO933OJm0rNUhjikzZ8QoXq xYGw4fZvYVsP7GLwkc4UFEL1nyt1onzXaE8lJbfXz/49MtvKCIKJhiHUIqJ+y4rh3nv0PB BMMJ6uYPSn7pvT98HKZvQls8/HOGay4H4XxIOx9IF8K/jG0IvPGFNJISKwKpJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663692769; a=rsa-sha256; cv=none; b=JDEMn+wz7yGBztSRIY94lFruFcf1mZ9JvnZItVlyWhAq3Qs//MbICix9VGEq43J/1THK0v yK/jX5Q7o9d5SXDrfqNXcq6+S2HApXMxh79sxSUz1z6j12n+706CPTV22g2Hd2ReVemzan ciuyelTa93J4wvLwnTdmmntIL/lxP85unavEQt4XKR2MbSFtJFSYqRqYyNJxyDYwYifZqY EcmXLWx7h+aOYbIv1ljGTa0sKZGFD0FIqABNPBhV9xEvxQfQvTH8t/nAyz/vpGq5p4WDnX 2n2cfmrWeCBybZ/VK5TK0aJ2zG7stPc+ck8YtkjkkWSaTODS0xqeoUFUi0QmiQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eDAKJ7M1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eDAKJ7M1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1285314F48 X-Spam-Score: -3.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: fwcIVrS4K+PJ "Christopher M. Miles" writes: > + ;; variable's value is a list from org-mode passed table or list. > + (if (listp (cdr (car vars))) > + (format "(let [%s]\n%s)" > + (mapconcat > + (lambda (var) > + (format "%S '%S" (car var) (cdr var))) > + vars > + "\n ") Do I miss something, or you only test the first variable assignment here? What if there are multiple assignments (:var a=X,b=Y)? -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92