From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: how to use :options-alist in org-export-define-derived-backend ? Date: Tue, 03 Jun 2014 18:28:27 +0200 Message-ID: <8761kiarf8.fsf@bzg.ath.cx> References: <87bnubhw04.fsf@geodiff-mac3.ulb.ac.be> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wrra2-0008Ni-3u for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 12:28:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrrZw-0003Tj-FZ for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 12:28:54 -0400 Received: from mail-s76.mailgun.info ([184.173.153.204]:46462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrrZw-0003Tb-CY for emacs-orgmode@gnu.org; Tue, 03 Jun 2014 12:28:48 -0400 In-Reply-To: <87bnubhw04.fsf@geodiff-mac3.ulb.ac.be> (Nicolas Richard's message of "Mon, 02 Jun 2014 22:55:23 +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 Richard Cc: emacs-orgmode@gnu.org Hi Nicolas, Nicolas Richard writes: > I'm trying to play with the exporter but I'd like my back-end to have no > toc by default. I tried > > (org-export-define-derived-backend 'mytest 'html > :translate-alist > ;; don't use the template, concentrate on the toc. > (list (cons 'template (lambda (a _) a))) > :options-alist > '((:with-toc nil "toc" nil))) > > IIUC, the last "nil" up there should be the default value for :with-toc. I used this in contrib/lisp/ox-rss.el :options-alist '((:with-toc nil nil nil) ;; Never include HTML's toc with `nil' instead of "toc". Perhaps some hint lies down here (like "toc" indicating the exporter should rely on the buffer-local value of `org-export-with-toc'?) but I'm not really sure, I hope Nicolas can clarify. -- Bastien