From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: interaction between org-latex-custom-lang-environments and name when exporting to latex Date: Mon, 30 Nov 2015 13:12:10 +0100 Message-ID: References: <877fld3qcr.fsf@gmx.us> <8737vw1u13.fsf@gmx.us> <87vb8rbkum.fsf@gmx.us> <87610qbdvx.fsf@gmx.us> <87h9k740gy.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3NJX-00051A-FE for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 07:12:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3NJU-0003KB-PV for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 07:12:15 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:3436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3NJU-0003Jp-Ix for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 07:12:12 -0500 In-Reply-To: <87h9k740gy.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 27 Nov 2015 22:05:33 +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: Rasmus Cc: emacs-orgmode@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On 2015-11-27 22:05, Rasmus writes: >>> Also, you need to denote that the defcustom was changed. >>> >>> :version "25.1" >>> :package-version '(Org . "9.0") >>> >>> When you are at it, please add the missing tags, :group and :type. >> >> It's not a defcustom but a defvar. (But maybe it should be a defcustom = =E2=80=A6) > > It should be a defcustom. Feel free to fix it, preferably in a separate > patch. Here is a patch to do so. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-ox-latex-Make-org-latex-custom-lang-environments-a-d.patch Content-Transfer-Encoding: quoted-printable From=20b94b5ba0bdb619cb9047efb19432216812eaf6a2 Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Mon, 30 Nov 2015 13:07:56 +0100 Subject: [PATCH] ox-latex: Make org-latex-custom-lang-environments a defcus= tom * ox-latex.el (org-latex-custom-lang-environments): Change from defvar into a defcustom. =2D-- lisp/ox-latex.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index eaad29f..407df6b 100644 =2D-- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1021,7 +1021,7 @@ block-specific options, you may use the following syn= tax: (string :tag "Minted option name ") (string :tag "Minted option value")))) =20 =2D(defvar org-latex-custom-lang-environments nil +(defcustom org-latex-custom-lang-environments nil "Alist mapping languages to language-specific LaTeX environments. =20 It is used during export of src blocks by the listings and minted @@ -1062,7 +1062,14 @@ will produce \\end{minted} \\caption{} \\label{