From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4CYwFKBHAGAIcgAA0tVLHw (envelope-from ) for ; Thu, 14 Jan 2021 13:31:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qPcEEKBHAGA/cQAAB5/wlQ (envelope-from ) for ; Thu, 14 Jan 2021 13:31:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AA74594043A for ; Thu, 14 Jan 2021 13:31:11 +0000 (UTC) Received: from localhost ([::1]:45408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l02iT-0002bx-Uh for larch@yhetil.org; Thu, 14 Jan 2021 08:31:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l02bj-000541-NM for emacs-orgmode@gnu.org; Thu, 14 Jan 2021 08:24:13 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:29782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l02bf-0008VW-JC for emacs-orgmode@gnu.org; Thu, 14 Jan 2021 08:24:11 -0500 X-IronPort-AV: E=Sophos;i="5.79,347,1602540000"; d="scan'208,223";a="487083991" Received: from lfbn-idf1-1-2138-74.w90-127.abo.wanadoo.fr (HELO [192.168.1.44]) ([90.127.64.74]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 14 Jan 2021 14:24:03 +0100 From: Basile Pesin Subject: [Patch] [Objective]Caml dialect in listings To: emacs-orgmode@gnu.org Message-ID: <50df8032-c688-d0d4-6914-f87b2c76041f@inria.fr> Date: Thu, 14 Jan 2021 14:24:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------7FF685830695A69DD0D644CC" Content-Language: en-US Received-SPF: pass client-ip=192.134.164.83; envelope-from=basile.pesin@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: AA74594043A X-Spam-Score: -2.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: cf6JMD5wVBZx This is a multi-part message in MIME format. --------------7FF685830695A69DD0D644CC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, I have just started using `org-mode`, and it is very cool ! Thank you for your collective work. There is a small patch I would like to submit : when writing listings for the OCaml programming language, one should use the "[Objective]Caml" dialect, which is different from the "Caml" dialect. This is not reflected in the latex exported code. The attached patch changes this. Thank you in advance for your patience, this is my first patch so I hope I did everything correctly. Cheers ! -- Basile Pesin Inria Paris - PARKAS --------------7FF685830695A69DD0D644CC Content-Type: text/x-patch; charset=UTF-8; name="0001-ox-latex.el-Use-Objective-Caml-dialect.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-ox-latex.el-Use-Objective-Caml-dialect.patch" >From 7343ff30927876966d3eabd3c1ee9c2afa018d2e Mon Sep 17 00:00:00 2001 From: Basile Pesin Date: Thu, 14 Jan 2021 13:16:54 +0100 Subject: [PATCH] ox-latex.el : Use [Objective]Caml dialect * ox-latex.el (org-latex-listings-langs): Change the binding for `ocaml' to "[Objective]Caml" The "[Objective]Caml" dialect syntax highlighting is different from the "Caml" one (reflecting the added features of OCaml compared to Caml-light). TINYCHANGE --- lisp/ox-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 2a14b25d5..3b1fb71f2 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -956,7 +956,7 @@ URL `https://orgmode.org/worg/org-tutorials/org-latex-preview.html'." (tex "TeX") (latex "[LaTeX]TeX") (shell-script "bash") (gnuplot "Gnuplot") - (ocaml "Caml") (caml "Caml") + (ocaml "[Objective]Caml") (caml "Caml") (sql "SQL") (sqlite "sql") (makefile "make") (R "r")) -- 2.29.2 --------------7FF685830695A69DD0D644CC--