emacs-orgmode@gnu.org archives
 help / color / mirror / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: emacs-orgmode@gnu.org
Subject: [RFC] Rename :colnames header argument to :strip-colnames
Date: Sun, 08 Feb 2026 11:05:59 +0000	[thread overview]
Message-ID: <87343b1oky.fsf@localhost> (raw)

Hello,

The :colnames header argument in src blocks often causes confusion among
users.

  #+cindex: @samp{colnames}, header argument
  The =colnames= header argument accepts =yes=, =no=, or =nil= values.
  The default value is =nil=: if an input table has column
  names---because the second row is a horizontal rule---then Org
  removes the column names, processes the table, puts back the column
  names, and then writes the table to the results block.  Using =yes=,
  Org does the same to the first non-hline row, even if the initial
  table does not contain any horizontal rule.  When set to =no=, Org
  does not pre-process column names at all.

With :colnames yes and :colnames nil, the colnames are actually
*stripped* when table is passed to the code, and re-added to the result.

With ":colnames no" Org passes the full table, including colnames to the
src block.

So, I am thinking about something more intuitive like
- :strip-colnames
- :detach-colnames

The allowed values should also be yes, no, and 'auto (previously nil). 

Thoughts? Other ideas?

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


             reply	other threads:[~2026-02-08 11:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-08 11:05 Ihor Radchenko [this message]
2026-02-08 15:05 ` [RFC] Rename :colnames header argument to :strip-colnames Christian Moe
2026-02-08 17:00   ` Thomas S. Dye
2026-02-09 11:25     ` Christian Moe
2026-02-09 17:42       ` Thomas S. Dye
2026-02-09  3:12   ` William Denton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87343b1oky.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).