From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YMlJFJ6tqmECeAAAgWs5BA (envelope-from ) for ; Sat, 04 Dec 2021 00:51:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WO7lD56tqmEJLQAAbx9fmQ (envelope-from ) for ; Fri, 03 Dec 2021 23:51:58 +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 CFCBE29558 for ; Sat, 4 Dec 2021 00:51:57 +0100 (CET) Received: from localhost ([::1]:54188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtILM-0004Sd-3z for larch@yhetil.org; Fri, 03 Dec 2021 18:51:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtIJs-0004Oy-12 for emacs-orgmode@gnu.org; Fri, 03 Dec 2021 18:50:24 -0500 Received: from [2607:f8b0:4864:20::42b] (port=43768 helo=mail-pf1-x42b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtIJq-0001UE-3p for emacs-orgmode@gnu.org; Fri, 03 Dec 2021 18:50:23 -0500 Received: by mail-pf1-x42b.google.com with SMTP id n85so4306736pfd.10 for ; Fri, 03 Dec 2021 15:50:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=GZY1DCAE1rH/jOgpQ2h7ofz29ncYvNAM2PlZOuanbvQ=; b=WeOBN/oAE5k0FlwNBceTeZdPj+2vOTvRKHsqu8tPtcCHZPADIbafT8TrYeEnBspLZZ F1TtA4UJwENn1LwdQrVoxfJRjSGuBG0FNRAgV0YETqxb5SeO89qMKhGG4s1ZrLCaRkU/ 9VvKF3SOsGCAiK2/7WW8+jcxaGdUXFB9ztR9TLPvUN1PXCNUB6bodt61QfQsF4hacx1t 4Uv2M6D6fxau5+s4x8rApAneE2oTxDGdPXpo9yzsL0Vr2te8DnH8wc4+4Zht+oua0rd6 et300S5oVbeLsWh84KZGjM5XAiN7u7/tcpQUOpSAuzdcTO+lZCxe2XVFnPNoNgasnHPV h0OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=GZY1DCAE1rH/jOgpQ2h7ofz29ncYvNAM2PlZOuanbvQ=; b=Zu0Nrac2/gaFGXG61nv7LE4YkQwjNi0UjIVGm4qm16JYe2blb5NLBCjXQIfdmqnf+L 9ebA7Oksb6PtOhO6YqpxaTFfhevQxSIQxQHDqHDeCVqzt4QsF2UKBPMEBg2kkIXtZF6X /QUSBYuKHdBgLAqjAirWLDmvDQyNEC6p04/0p2hXtSy2mY0k8aq+am3y7+b0MgvHFUmp hv39O0SwNQILkEyHWpsU+PUBKYutQPzlAXWXmWAD+9rtk/g5uPOnoAURL80d/tnOfTnz H7fKgmvFZ0mPcbHrqJoV1Ki/2L3CBMqOFrDaFCoLJjYm+toFfDH/pBLn3XhnVpIUyINh C06g== X-Gm-Message-State: AOAM533UgNcC4LoKT8saEPAiZZqQnzRmkQoSFNOY88CDFQhUUNRpDGO5 uzkILcNqd3Gui12Bj1nqkuWFAsyqWUA= X-Google-Smtp-Source: ABdhPJxmbU5rDxbHBYy+U/UcvC/amJ+pK4587Z/KGruaGFsVPMPdE4HIa0wCre0iKEKtS4eRprRhvA== X-Received: by 2002:a05:6a00:1a04:b0:4a0:6e3:27b3 with SMTP id g4-20020a056a001a0400b004a006e327b3mr22158777pfv.24.1638575420504; Fri, 03 Dec 2021 15:50:20 -0800 (PST) Received: from dingbat (2001-44b8-31f2-bb00-ae68-ae3c-97fa-f661.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:ae68:ae3c:97fa:f661]) by smtp.gmail.com with ESMTPSA id ip6sm6447370pjb.42.2021.12.03.15.50.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 15:50:20 -0800 (PST) References: <4033335.1638552531@apollo2.minshall.org> <4040418.1638556010@apollo2.minshall.org> User-agent: mu4e 1.7.5; emacs 28.0.60 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: quotation marks in table cell vs. org-babel-ref-resolve Date: Sat, 04 Dec 2021 10:45:34 +1100 In-reply-to: <4040418.1638556010@apollo2.minshall.org> Message-ID: <87mtlhgsee.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::42b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638575517; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=GZY1DCAE1rH/jOgpQ2h7ofz29ncYvNAM2PlZOuanbvQ=; b=g8q7oBU9W5FJUjR66fJhs9uMGmFNGQ1GjhqD9oMu0RyHvJPSnJQVJGCOZ77byr24Ni3NxO AUIVe95XlNpv8AR/1irFo7AuSHb7yBRWiWzWpznqr3u7fZGqPRe7BMOa9FYuVWScmwJopN TVko65IiyqmmBTAB5iXeLlW/KhiLrlKornWpCx16Si/Lb0AZ7C3zlWO5TXBVEeVJFxSu0m U8wnVtRzmHkwKPORcOphEIBKMYQ/SJmESn+Xy/kuYjOCrZYkJ4Ad/vo5vsrozsStHyiHDh 06My1ctq2l5w9FwsIhE6bE/LIdw9qkHWF04gj41NJ5dzTEiaMOkG0uxNDnNeWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638575517; a=rsa-sha256; cv=none; b=i153ibzU6bc5FsCSYPsylIlCnmJ1ek53qJ3v2DHYGhIYOyRardH1hFBFYolqBhaL78NA0R zKc6VUJSjid/hpojP/84W5kNJBs3DYatCco+FCypm0WYtVe/RbAUPZlPG95tmPAtIzgYnw kJa4eC9BI6B8hLt9JI4G8fA2JqwNFANpdDwUoY/uws87kD6HUzdt26zA85G2+M+lzibhbJ Ox5+CUMd0TSzooQuppZ4M+NxdxmEFfDThkJ8n3cKeW3s1ousFA36/NQpqEEKPkE/Wt8Yv/ SpgaKMOJhOqP+gj2+r8vZqgEsT6NYP1Xte5Unqq5aGs3OAlAWo+aTf7x/wi6qQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="WeOBN/oA"; 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: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="WeOBN/oA"; 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: CFCBE29558 X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: HNvpXCRo0gPO Greg Minshall writes: > fwiw, tracing, the problem appears to be this line > ---- > ((eq (string-to-char cell) ?\") (read cell)) > ---- > in =org-babel-read=. > > presumably there are many cases where this is the right thing to do. > > but, maybe look for a simple =^"[^"]*"$= (i.e., a quotation mark, some > other stuff, a quotation mark, and *nothing* else in the cell)? > > or (heaven help us), something more complicated, with random escaped > quotation marks inside the "cell"? > > cheers, Greg The key question is what is the use case for having this 'mixed' content in a table cell? I really don't like the idea of adding even more regexp processing of contents in order to resolve complexities in data formats which are rare. the benefit of the line you identified is that it is simple and easy to maintain. There may be edge cases where it does not work correctly, but perhaps the right solution in those situations is fix the format of the data in the table rather than complicate the functions used to extract the data from a table.