From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Deleting org table columns during export (Was: [RFC] Shrink columns dynamically) Date: Tue, 11 Jul 2017 18:43:58 +0200 Message-ID: References: <87bmoswkvs.fsf@nicolasgoaziou.fr> <87d198uznu.fsf@mat.ucm.es> <87o9ss4aj4.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUyHW-0006Uo-JS for emacs-orgmode@gnu.org; Tue, 11 Jul 2017 12:45:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUyHT-00051B-K1 for emacs-orgmode@gnu.org; Tue, 11 Jul 2017 12:45:02 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:34285) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUyHT-00050u-E7 for emacs-orgmode@gnu.org; Tue, 11 Jul 2017 12:44:59 -0400 Received: by mail-qk0-f172.google.com with SMTP id d78so8183137qkb.1 for ; Tue, 11 Jul 2017 09:44:59 -0700 (PDT) In-Reply-To: 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: Kaushal Modi Cc: Org Mode Hi Kaushal On Tue, Jul 11, 2017 at 1:18 PM, Kaushal Modi wrote: > On Tue, Jul 11, 2017, 2:19 AM Michael Brand > wrote: >> Also I hope that you can build in complete removal of columns for >> export similar to as discussed around here: >> http://lists.gnu.org/archive/html/emacs-orgmode/2016-04/msg00672.html > - If I understand correctly, Michael, you need to send a git > formatted patch of your proposal with documentation included? No, I just hacked (summarized from the old thread) (add-hook 'org-export-before-processing-hook #'f-ox-filter-table-column-del) (defun f-ox-filter-table-column-del (back-end) (while (re-search-forward "^[ \t]*|\\(.*|\\)? *\\(<#>\\) *|" nil t) (goto-char (match-beginning 2)) (org-table-delete-column) (beginning-of-line))) in my config file to use with | <#> |. For all the tasks discussed in the old thread I did not more than discuss. From my side there exists nothing that can be made ready to be committed. Michael