From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Fwd: comment lines inside org tables Date: Fri, 30 Sep 2016 17:36:06 +0200 Message-ID: <8737khxuvt.fsf@nicolasgoaziou.fr> References: <74597925-06d8-c5a3-198c-cfaa1acedd57@mpic.de> <87fuol1swa.fsf@nicolasgoaziou.fr> <55425935-58dc-b2d3-5b96-ec44ccbdd939@mpic.de> <87bmz910up.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpzr7-00006A-My for emacs-orgmode@gnu.org; Fri, 30 Sep 2016 11:36:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpzr6-0002TX-QE for emacs-orgmode@gnu.org; Fri, 30 Sep 2016 11:36:09 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:33975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpzr6-0002SC-L2 for emacs-orgmode@gnu.org; Fri, 30 Sep 2016 11:36:08 -0400 In-Reply-To: (Rolf Sander's message of "Fri, 30 Sep 2016 16:52:43 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Rolf Sander Cc: emacs-orgmode@gnu.org Hello, Rolf Sander writes: > I want to add a comment line into the file that does not disturb the > table. Disturb the table wrt to what action? Alignment? This is a minor issue if you fix an arbitrary column width, isn't it? > Like a "|---+---+---|" hline. I don't want any action. All > programming languages have the option to add comments to the source > code. But Org is not a programming language, and an Org document is not source code. > Okay, so my question turns into a feature request now... Allowing to comment anything is a can of worms I really don't want to open. It complicates a lot of code for little benefit. > I have started to modify defun org-table-align. With the modification, > org-tbl now ignores all lines starting with "|-/". For me it works > fine. Sorry, but you're barely scratching the surface of the problem. Tables are not just about alignment. Formulas don't handle these special lines, neither do exported tables. Again, this implies a serious work on org-table.el, and it would introduce inconsistencies with other parts of Org (e.g., lists, where you cannot comment an item, or even the syntax for commenting table rows, which would be unusual). All in all, I think there are more important itches to scratch for the time being. Of course, YMMV. Regards, -- Nicolas Goaziou