From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2DqhKLK1VWG3OQAAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 15:03:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yE8yJLK1VWGxJgAAbx9fmQ (envelope-from ) for ; Thu, 30 Sep 2021 13:03:46 +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 2EA339D20 for ; Thu, 30 Sep 2021 15:03:46 +0200 (CEST) Received: from localhost ([::1]:49232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVviz-00063m-68 for larch@yhetil.org; Thu, 30 Sep 2021 09:03:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVvhN-000619-8l for emacs-orgmode@gnu.org; Thu, 30 Sep 2021 09:02:05 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:33453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVvhL-0004MS-Be for emacs-orgmode@gnu.org; Thu, 30 Sep 2021 09:02:04 -0400 Received: by mail-pl1-x62c.google.com with SMTP id t4so3979727plo.0 for ; Thu, 30 Sep 2021 06:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=/BS3cVlx71NY6YeJeGk5e92n44kGTMRb3bqzrXDn/kA=; b=M580M9lnSdEosOeSP4B8P6VsLKjgN/MX2F8azKzNbxgRNX5GEf+NdlvvzgGfMzD3bQ sO6TvVCKQRb+nyAuKAV8YI8AgnShv/ge/soLDsXE6jeT/0g2DbUeSF922UTynbQgVCXf 0UBF68KhQ7TklAPqWhS7IvDTmtKw8vSPkPIPXVJO+ukzMtJKLPrBZnMtRrwl1XZS1GJv 4Da3uvM4B/LOKD87LmmoJSk0yFriN9rpIRRsbi66ye0VlWzYAjOhk4T26ClMnoT12ptg ueSKP9Et+gmeqvy/p3LMaTS7oq2ZmaZL/gBHN0KUfbEyxuwQFOm/H9YtNVvpi3AL3Oqh i1VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=/BS3cVlx71NY6YeJeGk5e92n44kGTMRb3bqzrXDn/kA=; b=0WfGlx80M0FoAMeho6xjfFVrRXwOzjTJj7xcvbD3fjg8TcooCPCXmZbQjq5s7CmO1u 0DPz3CJDt3fzhSXByfpsu0aIB+JB42KasLk/TbHSJUE1f4y7PQASIXoyfWHXRYcFopB8 1Q4It1XVNffgiJwOnHPHwL2hZ64/GEk+v6xhVwHliCMKhXMPLUizDzMwubhRbxZNeTUe EWuwsd9Q65bc5X538NHcl+obrRdwlpzSKcNVLtKqC6zh0VTgGgD7R/e8SOfs4N1umV9r X7Kjlq1669QEz3aZbjI+vlOzbInOa4f22mWRoJZwdsK842RMaX0YnbCkO0RksE9ww2B9 HrrA== X-Gm-Message-State: AOAM530VQEkiyesyzflptHAkV44r8oFXUxbbWJ32UWIfmdLn5/TeqUzQ Krk8acgqYVyXMmofMoU6fFwfyjrHxOsyZY8l X-Google-Smtp-Source: ABdhPJzpBO+mf4+TmzrJBXq/OxHf0rt9qNCBvoEWGf9Eyu36GqPKoXQcnJ5D96nmvmINoIfg0YqGoA== X-Received: by 2002:a17:90a:86:: with SMTP id a6mr12781616pja.190.1633006920833; Thu, 30 Sep 2021 06:02:00 -0700 (PDT) Received: from localhost ([210.3.160.230]) by smtp.gmail.com with ESMTPSA id v24sm3066264pff.107.2021.09.30.06.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 06:01:59 -0700 (PDT) From: Ihor Radchenko To: Robert Klein Subject: Re: BUG: org-table: table option =?utf-8?B?4oCcOm1pc3NpbmfigJ0=?= not working (in ob-gnuplot.el) In-Reply-To: <20210617211347.59e4de56@happy.intern.roklein.de> References: <20210617211347.59e4de56@happy.intern.roklein.de> X-Woof-Bug: t X-Woof-Patch: t Date: Thu, 30 Sep 2021 21:03:17 +0800 Message-ID: <87lf3erzai.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62c.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.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, Nicolas Goaziou Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633007026; 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=/BS3cVlx71NY6YeJeGk5e92n44kGTMRb3bqzrXDn/kA=; b=Wd6fzR3h6WaWA2AQuZ6Cfdnlt/7xIESF6g+VSU2CzJSf2LfBEfafLOfq32oS15xcYVsPI+ bbQZmb6xehP6BQZ97MH1iAWv3wqtv2pF7aKxQEVdh1IPEr8Q49KgiANNVnXq7yJrUETq8z YnMdu7ouAZD1cC3sUaGWnmVrPLyvp68enOGK0I+Jy0HnvZrPRXw2pi0JzosagOK4V3SkvL hF7Pt4HjZAyi36KLcoLTWbax+Mkpen9XDrouEV9vPEwgkJdYuNJtK1Q5Ndb21lLNqvy9dF SRkloLqTbIHVt3ht7zCy0WtARUyaGriPBEZm7vmNClbdGgl46/TBMu/41BFkUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633007026; a=rsa-sha256; cv=none; b=Yva2HoM43uDnwTzjNoNxfPbffZFzQ1JLITGElPJn8D3uoq6a3g2+MzwDNwVHu6GIsFzh64 A97xSrqpDwjwfH05mibbCaCgRSsi7Kth92a1iFUaZQgwXiP83D2eIJ0ruPYPcyKdH90h3Y Oxx4nKESskJCIAS/dskGvNp18UHY5c0T9PIeIzQ3GxsdF5agWXLnKHZWvJa87UhK9uqSuf oXYNDiNWT1PAVpPZsQEm83P2WYl65p/cdqIw8lCsb5VXaUhzfE6LB2ycDI/PCi+inHsUVc 0KubXUmgDztUG4aw+9uIZFA7WPx0vaG/nq1LkqjQ/r8i7401AjPQV1FWDXJv0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=M580M9ln; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Spam-Score: -3.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=M580M9ln; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Queue-Id: 2EA339D20 X-Spam-Score: -3.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: gKs/E80golwN --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Robert Klein writes: > When trying to run a table with missing values with ob-gnuplot.el > there's a =E2=80=9C:missing value=E2=80=9D option. ob-gnuplot is suppose= d to put the > =E2=80=9Cvalue=E2=80=9D into the place of empty cell values before callin= g on gnuplot. > It doesn't do this currently. Confirmed The problem is partially because of the way `org-table--to-generic-cell' works. It disallows custom processing of empty table cells unless both :raw and :backend arguments are supplied to `orgtbl-to-generic'. The attached patch should fix the issue, though it may be more reasonable to fix orgtbl-to-generic logic. Nicolas, Is there a rationale behind bypassing :fmt and :hfmt for empty table cells in `org-table--to-generic-cell'? In this patch, I have to work around this using :raw parameter in `orgtbl-to-generic' call. I do not feel like such workaround should be needed. Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-ob-gnuplot-Honour-missing-argument.patch >From 7033289d7e717eb841d550fbdbc0cc878b96cd32 Mon Sep 17 00:00:00 2001 Message-Id: <7033289d7e717eb841d550fbdbc0cc878b96cd32.1633005978.git.yantar92@gmail.com> From: Ihor Radchenko Date: Thu, 30 Sep 2021 20:40:37 +0800 Subject: [PATCH] ob-gnuplot: Honour :missing argument * lisp/ob-gnuplot.el (org-babel-gnuplot-table-to-data): Force applying `org-babel-gnuplot-quote-tsv-field' to empty table cells when converting org tables to gnuplot input. By default, `orgtbl-to-generic' ignores :fmt for empty table cells. We need to set :raw to non-nil AND :backend to non-nil to force custom formatting of empty table cells. Fixes https://orgmode.org/list/20210617211347.59e4de56@happy.intern.roklein.de --- lisp/ob-gnuplot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el index 6489c23f5..120aaa18e 100644 --- a/lisp/ob-gnuplot.el +++ b/lisp/ob-gnuplot.el @@ -272,7 +272,7 @@ (defun org-babel-gnuplot-table-to-data (table data-file params) (orgtbl-to-generic table (org-combine-plists - '(:sep "\t" :fmt org-babel-gnuplot-quote-tsv-field) + '(:sep "\t" :fmt org-babel-gnuplot-quote-tsv-field :raw t :backend ascii) params))))) data-file) -- 2.32.0 --=-=-=--