From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: New exporter: no custom timestamps Date: Wed, 19 Sep 2012 22:28:27 +0200 Message-ID: <878vc5ep04.fsf@gmail.com> References: <1347889740.96406.YahooMailNeo@web29802.mail.ird.yahoo.com> <877grs32nl.fsf@gmail.com> <87r4pz4m5n.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEQwl-0007T8-I2 for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 16:32:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEQwh-0004SQ-JD for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 16:32:35 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:35406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEQwh-0004Rz-Cq for emacs-orgmode@gnu.org; Wed, 19 Sep 2012 16:32:31 -0400 Received: by weys10 with SMTP id s10so904011wey.0 for ; Wed, 19 Sep 2012 13:32:30 -0700 (PDT) In-Reply-To: <87r4pz4m5n.fsf@bzg.ath.cx> (Bastien's message of "Tue, 18 Sep 2012 13:15:32 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Orgmode , Jambunathan K Hello, Bastien writes: > I suggest to fix this in org-e-html.el with the attached patch. > > There is another option: to set :raw-value for time-stamps, but > this feels a bit clumsy, especially when there is a :range-end. > > (org-element-property :raw-value TIMESTAMP) I tend to think that :raw-value would be a good option. Timestamps properties could be enriched. Besides common properties (:begin, :end, :post-blank) timestamps objects may accept : - :type - :year-start - :year-end - :month-start - :month-end - :day-start - :day-end - :hour-start - :hour-end - :minute-start - :minute-end - :repeater-type (a symbol among: `cumulative', 'catch-up', 'restart' corresponding to, respectively "+", "++" ".+" repeater marks) - :repeater-value - :raw-value :*-end properties would be the same as :*-start properties when timestamp isn't a range. Both would be nil (along with :repeater-*) when type is `diary'. By default back-ends would use :raw-value and `org-translate-time'. :range-end property would be removed. What do you think? Regards, -- Nicolas Goaziou