From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiago Natel de Moura Subject: Multiple header-args of same name in babel Date: Thu, 17 Mar 2016 15:58:28 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11440dfa723b1a052e43389d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agd8D-0001s7-VL for emacs-orgmode@gnu.org; Thu, 17 Mar 2016 14:58:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agd8D-0007qS-3r for emacs-orgmode@gnu.org; Thu, 17 Mar 2016 14:58:49 -0400 Received: from mail-vk0-x231.google.com ([2607:f8b0:400c:c05::231]:35282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agd8C-0007qO-Vm for emacs-orgmode@gnu.org; Thu, 17 Mar 2016 14:58:49 -0400 Received: by mail-vk0-x231.google.com with SMTP id e6so114396654vkh.2 for ; Thu, 17 Mar 2016 11:58:48 -0700 (PDT) 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 --001a11440dfa723b1a052e43389d Content-Type: text/plain; charset=UTF-8 Hello, What's the best way to split long header arguments in multiple lines? What I want to achieve is the same as the babel :var argument, but for other header (:imports). For example, with :var I can do: #+HEADER: :var a=1 #+HEADER: :var b=2 #+HEADER: :var c=3 #+BEGIN_SRC go fmt.Printf("%d", a+b+c) #+END_SRC But it doesn't work for other headers and as I'd saw experimenting some code in ob-go, it's impossible without some changes in ob-core.el, because :var is handled differently there. When the function org-babel-execute:go is called, the params only have the first header assigned. What I'm trying to solve is the following problem: #+HEADER: :imports '("fmt" "math" "crypto" ... ) #+BEGIN_SRC go // some code #+END_SRC I wanna keep my source code with lines with 80 columns as possible... Thanks. -- []'s i4k --001a11440dfa723b1a052e43389d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

What's the best way to split= long header arguments in multiple lines?

What I w= ant to achieve is the same as the babel :var argument, but for other header= (:imports).

For example, with :var I can do:

#+HEADER: :var a=3D1
#+HEADER: :var b=3D2
#+HEADER: :var c=3D3
#+BEGIN_SRC go
fmt.Printf("%d", a+b+c)
#+END_SRC

=
But it doesn't work for other headers and as I'd saw experimen= ting some code in ob-go, it's impossible without some changes in ob-cor= e.el, because :var is handled differently there. When the function=C2=A0org= -babel-execute:go is called, the params only have the first header assigned= .

What I'm trying to solve is the following pr= oblem:

#+HEADER: :imports '("fmt" &q= uot;math" "crypto" ... <very long list of imports here>= ;)
#+BEGIN_SRC go
// some code
#+= END_SRC

I wanna keep my source code with lin= es with 80 columns as possible...

Thanks.

--
[]&= #39;s
i4k
--001a11440dfa723b1a052e43389d--