From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Export to Texinfo Date: Fri, 20 Jul 2012 15:42:27 +0200 Message-ID: <87a9yupn0c.fsf@gmail.com> References: <87y5meaib9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsDWp-0007CG-TS for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 09:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsDWm-0001Kf-Ci for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 09:45:59 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:56910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsDWm-0001KZ-6C for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 09:45:56 -0400 Received: by wibhq4 with SMTP id hq4so432922wib.12 for ; Fri, 20 Jul 2012 06:45:55 -0700 (PDT) In-Reply-To: (Jonathan Leech-Pepin's message of "Fri, 20 Jul 2012 09:34:37 -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: Jonathan Leech-Pepin Cc: =?utf-8?Q?Fran=C3=A7ois?= Pinard , Org Mode Mailing List Jonathan Leech-Pepin writes: > Can I define the export-snippet using: > > (add-to-list 'org-export-snippet-translation-alist > '("e-info" . "e-texinfo")) > > Or should that be left up to the discretion of the user? This is an user-oriented variable (customizable). Though, you have full control over which export snippets you accept. In the following example, you accept both @@info:...@@ and @@texinfo:...@@ snippets: (defun org-e-latex-export-snippet (export-snippet contents info) "Blah..." (when (memq (org-export-snippet-backend export-snippet) '(info texinfo)) (org-element-property :value export-snippet))) Just specify it in package's documentation.