emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org Babel "swallows" table column groups
@ 2024-06-28 12:43 Rudolf Adamkovič
  2024-06-28 15:28 ` Ihor Radchenko
  2024-06-28 17:42 ` S. Sajad Hosseini Balef
  0 siblings, 2 replies; 6+ messages in thread
From: Rudolf Adamkovič @ 2024-06-28 12:43 UTC (permalink / raw)
  To: emacs-orgmode

Given the source block

  #+BEGIN_SRC emacs-lisp
  (list (list 1 2) (list "/" "<>") 'hline (list 3 4) (list 5 6))
  #+END_SRC

Org Babel outputs

  #+RESULTS:
  | 1 | 2 |
  |---+---|
  | 3 | 4 |
  | 5 | 6 |

with the second element of the list

  (list "/" "<>")

swallowed, without a word.

Why would Org Babel do this?

And, how can one output tables with column groups?

Rudy
-- 
"I do not fear death.  I had been dead for billions and billions of years
before I was born, and had not suffered the slightest inconvenience from it."
--- Mark Twain, paraphrased

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Org Babel "swallows" table column groups
  2024-06-28 12:43 Org Babel "swallows" table column groups Rudolf Adamkovič
@ 2024-06-28 15:28 ` Ihor Radchenko
  2024-06-30  8:53   ` Rudolf Adamkovič
  2024-06-28 17:42 ` S. Sajad Hosseini Balef
  1 sibling, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2024-06-28 15:28 UTC (permalink / raw)
  To: Rudolf Adamkovič; +Cc: emacs-orgmode

Rudolf Adamkovič <rudolf@adamkovic.org> writes:

> Given the source block
>
>   #+BEGIN_SRC emacs-lisp
>   (list (list 1 2) (list "/" "<>") 'hline (list 3 4) (list 5 6))
>   #+END_SRC
>
> Org Babel outputs
> ...
> with the second element of the list
>
>   (list "/" "<>")
>
> swallowed, without a word.
>
> Why would Org Babel do this?
>
> And, how can one output tables with column groups?

This is because of how `orgtbl-to-generic' is implemented. It is taking
pieces from the full ox.el exporter, hard-coding certain things. For
example, it always removes special table lines:

    ;; Since we are going to export using a low-level mechanism,
    ;; ignore special column and special rows manually.

ox.el used to do the same recently, until I added a feature to keep
special lines in tables during export (for ox-org purposes).

See also https://list.orgmode.org/orgmode/87bkjy9tew.fsf@mat.ucm.es/

-- 
Ihor Radchenko // yantar92,
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>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Org Babel "swallows" table column groups
  2024-06-28 12:43 Org Babel "swallows" table column groups Rudolf Adamkovič
  2024-06-28 15:28 ` Ihor Radchenko
@ 2024-06-28 17:42 ` S. Sajad Hosseini Balef
  2024-06-30  8:13   ` Rudolf Adamkovič
  1 sibling, 1 reply; 6+ messages in thread
From: S. Sajad Hosseini Balef @ 2024-06-28 17:42 UTC (permalink / raw)
  To: rudolf; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 9847 bytes --]

 From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp2.migadu.com ([2001:41d0:403:58f0::])
     (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
     by ms13.migadu.com with LMTPS
     id QIBcKZmwfmY+JwAAe85BDQ:P1
     (envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
     for <larch@yhetil.org>; Fri, 28 Jun 2024 12:46:17 +0000
Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::])
     (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
     by mp2.migadu.com with LMTPS
     id QIBcKZmwfmY+JwAAe85BDQ
     (envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
     for <larch@yhetil.org>; Fri, 28 Jun 2024 14:46:17 +0200
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
     dkim=pass header.d=adamkovic.org header.s=fm3 header.b="U/f6NnaG";
     dkim=pass header.d=messagingengine.com header.s=fm2 header.b=FpL7cHAz;
     dmarc=pass (policy=none) header.from=adamkovic.org;
     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"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
     s=key1; t=1719578777;
  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:
content-transfer-encoding:content-transfer-encoding:list-id:list-help:
      list-unsubscribe:list-subscribe:list-post:dkim-signature;
     bh=C2cE9CoSnYYr2BGJev1QhmuB1Z+39WbbFyxYuCDvrCk=;
  b=mYHAOOLr3cUA4aYA3SU7IsKHuxaclFCk27AU1SZiRUgLyiT1lDhE9/uXwoM+BE/Bl12TCy
  O67TZgZoPmHAS9aUo6HFawsZiTKqzGBnRn3T0p8RVVta6m8VDiaJ08NZxDkGHfx1CWbvAb
  dB+LT58cjfNpyI7UNPzUP1hyTg0uJ5xcXwFff623wk7IvYAFvhlrgNahZlB4V9Jq5DA8f2
  6NnHeWEtw2FAS6kWCUaxnfM3wFB+e6UhoJONlS0dQSQprJt1N6FAXQjUfMZMmOvjD9Y7+1
  5C3fybFY2ItmnDgFRRX5tOosLuUZ4jSPDwCdTK6GmU2utoBBJ0fe5+qjiF8uvQ==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719578777; a=rsa-sha256; cv=none;
  b=XAkAEOoaYm+MQAgT66QHfA9rSiEjaFRNPhAjUf2dAkGq0UrAhJxN7VCUZYzXEJNJTTrkoH
  kq+r336QjJb0zqAz0iVXpAJ+O0awc9x9KBPrqUnKoLWpsk41I1QuOR9mrak7XLUJbLYOri
  QnhQ+L5h5uNEYW+Or2Q5J9YXP/QxiCCe/CK+7yqPBxGj21i4sxkP3St2wNN304tlbWKFk8
  b+69YfUiMQirKk0+f3rQ7O6z9ZIUKKTAhpC0UWOG9EFZLqzMKMezs+DTyDnM/tlAJ4BPpJ
  xyZjm5m5ScvCFFFEYBwKgQes/SAeNwa6aylpmclNLr+0PegBkiJAcQk84LPuEA==
ARC-Authentication-Results: i=1;
     aspmx1.migadu.com;
     dkim=pass header.d=adamkovic.org header.s=fm3 header.b="U/f6NnaG";
     dkim=pass header.d=messagingengine.com header.s=fm2 header.b=FpL7cHAz;
     dmarc=pass (policy=none) header.from=adamkovic.org;
     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"
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 1ED15631B9
     for <larch@yhetil.org>; Fri, 28 Jun 2024 14:46:16 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
     by lists.gnu.org with esmtp (Exim 4.90_1)
     (envelope-from <emacs-orgmode-bounces@gnu.org>)
     id 1sNAy0-0007BS-8n; Fri, 28 Jun 2024 08:44:40 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
  by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
  (Exim 4.90_1) (envelope-from <rudolf@adamkovic.org>)
  id 1sNAx3-00055r-TL
  for emacs-orgmode@gnu.org; Fri, 28 Jun 2024 08:43:42 -0400
Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153])
  by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
  (Exim 4.90_1) (envelope-from <rudolf@adamkovic.org>)
  id 1sNAx1-0005sX-40
  for emacs-orgmode@gnu.org; Fri, 28 Jun 2024 08:43:40 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
  by mailfhigh.nyi.internal (Postfix) with ESMTP id 0EF6F114029B
  for <emacs-orgmode@gnu.org>; Fri, 28 Jun 2024 08:43:36 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
  by compute3.internal (MEProxy); Fri, 28 Jun 2024 08:43:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org;
  h=cc:content-transfer-encoding:content-type:content-type:date
  :date:from:from:in-reply-to:message-id:mime-version:reply-to
  :subject:subject:to:to; s=fm3; t=1719578616; x=1719665016; bh=C2
  cE9CoSnYYr2BGJev1QhmuB1Z+39WbbFyxYuCDvrCk=; b=U/f6NnaGxnB/sGWrY2
  Y5n0EJ0AyjVkricdpx83GBawskrgGOkGl9phajOEiIzXBaSPmlxydFv41FpYI8O2
  jB87FxiuDYC4rGcfLvaAbQnN/Oy7jj1ckhb8mLABGWFufKgr4SPsQqw7TtoevQcQ
  d4DAMPkelQev/OeGp0qplQcRYe5f74amOE2e8ejig126BbzWGnBZX+FeyFqFjJoq
  XD7kGtvljKS0NFSADZqBHfhHr3WSJv+DpgT1YC8WvPGZTNzDwXl9nPSvp99Ytw+l
  2F4WIlUavjhu6qWHrZZS/xj+04FzJizRc1taS/+zWlqBhPkYh0Vv6/ndJED/lhR2
  kDlw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
  messagingengine.com; h=cc:content-transfer-encoding:content-type
  :content-type:date:date:feedback-id:feedback-id:from:from
  :in-reply-to:message-id:mime-version:reply-to:subject:subject:to
  :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
  fm2; t=1719578616; x=1719665016; bh=C2cE9CoSnYYr2BGJev1QhmuB1Z+3
  9WbbFyxYuCDvrCk=; b=FpL7cHAzSzzkCurGnmXT8VggmSV5JB4dkWmFjy00+QAn
  UVMCvaedhVIxr8T2vC44AFAmwV0ifJqp0/2AwJWZEbTb9+IJEyDB5ugJhmOyEAAL
  vXnj/s/XRxeUeqFX+lAT3zgOUMrJlPfZM66DVQF/JrvWiupvSkBsWmhE0JB7kLe/
  lthxqaSHTy3OnXgK1QN97QjrhfCx/Ubu511muQM1YVEGNuleHJH4Xw3coXpy8D56
  iW6GlDjzzBu+y0RhmHqSTNw+s0ZJVvNMrBWFVed+Moo3mFy0doAhQVI4OHzNBJbM
  Wl67brZMWhGuCKoz/9Yw3k1oDLCzGs/QzJUHRcb9rA==
X-ME-Sender: <xms:969-ZkDJVQhDE-_azZm_eD_fZ9qkRmCrNUEJrazGy16MlCyZS9-9YA>
  <xme:969-ZmhMTO6Y43v1vnSXyXImAPR7GmctpeQ27vr_6CuHXju-6cQ7A_d7ZigwVD6TY
  Eckl0vzNwwjEQATvGE>
X-ME-Received: 
<xmr:969-ZnlQYprvVdAUJ07CFcNxy-zbuumnsKpptGp-FxnE5GRMQc0VO54U4vaNGfvAzIuHc-Fq4cziuVf4Eg>
X-ME-Proxy-Cause: 
gggruggvucftvghtrhhoucdtuddrgeeftddrtdeigdehhecutefuodetggdotefrodftvf
  curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
  uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtqhertddttd
  ejnecuhfhrohhmpeftuhguohhlfhcutegurghmkhhovhhitgcuoehruhguohhlfhesrggu
  rghmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvghrnhepkeelkeevtdeiudevvedtff
  eghfdvgffhkeeileehtefhudeiueetudegheffvdffnecuffhomhgrihhnpegruggrmhhk
  ohhvihgtrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
  hfrhhomheprhhuugholhhfsegruggrmhhkohhvihgtrdhorhhg
X-ME-Proxy: <xmx:969-ZqxlmHIW5aG7HfF88IRUA1iVIs3at80dC05XI2WnWVEP27BTIA>
  <xmx:969-ZpSWD9UJjYp8JJ_lCBelL0U8OgF1diQbjELcfDLmoXQu9NZmmw>
  <xmx:969-ZlaxQmK47xtHjGvAGrgDU2ITq4Sz7E-yI_JrRqXa10aXbFKRgQ>
  <xmx:969-ZiRXnkN4w8N3yk3TM09yE425hbpn6Vx8BwJm0ilF8pNd6ejt5Q>
  <xmx:-K9-ZoL6_Q2ROQKMrLOnrs3mYrUdKk9yP5HBpLy-BT8i0PBuagsQNaCt>
Feedback-ID: i88214938:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
  <emacs-orgmode@gnu.org>; Fri, 28 Jun 2024 08:43:34 -0400 (EDT)
From: =?utf-8?Q?Rudolf_Adamkovi=C4=8D?= <rudolf@adamkovic.org>
To: emacs-orgmode@gnu.org
Subject: Org Babel "swallows" table column groups
Date: Fri, 28 Jun 2024 14:43:31 +0200
Message-ID: <m2h6dd9r0s.fsf@adamkovic.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=103.168.172.153;
  envelope-from=rudolf@adamkovic.org; helo=fhigh2-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.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,
  RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
  <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
  <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Spam-Score: -7.56
X-Spam-Score: -7.56
X-Migadu-Queue-Id: 1ED15631B9
X-Migadu-Scanner: mx11.migadu.com
X-TUID: NeUcjxz0HfbD

 > Given the source block
 >
 >   #+BEGIN_SRC emacs-lisp
 >   (list (list 1 2) (list "/" "<>") 'hline (list 3 4) (list 5 6))
 >   #+END_SRC
 >
 > Org Babel outputs
 >
 >   #+RESULTS:
 >   | 1 | 2 |
 >   |---+---|
 >   | 3 | 4 |
 >   | 5 | 6 |
 >
 > with the second element of the list
 >
 >   (list "/" "<>")
 >
 > swallowed, without a word.
 >
 > Why would Org Babel do this?
 >
 > And, how can one output tables with column groups?
 >
 > Rudy
 > --=20
 > "I do not fear death.  I had been dead for billions and billions of years
 > before I was born, and had not suffered the slightest inconvenience 
from it=
 > ."
 > --- Mark Twain, paraphrased
 >
 > Rudolf Adamkovi=C4=8D <rudolf@adamkovic.org> [he/him]
 > http://adamkovic.org

It's seems related to the "<>" bacuse with any other strings I haven't 
such issue. I tried to fix ob-emacs-lisp.el but there was no success at 
the moment.

S. Sajad Hosseini Balef

shosseinib@ut.ac.ir

[-- Attachment #2: Org-Babel-swallows-table-column-groups.txt --]
[-- Type: text/plain, Size: 9185 bytes --]

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp2.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms13.migadu.com with LMTPS
	id QIBcKZmwfmY+JwAAe85BDQ:P1
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 28 Jun 2024 12:46:17 +0000
Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp2.migadu.com with LMTPS
	id QIBcKZmwfmY+JwAAe85BDQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 28 Jun 2024 14:46:17 +0200
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=adamkovic.org header.s=fm3 header.b="U/f6NnaG";
	dkim=pass header.d=messagingengine.com header.s=fm2 header.b=FpL7cHAz;
	dmarc=pass (policy=none) header.from=adamkovic.org;
	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"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1719578777;
	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:
	 content-transfer-encoding:content-transfer-encoding:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=C2cE9CoSnYYr2BGJev1QhmuB1Z+39WbbFyxYuCDvrCk=;
	b=mYHAOOLr3cUA4aYA3SU7IsKHuxaclFCk27AU1SZiRUgLyiT1lDhE9/uXwoM+BE/Bl12TCy
	O67TZgZoPmHAS9aUo6HFawsZiTKqzGBnRn3T0p8RVVta6m8VDiaJ08NZxDkGHfx1CWbvAb
	dB+LT58cjfNpyI7UNPzUP1hyTg0uJ5xcXwFff623wk7IvYAFvhlrgNahZlB4V9Jq5DA8f2
	6NnHeWEtw2FAS6kWCUaxnfM3wFB+e6UhoJONlS0dQSQprJt1N6FAXQjUfMZMmOvjD9Y7+1
	5C3fybFY2ItmnDgFRRX5tOosLuUZ4jSPDwCdTK6GmU2utoBBJ0fe5+qjiF8uvQ==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719578777; a=rsa-sha256; cv=none;
	b=XAkAEOoaYm+MQAgT66QHfA9rSiEjaFRNPhAjUf2dAkGq0UrAhJxN7VCUZYzXEJNJTTrkoH
	kq+r336QjJb0zqAz0iVXpAJ+O0awc9x9KBPrqUnKoLWpsk41I1QuOR9mrak7XLUJbLYOri
	QnhQ+L5h5uNEYW+Or2Q5J9YXP/QxiCCe/CK+7yqPBxGj21i4sxkP3St2wNN304tlbWKFk8
	b+69YfUiMQirKk0+f3rQ7O6z9ZIUKKTAhpC0UWOG9EFZLqzMKMezs+DTyDnM/tlAJ4BPpJ
	xyZjm5m5ScvCFFFEYBwKgQes/SAeNwa6aylpmclNLr+0PegBkiJAcQk84LPuEA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=adamkovic.org header.s=fm3 header.b="U/f6NnaG";
	dkim=pass header.d=messagingengine.com header.s=fm2 header.b=FpL7cHAz;
	dmarc=pass (policy=none) header.from=adamkovic.org;
	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"
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 1ED15631B9
	for <larch@yhetil.org>; Fri, 28 Jun 2024 14:46:16 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1sNAy0-0007BS-8n; Fri, 28 Jun 2024 08:44:40 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rudolf@adamkovic.org>)
 id 1sNAx3-00055r-TL
 for emacs-orgmode@gnu.org; Fri, 28 Jun 2024 08:43:42 -0400
Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rudolf@adamkovic.org>)
 id 1sNAx1-0005sX-40
 for emacs-orgmode@gnu.org; Fri, 28 Jun 2024 08:43:40 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailfhigh.nyi.internal (Postfix) with ESMTP id 0EF6F114029B
 for <emacs-orgmode@gnu.org>; Fri, 28 Jun 2024 08:43:36 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute3.internal (MEProxy); Fri, 28 Jun 2024 08:43:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org;
 h=cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:message-id:mime-version:reply-to
 :subject:subject:to:to; s=fm3; t=1719578616; x=1719665016; bh=C2
 cE9CoSnYYr2BGJev1QhmuB1Z+39WbbFyxYuCDvrCk=; b=U/f6NnaGxnB/sGWrY2
 Y5n0EJ0AyjVkricdpx83GBawskrgGOkGl9phajOEiIzXBaSPmlxydFv41FpYI8O2
 jB87FxiuDYC4rGcfLvaAbQnN/Oy7jj1ckhb8mLABGWFufKgr4SPsQqw7TtoevQcQ
 d4DAMPkelQev/OeGp0qplQcRYe5f74amOE2e8ejig126BbzWGnBZX+FeyFqFjJoq
 XD7kGtvljKS0NFSADZqBHfhHr3WSJv+DpgT1YC8WvPGZTNzDwXl9nPSvp99Ytw+l
 2F4WIlUavjhu6qWHrZZS/xj+04FzJizRc1taS/+zWlqBhPkYh0Vv6/ndJED/lhR2
 kDlw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:message-id:mime-version:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; t=1719578616; x=1719665016; bh=C2cE9CoSnYYr2BGJev1QhmuB1Z+3
 9WbbFyxYuCDvrCk=; b=FpL7cHAzSzzkCurGnmXT8VggmSV5JB4dkWmFjy00+QAn
 UVMCvaedhVIxr8T2vC44AFAmwV0ifJqp0/2AwJWZEbTb9+IJEyDB5ugJhmOyEAAL
 vXnj/s/XRxeUeqFX+lAT3zgOUMrJlPfZM66DVQF/JrvWiupvSkBsWmhE0JB7kLe/
 lthxqaSHTy3OnXgK1QN97QjrhfCx/Ubu511muQM1YVEGNuleHJH4Xw3coXpy8D56
 iW6GlDjzzBu+y0RhmHqSTNw+s0ZJVvNMrBWFVed+Moo3mFy0doAhQVI4OHzNBJbM
 Wl67brZMWhGuCKoz/9Yw3k1oDLCzGs/QzJUHRcb9rA==
X-ME-Sender: <xms:969-ZkDJVQhDE-_azZm_eD_fZ9qkRmCrNUEJrazGy16MlCyZS9-9YA>
 <xme:969-ZmhMTO6Y43v1vnSXyXImAPR7GmctpeQ27vr_6CuHXju-6cQ7A_d7ZigwVD6TY
 Eckl0vzNwwjEQATvGE>
X-ME-Received: <xmr:969-ZnlQYprvVdAUJ07CFcNxy-zbuumnsKpptGp-FxnE5GRMQc0VO54U4vaNGfvAzIuHc-Fq4cziuVf4Eg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrtdeigdehhecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtqhertddttd
 ejnecuhfhrohhmpeftuhguohhlfhcutegurghmkhhovhhitgcuoehruhguohhlfhesrggu
 rghmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvghrnhepkeelkeevtdeiudevvedtff
 eghfdvgffhkeeileehtefhudeiueetudegheffvdffnecuffhomhgrihhnpegruggrmhhk
 ohhvihgtrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomheprhhuugholhhfsegruggrmhhkohhvihgtrdhorhhg
X-ME-Proxy: <xmx:969-ZqxlmHIW5aG7HfF88IRUA1iVIs3at80dC05XI2WnWVEP27BTIA>
 <xmx:969-ZpSWD9UJjYp8JJ_lCBelL0U8OgF1diQbjELcfDLmoXQu9NZmmw>
 <xmx:969-ZlaxQmK47xtHjGvAGrgDU2ITq4Sz7E-yI_JrRqXa10aXbFKRgQ>
 <xmx:969-ZiRXnkN4w8N3yk3TM09yE425hbpn6Vx8BwJm0ilF8pNd6ejt5Q>
 <xmx:-K9-ZoL6_Q2ROQKMrLOnrs3mYrUdKk9yP5HBpLy-BT8i0PBuagsQNaCt>
Feedback-ID: i88214938:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <emacs-orgmode@gnu.org>; Fri, 28 Jun 2024 08:43:34 -0400 (EDT)
From: =?utf-8?Q?Rudolf_Adamkovi=C4=8D?= <rudolf@adamkovic.org>
To: emacs-orgmode@gnu.org
Subject: Org Babel "swallows" table column groups
Date: Fri, 28 Jun 2024 14:43:31 +0200
Message-ID: <m2h6dd9r0s.fsf@adamkovic.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=103.168.172.153;
 envelope-from=rudolf@adamkovic.org; helo=fhigh2-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.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,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Spam-Score: -7.56
X-Spam-Score: -7.56
X-Migadu-Queue-Id: 1ED15631B9
X-Migadu-Scanner: mx11.migadu.com
X-TUID: NeUcjxz0HfbD

Given the source block

  #+BEGIN_SRC emacs-lisp
  (list (list 1 2) (list "/" "<>") 'hline (list 3 4) (list 5 6))
  #+END_SRC

Org Babel outputs

  #+RESULTS:
  | 1 | 2 |
  |---+---|
  | 3 | 4 |
  | 5 | 6 |

with the second element of the list

  (list "/" "<>")

swallowed, without a word.

Why would Org Babel do this?

And, how can one output tables with column groups?

Rudy
--=20
"I do not fear death.  I had been dead for billions and billions of years
before I was born, and had not suffered the slightest inconvenience from it=
."
--- Mark Twain, paraphrased

Rudolf Adamkovi=C4=8D <rudolf@adamkovic.org> [he/him]
http://adamkovic.org



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Org Babel "swallows" table column groups
  2024-06-28 17:42 ` S. Sajad Hosseini Balef
@ 2024-06-30  8:13   ` Rudolf Adamkovič
  2024-06-30  8:35     ` S. Sajad Hosseini Balef
  0 siblings, 1 reply; 6+ messages in thread
From: Rudolf Adamkovič @ 2024-06-30  8:13 UTC (permalink / raw)
  To: S. Sajad Hosseini Balef; +Cc: emacs-orgmode

"S. Sajad Hosseini Balef" <shosseinib@ut.ac.ir> writes:

> It's seems related to the "<>" bacuse with any other strings I haven't
> such issue.

From what I see, the culprit is the "/" because, as soon as it appears,
Org Babel drops the row from the output.  Then, when I replace the "/"
with something different, such as "xyz", the row is back.

> I tried to fix ob-emacs-lisp.el but there was no success at the
> moment.

I stumbled upon the problem when using Scheme.  The bug report uses
Emacs Lisp only to ease reproduction.  (I should have probably mentioned
that.)  In other words, the problem does not seem to be specific to
Emacs Lisp.

Rudy
-- 
"It is far better to have a question that can't be answered than an
answer that can't be questioned."  --- Carl Sagan

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Org Babel "swallows" table column groups
  2024-06-30  8:13   ` Rudolf Adamkovič
@ 2024-06-30  8:35     ` S. Sajad Hosseini Balef
  0 siblings, 0 replies; 6+ messages in thread
From: S. Sajad Hosseini Balef @ 2024-06-30  8:35 UTC (permalink / raw)
  To: Rudolf Adamkovič; +Cc: emacs-orgmode

It's weird because with swapping "<>" and "/" with escape-syntax character has no problem in the table:

#+BEGIN_SRC emacs-lisp
   (list (list 1 2) (list "\<>" "\/") 'hline (list 3 4) (list 5 6))
#+end_src

#+RESULTS:
|  1 | 2 |
| <> | / |
|----+---|
|  3 | 4 |
|  5 | 6 |

On 6/30/24 11:43 AM, Rudolf Adamkovič wrote:
> "S. Sajad Hosseini Balef" <shosseinib@ut.ac.ir> writes:
>
>> It's seems related to the "<>" bacuse with any other strings I haven't
>> such issue.
>  From what I see, the culprit is the "/" because, as soon as it appears,
> Org Babel drops the row from the output.  Then, when I replace the "/"
> with something different, such as "xyz", the row is back.
>
>> I tried to fix ob-emacs-lisp.el but there was no success at the
>> moment.
> I stumbled upon the problem when using Scheme.  The bug report uses
> Emacs Lisp only to ease reproduction.  (I should have probably mentioned
> that.)  In other words, the problem does not seem to be specific to
> Emacs Lisp.
>
> Rudy


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Org Babel "swallows" table column groups
  2024-06-28 15:28 ` Ihor Radchenko
@ 2024-06-30  8:53   ` Rudolf Adamkovič
  0 siblings, 0 replies; 6+ messages in thread
From: Rudolf Adamkovič @ 2024-06-30  8:53 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Ihor Radchenko <yantar92@posteo.net> writes:

> Rudolf Adamkovič <rudolf@adamkovic.org> writes:
>
> This is because of how `orgtbl-to-generic' is implemented. It is taking
> pieces from the full ox.el exporter, hard-coding certain things. For
> example, it always removes special table lines:
>
>     ;; Since we are going to export using a low-level mechanism,
>     ;; ignore special column and special rows manually.
>
> ox.el used to do the same recently, until I added a feature to keep
> special lines in tables during export (for ox-org purposes).

Bummer!

I wrote a little Scheme program to generate truth tables for my notes on
mathematical logic and also to aid future explorations.  It works well,
but without table separators, truth tables are harder to read.

Rudy
-- 
"We shall not cease from exploration
 And the end of all our exploring
 Will be to arrive where we started
 And know the place for the first time"
--- T. S. Eliot, Little Gidding, Four Quarters, 1943

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-30  8:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-28 12:43 Org Babel "swallows" table column groups Rudolf Adamkovič
2024-06-28 15:28 ` Ihor Radchenko
2024-06-30  8:53   ` Rudolf Adamkovič
2024-06-28 17:42 ` S. Sajad Hosseini Balef
2024-06-30  8:13   ` Rudolf Adamkovič
2024-06-30  8:35     ` S. Sajad Hosseini Balef

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).