From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: New exporter and dates in tables Date: Mon, 15 Apr 2013 09:28:32 +0530 Message-ID: <87obdgcumv.fsf@gmail.com> References: <87fvz1opiz.fsf@norang.ca> <8761zxwlvn.fsf@gmail.com> <87bo9pntym.fsf@norang.ca> <0604BF00-1FE8-4EAA-A346-C125A5127CAD@gmail.com> <877gkcvm3n.fsf@gmail.com> <173ADFE7-A1FB-4ECB-A78A-C99662A8030F@gmail.com> <87fvyysghk.fsf@gmail.com> <87bo9mh6ex.fsf@bzg.ath.cx> <87d2u1s3wf.fsf@gmail.com> <8738uxrrtc.fsf@bzg.ath.cx> <87mwt2aefz.fsf@gmail.com> <874nfa34vj.fsf@bzg.ath.cx> <87ehee9vz6.fsf@gmail.com> <87ip3p8mun.fsf@bzg.ath.cx> <87wqs58c7h.fsf@gmail.com> <87ip3p5ipz.fsf@bzg.ath.cx> <87ppxx8bs0.fsf@gmail.com> <871uad5hzv.fsf@bzg.ath.cx> <87haj98avd.fsf@gmail.com> <87vc7p42bt.fsf@bzg.ath.cx> <87sj2s7sti.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URaZJ-0005K9-Q4 for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 23:59:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URaZG-0008D3-LC for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 23:59:01 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:44894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URaZG-0008Cl-F7 for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 23:58:58 -0400 Received: by mail-pa0-f41.google.com with SMTP id kx1so2342937pab.14 for ; Sun, 14 Apr 2013 20:58:57 -0700 (PDT) In-Reply-To: <87sj2s7sti.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 14 Apr 2013 22:36:41 +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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas You may want to extract the below function as a useful API. You can then plug that in into `org-odt--standalone-link-p' and it's counterpart in ox-html.el. I am not closely tracking changes in ox-html.el, so things might have moved since. Jambunathan K. Nicolas Goaziou writes: > + (lambda (ts) > + ;; Return a non-nil value when TS is a timestamp object > + ;; in a paragraph with only timestamps and whitespaces. > + (let ((parent (org-export-get-parent-element ts))) > + (when (memq (org-element-type parent) '(paragraph verse-block)) > + (not > + (org-element-map parent > + (cons 'plain-text > + (remq 'timestamp org-element-all-objects)) > + (lambda (obj) > + (or (not (stringp obj)) (org-string-nw-p obj))) > + options t)))))