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 ms11 with LMTPS id yCTdIS0l+V40dwAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 23:18:05 +0000 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 YAWHHS0l+V6GLwAAbx9fmQ (envelope-from ) for ; Sun, 28 Jun 2020 23:18:05 +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 C0F7594005D for ; Sun, 28 Jun 2020 23:18:04 +0000 (UTC) Received: from localhost ([::1]:44452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpgYk-0006rx-3y for larch@yhetil.org; Sun, 28 Jun 2020 19:18:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpgYN-0006rn-5E for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 19:17:39 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:38613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpgYK-0003NW-Nz for emacs-orgmode@gnu.org; Sun, 28 Jun 2020 19:17:38 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 53B75C0003; Sun, 28 Jun 2020 23:17:33 +0000 (UTC) From: Nicolas Goaziou To: Mario Frasca Subject: Re: [PATCH] allow for multiline headers References: <87wo4bhpkx.fsf@nicolasgoaziou.fr> <87tuzeehk2.fsf@nicolasgoaziou.fr> <87a715e9ju.fsf@nicolasgoaziou.fr> <3e6ee551-4ef7-7d96-93dc-19a4973e1af8@anche.no> <871rm5vslh.fsf@nicolasgoaziou.fr> <381d1495-7d26-6105-6a29-d6f001f7004d@anche.no> Mail-Followup-To: Mario Frasca , emacs-orgmode@gnu.org Date: Mon, 29 Jun 2020 01:17:30 +0200 In-Reply-To: <381d1495-7d26-6105-6a29-d6f001f7004d@anche.no> (Mario Frasca's message of "Sat, 27 Jun 2020 10:39:04 -0500") Message-ID: <874kquwzjp.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.198; envelope-from=mail@nicolasgoaziou.fr; helo=relay6-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/28 18:21:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: -1.01 X-TUID: 2FA7TQNf+RnO Hello, Mario Frasca writes: > On 24/06/2020 02:19, Nicolas Goaziou wrote: >> >>>> This could be extracted as an independent function, which would return >>>> the header, or nil. We can also imagine a function returning a cons ce= ll >>>> (HEADER . BODY), both HEADER and BODY being list of rows (possibly >>>> empty). >>> I was thinking of this myself too.=C2=A0 but, after all, the goal of th= is >>> function is not only to find the header, but to collapse it into >>> a single line. >> I suggested this because you were saying earlier in this thread IIRC >> that Org has no tooling to handle table headers. > I would like to discuss this in a chat, who's available to join > #org-mode on freenode? Note that, usually, discussions happen on this mailing list, so anyone can comment, not only those available on the IRC channel at a given time. >>> if it was splitting the header from the body, then yes, it would >>> definitely make sense, the cons cell you suggest. >> It _is_ splitting the header from the body. Barring initial `hline' >> symbols, header-lines and trailer variables are exactly HEADER and BODY >> above. > same as above, I wish to hear opinions, collect them, and that we take > a decision with shorter communication lines. I'm sorry if I'm not fast enough to answer. In any case, the above is just a suggestion. >>> + (table (org-table-collapse-header (org-table-to-lisp))) >>> + (num-cols (length (car table)))) >> Note that there is no guarantee that all rows have the same length. >> E.g., >> >> | a | >> | b | c | > > many other points in the code assume rows have the same length. That's true. However, the above is still a correct table, so it is good to keep it in mind. No worries if you don't want to take care of that particular point. > I think I have processed most other remarks in the new patch. I applied your patch. Thank you. Regards, --=20 Nicolas Goaziou