From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: two sets of default header arguments for one language Date: Mon, 14 Sep 2015 16:39:13 +0200 Message-ID: References: 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]:42165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbUuf-0007T1-Fp for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 10:39:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbUub-0006PJ-RQ for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 10:39:21 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:54501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbUua-0006Ox-Vp for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 10:39:17 -0400 In-Reply-To: (Alan Schmitt's message of "Fri, 11 Sep 2015 11:36:17 +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: "Charles C. Berry" Cc: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-09-11 11:36, Alan Schmitt writes: > On 2015-09-11 00:39, "Charles C. Berry" writes: > >>>> Is there a way to have two sets of default arguments for a given >>>> language, or can I declare a new language just for the sake of differe= nt >>>> arguments? >>>> >>> >>> I'd use two new `languages'. >>> >>> For most uses, I think you can get away with as little as this: >>> >>> (defalias 'org-babel-execute:ocaml-a 'org-babel-execute:ocaml) >>> (defalias 'org-babel-execute:ocaml-q 'org-babel-execute:ocaml) >>> >>> (defvar org-babel-default-header-args:ocaml-a >>> '((:exports . "results") [fill in the rest] )) >>> (defvar org-babel-default-header-args:ocaml-q >>> '((:tangle . "tp1.ml"))) >>> >>> >>> and have acceptable behavior without stepping on the original language. >> >> >> You also want to customize `org-src-lang-modes' to be able to edit the s= rc >> code natively. > > Very nice! I=E2=80=99ll give it a try. Thanks a lot, I would like to report that this worked perfectly and out of the box. Thanks a lot! Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Last week athmospheric CO=E2=82=82 average (Updated September 13, 2015, Mau= na Loa Obs.): 397.77 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJV9twRAAoJEAQNCjtO0uXHDm0H/3Xg2jyCcUM4Asz+H9SvN3/F QAgc2V5P7df/Y+mnlCWjV0k64DGgXkOWv/chWO0pEqDAmj0TlIVG8C2mN1DYCmyp vB7Og9rQkSoSU22SVwMBfrwc/dFwhrXd5mogrFAexwhY2ybiuvQ5F3lizGaops7E erLhE/8/727zCO/h4jm4PM3reM9qS4zz5WVIQbRMrScawq0vM1AS56t3q0QgDqb2 xyAmSla/JMx3jO1H/MTzCFoavux85zOg6xuINoC4GQwV7Uur3/EWJ7KKzUdOCRkv FN01UxCfF1cEnHmhLEcNtevR7lriTb2zRfdBD1XvpkU3axZ2VEPZKCN1GHVPDMo= =unBW -----END PGP SIGNATURE----- --=-=-=--