From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: how to use :options-alist in org-export-define-derived-backend ? Date: Mon, 02 Jun 2014 22:55:23 +0200 Message-ID: <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]:40069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrZFL-0006F6-3X for emacs-orgmode@gnu.org; Mon, 02 Jun 2014 16:54:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrZFD-0003yY-Jt for emacs-orgmode@gnu.org; Mon, 02 Jun 2014 16:54:19 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:5584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrZFD-0003yN-E5 for emacs-orgmode@gnu.org; Mon, 02 Jun 2014 16:54:11 -0400 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 Hello, 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. Unfortunately, exporting like this: (with-temp-buffer (insert "* foo\n** bar\nsome content") (org-export-to-buffer 'mytest "*test*") (pop-to-buffer "*test*")) will show a table of contents. Setting org-export-with-toc to nil works as expected though : (let ((org-export-with-toc)) (with-temp-buffer (insert "* foo\n** bar\nsome content") (org-export-to-buffer 'mytest "*test*") (pop-to-buffer "*test*"))) What am I doing wrong ? Thanks -- Nico.