From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Exporter question Date: Sun, 24 Feb 2013 10:31:21 +0100 Message-ID: <87ppzqys5y.fsf@gmail.com> References: <9C4C997C2CA6AA488CBC8C9E56E764EE264510C3@MBX04.uva.nl> <87r4kl9uy4.fsf@gmail.com> <4D16776B-192B-4723-80FF-AEAC5E3B458C@gmail.com> <87zjyuytt4.fsf@gmail.com> <8738wmax8h.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Xvm-0006xR-GK for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 04:31:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9Xvk-0007xQ-8n for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 04:31:38 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:62383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Xvk-0007xD-1s for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 04:31:36 -0500 Received: by mail-wi0-f172.google.com with SMTP id ez12so2342733wid.17 for ; Sun, 24 Feb 2013 01:31:35 -0800 (PST) In-Reply-To: <8738wmax8h.fsf@bzg.ath.cx> (Bastien's message of "Sun, 24 Feb 2013 10:15:42 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: "emacs-orgmode@gnu.org List" , "Dominik, Carsten" , Carsten Dominik Bastien writes: >> Do you think it's still necessary to provide an equivalent for >> `org-export-remove-timestamps-from-toc'? It's only a matter of copying >> the headline title in the property, without timestamp. > > org-html|latex-format-headline-function allow these arguments: > > TODO the todo keyword (string or nil). > TODO-TYPE the type of todo (symbol: `todo', `done', nil) > PRIORITY the priority of the headline (integer or nil) > TEXT the main headline text (string). > TAGS the tags as a list of strings (list of strings or nil). > > Why not having another TRIM-REGEXP argument to selectively trim > the content matched by a regexp against TEXT? Because it would have to mach TEXT against destination code, so it would be fragile (i.e. if you modify how timestamps are transcoded, you have to modify this regexp accordingly). If it has to be implemented, it's far easier to remove objects from parsed data (e.g. in `org-export-get-optional-title'). > `org-export-with-timestamps-in-toc', if nil, would use this arg; > but users could remove anything from the headlines (and the TOC), > not just from the TOC. > > And `org-export-with-timestamps' could be set to 'from-toc or > 'from-headline. And we could extend `org-export-with-tags' > similarily. > > (I think `org-export-with-timestamps-in-toc' is better than > `org-export-remove-timestamps-from-toc' because `org-export-with' > is more widely used for the same purposes.) > > Just a suggestion for combining backward compatibility and adding > some flexibility thanks for the new engine. I have a patch ready with `org-export-with-timestamps-in-toc' variable, but as I was writing it, I realized it might not be necessary to apply it. I'd like to avoid over-engineering as much as possible, hence the question. Regards, -- Nicolas Goaziou