From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: [SOLVED] Date: Wed, 04 Apr 2018 15:29:52 +0200 Message-ID: <87sh8bdrqn.fsf@mat.ucm.es> References: <877epntk3u.fsf@mat.ucm.es> <87po3frtmr.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3iWS-00009j-TI for emacs-orgmode@gnu.org; Wed, 04 Apr 2018 09:32:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3iWO-0006y4-Vk for emacs-orgmode@gnu.org; Wed, 04 Apr 2018 09:32:20 -0400 Received: from [195.159.176.226] (port=35633 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3iWO-0006xg-Np for emacs-orgmode@gnu.org; Wed, 04 Apr 2018 09:32:16 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1f3iUF-0004SZ-Vr for emacs-orgmode@gnu.org; Wed, 04 Apr 2018 15:30:03 +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: emacs-orgmode@gnu.org > To answer my own question > | / | / | | | / | > | | Name | Res | Letra | Obs | > |---+-------+-----+-------+-----| > | | Smith | 0 | | | > | | Jones | 1.4 | | | > | | Bond | 5.6 | * | | > All columns starting with / are ignored when exporting. Sorry for the > noise and the double posting. That is not entirely correct. Someone (I forgot who it was, sorry) provided me with the following hack (add-hook 'org-export-before-processing-hook 'f-ox-filter-table-column-del) (defun f-ox-filter-table-column-del (back-end) "Delete the columns $2 to $> marked as \"/\" on a row with \"/\" in $1. If you want a non-empty column $1 to be deleted make it $2 by inserting an empty column before or rearrange column order in some other way. Make sure \"/\" is in $1 again after that." (while (re-search-forward "^[ \t]*| +/ +|\\(.*?|\\)?? +\\(/\\) +|" nil t) (goto-char (match-beginning 2)) (org-table-delete-column) (beginning-of-line))) That is very useful and I wonder why there is nothing in org vanilla (but then it might and I did not find it.)