From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WACQCIZ5L2cJqgAA62LTzQ:P1 (envelope-from ) for ; Sat, 09 Nov 2024 15:02:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id WACQCIZ5L2cJqgAA62LTzQ (envelope-from ) for ; Sat, 09 Nov 2024 16:02:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=D7okuhif; dmarc=pass (policy=none) header.from=posteo.net; 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-Seal: i=1; s=key1; d=yhetil.org; t=1731164550; a=rsa-sha256; cv=none; b=HwNRMo+Z/W+6bli4QrRSBi60yE9xBFBSAJo2BMWN2QWu6Z8K+FOFGV3Wy+L3+Bqgf1wlMS 5NJeIn7FBIbm5oCieSj4BIkTr1zDbefGJQdyV3zIuYdPMHIQvsGlV7KLr4cZceLU4didHT cSLNBsAv4fS83rVUxln/qakxrmRkB7k9aTlE0sXXQxghpn86RL6IKk6CJbRDMHS0xiZ7LH eyhNW6yYAHhDnndfNprCZiXCpG/ckDknNM7+ZAAtoNewFOf3ZLySMD7cewDNAZvFlRocn3 ZClTIVFeLLd1mdtWvuRSbXmXRPdHiDamqRGliB29F7Ivzgj1GK3RC8ehQCAq9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=D7okuhif; dmarc=pass (policy=none) header.from=posteo.net; 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=1731164550; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=U33vBFAFpcHu+wZ/Gf4cxkYcaa5kNFt2AXzqDZPk/NQ=; b=PaEZcWrDG3uBeyRrK7eiSDHuSWdilN5erzvZFJnksN57uuR0+dQUdgkjbxMAYLupYZur/g Cf4jK8dKWBKQeG53t9xtRs5qMQ+3VPYv7kCJDsLOE+NwH3swCi6RCVzthhb6i/t2VNIKlf 9Ud3ugrOe7NQqesULxYVKOl2GcwliAWT3zVgOwME6jZ65IwnE3gVr3VTa8WZ6c6dkgIzOn 2e/xD3SCALvTNuWHR+O0er6tM1YRNkYTApsqGimQY9RKjtpBQQhy74M8GPKeLtOHyE9ymr E70e+IC2jxORP3RVI9Jv7SItC15ESXsAz267yPzVyEZKIw4zFe9602pqMCpP0Q== 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 C44BD1B849 for ; Sat, 09 Nov 2024 16:02:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9myE-0003en-9w; Sat, 09 Nov 2024 10:01:50 -0500 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 ) id 1t9my2-0003bh-HZ for emacs-orgmode@gnu.org; Sat, 09 Nov 2024 10:01:41 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9mxz-00089b-RD for emacs-orgmode@gnu.org; Sat, 09 Nov 2024 10:01:37 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6FAFA240101 for ; Sat, 9 Nov 2024 16:01:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1731164493; bh=kfMpUVuQvt7KmDStYEiKt8Ppkgy5P4y/Ba8C/+TesE0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=D7okuhifhMIFdiLe8bgC5f4n1KQL/okuoSW9UGoxlbaKXireWjk6GwST4elS03HR+ ash0Z5FDbD38GqSfZr/gk7PfAnffIHdBKv5S05P3xn1PHQscu0pCXOInCSpkv39py1 lb8oD5XhwFBC+dLc9+q7y7oSxUn6gEqQqbSwpWXGmBMNhKDnm+JTC01jvXAvAKkJse aqKCs0FaJzZlo8OV1CSM+FtKE51rkOS9fLcB8x10nPaXfjhSjkalsesCbXi5vvVU3z l0RH6aCPKhJCPTl+Fjl/F5oGkJA6ybFtb2AIPQTCvLedbZzOfTmiYPvYN7vsQ9kWfv gqbudM7PWgIWg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XlzXr5pgCz9rxP; Sat, 9 Nov 2024 16:01:32 +0100 (CET) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: Fix "inverted" behavior of `colnames' header argument In-Reply-To: References: <874j4peb09.fsf@localhost> Date: Sat, 09 Nov 2024 15:03:11 +0000 Message-ID: <871pzkfo0g.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.90 X-Spam-Score: -0.90 X-Migadu-Queue-Id: C44BD1B849 X-Migadu-Scanner: mx12.migadu.com X-TUID: GyqPnJmBckAz Rudolf Adamkovi=C4=8D writes: > Upon further thinking, I think I now get it. > > My understanding: > > - =3Dnil=3D :: >=20=20=20 > 1. Drop the column names from the input, if tabular. > 2. Run the code block, possibly producing results. > 3. Re-add the column names, if any, to the results, if tabular. >=20=20=20 > N.B. Column names are row #1 if row #2 is a horizontal rule. Sounds about right. See `org-babel-disassemble-tables' and `org-babel-reassemble-table' for what is actually being done. I guess "auto" would have been a better name for this value. =20=20=20 >> Also, I tried the following with `emacs -Q': > > I noticed that if I pass 'nil (with a quote) instead of nil, everything > works well. Why is that? And, no matter why that is, why do we say nil > in the manual instead of 'nil, if that is what the user must write? That's because Org treats :foo text as a string or number by default. Org only parses the value as Elisp when it starts from "(", "\\=3D'", "\\=3D`" or a "[". See `org-babel-read'. This means that :colnames nil actually means :colnames "nil". I agree that it is confusing. It would be a good idea to treat nil and "nil" equally. Maybe even rename the default to "auto" to avoid confusion (in addition to nil/"nil"). --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at