From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch, ox] suppress title Date: Thu, 12 Feb 2015 01:10:18 +0100 Message-ID: <87iof8yoph.fsf@gmx.us> References: <871tlxcmek.fsf@gmx.us> <871tlwvyel.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLhMQ-0007ib-SN for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 19:10:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLhML-0001vG-LA for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 19:10:26 -0500 Received: from mout.gmx.net ([212.227.15.18]:54462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLhML-0001vA-Bx for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 19:10:21 -0500 Received: from W530 ([46.166.186.250]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LaFmY-1XtSny1RLq-00m1LW for ; Thu, 12 Feb 2015 01:10:20 +0100 In-Reply-To: <871tlwvyel.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 12 Feb 2015 00:09:06 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Could you also add a test in `test-org-export/handle-options'? How would I make this test proper? I can't use org-test-default-backend since it only loads the transcoder functions, not the template which is where I disable the title. I can think of the following or writing a mini template that just check :with-title, but that feels like cheating... ;; Test title. (should (equal "" (org-test-with-temp-text "#+TITLE: foo" (org-export-as (org-export-create-backend :transcoders '((title . org-org-identity) (template . org-org-template))) nil nil nil '(:with-title nil :with-creator nil :with-author nil :with-date nil :time-stamp-file nil))))) (should (equal "#+TITLE: foo" (org-trim (org-test-with-temp-text "#+TITLE: foo" (org-export-as (org-export-create-backend :transcoders '((title . org-org-identity) (template . org-org-template))) nil nil nil '(:with-title t :with-creator nil :with-author nil :with-date nil :time-stamp-file nil)))))) -- With monopolies the cake is a lie!