From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SErZEZDAz157WwAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 13:45:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mPK3DZDAz16TWAAA1q6Kng (envelope-from ) for ; Thu, 28 May 2020 13:45:52 +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 95E8D940D3B for ; Thu, 28 May 2020 13:45:51 +0000 (UTC) Received: from localhost ([::1]:35058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeIqz-00029S-QJ for larch@yhetil.org; Thu, 28 May 2020 09:45:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeIqJ-0001xx-V7 for emacs-orgmode@gnu.org; Thu, 28 May 2020 09:45:07 -0400 Received: from mail-ej1-f48.google.com ([209.85.218.48]:43161) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeIqH-0004J6-5v for emacs-orgmode@gnu.org; Thu, 28 May 2020 09:45:07 -0400 Received: by mail-ej1-f48.google.com with SMTP id a2so23228ejb.10 for ; Thu, 28 May 2020 06:45:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+BPbm/+EcS35XmBAvYftmWqzYLEY6C5AJOzNhyoz+6w=; b=LtAMLw32OwrRB977G8OtEOmTo4MlVXGdz5guxHDQaub3m/edYdtz8RbKyagSzbzqtx XhbN19v9EUbjFt1sf+mr5F/J9aHn01IYMSOsK99X+GK3dexr+9Hko+QLHH37BfdfwEWI XIwSScRpWv+2e5V5JdFSdTBGBehOqACWBdrg0DWPbVp7RLf/AXzj5V7ZF6NAJjxwRgVm CRi43BV2jQ2ZxhUtekv5q36gW0UgN5ReHd6PQRjSkXmPiFPBC3C6dq5mqUZmwf6CYWYb YGV7oIRE2PYyQRshPrdE8FMzFZg6mpOQHkAeoMGRoL90prrNMO2vFPYeR6crtGppYCqg D0ow== X-Gm-Message-State: AOAM533MEfLqHCxwpJVL1oITnZOUrq4hS94hLmAu5vf228A2HQNNqe28 vhXKPUWyYP7ivzevXeBcXP/1/2j2pC2Y8IS8sTmGDa8o X-Google-Smtp-Source: ABdhPJwYv0vxyunf9+r3ywCTdjK4xaBhMt6tUdPWEf5tbdt5Z+x4MH6+DaPmbVkFG0USPeixnzMnywKzxayS7DfFbws= X-Received: by 2002:a17:906:4d18:: with SMTP id r24mr2784395eju.222.1590673503274; Thu, 28 May 2020 06:45:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: ian martins Date: Thu, 28 May 2020 09:44:51 -0400 Message-ID: Subject: Re: org-babel :colnames yes To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000001dcc2d05a6b589f6" Received-SPF: pass client-ip=209.85.218.48; envelope-from=ianxm1@gmail.com; helo=mail-ej1-f48.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/28 09:45:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=jhu.edu (policy=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: -0.91 X-TUID: f77Jl4/sns6M --0000000000001dcc2d05a6b589f6 Content-Type: text/plain; charset="UTF-8" I figured out that inserting `hline' works for some languages. consistent behavior with ":colnames yes" would be ideal but this solves my problem. #+BEGIN_SRC elisp '((one two) hline (1 3) (1 6)) #+END_SRC On Thu, May 28, 2020 at 7:48 AM ian martins wrote: > Hello, I'm trying to figure out how to tell org that the first row of a > src block result is a table header. > > from readthedocs > it > looks like ":colnames yes" should do this, but I haven't been able to get > it to work, and the code > > doesn't appear to want that to happen. maybe that is special handling for > R . > > #+BEGIN_SRC elisp :colnames yes > '((one two) (1 3) (1 6)) > #+END_SRC > > I'm expecting an hline in the output but do not find one. > > I know ":colnames '(one two)" works, but I don't know the header value > until I've generated the table. > > -Ian > --0000000000001dcc2d05a6b589f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I figured out that inserting `hline' works for so= me languages.=C2=A0 consistent behavior with ":colnames yes" woul= d be ideal but this solves my problem.

#+BEGIN= _SRC elisp
=C2=A0 '((one two) hline (1 3) (1 6))
#+END_SRC
On Th= u, May 28, 2020 at 7:48 AM ian martins <ianxm@jhu.edu> wrote:
Hello, I'm trying to figure out how= to tell org that the first row of a src block result is a table header.

from readthedocs it looks li= ke ":colnames yes" should do this, but I haven't been able to= get it to work, and the code doesn't app= ear to want that to happen. maybe that is special han= dling for R.

#+BEGIN_SRC elisp :colnames yes
=C2= =A0 '((one two) (1 3) (1 6))
#+END_SRC

I= 9;m expecting an hline in the output but do not find one.
I know ":colnames '(one two)" works, but I don= 9;t know the header value until I've generated the table.

-Ian
--0000000000001dcc2d05a6b589f6--