From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Documentation patch Date: Sat, 1 Jan 2011 10:21:40 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1998492729==" Return-path: Received: from [140.186.70.92] (port=32913 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZ7xU-00012Q-6S for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 15:21:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZ7xS-0007r3-WC for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 15:21:48 -0500 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:41018) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PZ7xS-0007qv-Pt for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 15:21:46 -0500 Received: from cpe-66-91-68-127.hawaii.res.rr.com ([66.91.68.127] helo=[192.168.1.2]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1PZ7xO-0007bB-E2 for emacs-orgmode@gnu.org; Sat, 01 Jan 2011 13:21:42 -0700 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --===============1998492729== Content-Type: multipart/alternative; boundary=Apple-Mail-2--73995970 --Apple-Mail-2--73995970 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Aloha all, The attached patch documents multi-line headers for source code blocks: Thomas S. Dye, Ph.D. T. S. Dye & Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com --Apple-Mail-2--73995970 Content-Type: multipart/mixed; boundary=Apple-Mail-3--73995970 --Apple-Mail-3--73995970 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: 7bit Aloha all,

The attached patch documents multi-line headers for source code blocks:

--Apple-Mail-3--73995970 Content-Disposition: attachment; filename=babel-multi-line-header.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="babel-multi-line-header.patch" Content-Transfer-Encoding: 7bit Changes in HEAD Modified doc/org.texi diff --git a/doc/org.texi b/doc/org.texi index f324d04..efa892e 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -11601,6 +11601,33 @@ Similarly, it is possible to set header arguments for inline code blocks: src_haskell[:exports both]@{fac 5@} @end example +Code block header arguments can span multiple lines using =#+header:= or +=#+headers:= lines preceding a code block or nested in between the name and +body of a named code block. + +Multi-line header arguments on an un-named code block: +@example + #+headers: :var data1=1 + #+begin_src emacs-lisp :var data2=2 + (message "data1:%S, data2:%S" data1 data2) + #+end_src + + #+results: + : data1:1, data2:2 +@end example + +Multi-line header arguments on a named code block: +@example + #+source: named-block + #+header: :var data=2 + #+begin_src emacs-lisp + (message "data:%S" data) + #+end_src + + #+results: named-block + : data:2 +@end example + @node Header arguments in function calls, , Code block specific header arguments, Using header arguments @comment node-name, next, previous, up @subsubheading Header arguments in function calls --Apple-Mail-3--73995970 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable


Thomas S. Dye, Ph.D.

T. S. Dye & Colleagues, = Archaeologists, Inc.

Phone: (808) 529-0866 Fax: (808) 529-0884

=

= --Apple-Mail-3--73995970-- --Apple-Mail-2--73995970-- --===============1998492729== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1998492729==--