From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH] :wrap header documentation Date: Wed, 11 Jan 2012 19:44:17 -0700 Message-ID: <87obu97i7y.fsf@gmx.com> References: <87ipkm3vda.fsf@Rainer.invalid> <87hb06yniw.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlAeb-0007Ab-Nc for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 21:44:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlAeZ-000890-P7 for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 21:44:37 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:49929) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RlAeZ-00088q-IH for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 21:44:35 -0500 In-Reply-To: (Thomas S. Dye's message of "Wed, 11 Jan 2012 16:14:53 -1000") 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: "Thomas S. Dye" Cc: Achim Gratz , emacs-orgmode@gnu.org Hi Tom, Thanks for this patch, I've just pushed up an augmented version which more closely matches the current behavior. tsd@tsdye.com (Thomas S. Dye) writes: > Hi Eric, > > Attached please find a first draft of a patch for the manual entry > documenting a :wrap header argument. > > All the best, > Tom > > > > tsd@tsdye.com (Thomas S. Dye) writes: > >> Eric Schulte writes: >> >>> Achim Gratz writes: >>> >>>> tsd@tsdye.com (Thomas S. Dye) writes: >>>>> The attached patch defines a new header argument, :special, which wraps >>>>> the results of Org babel source block execution in a #BEGIN_ ... #+END_ >>>>> block. The block name is taken from a new variable >>>>> org-babel-wrap-special, which is initialized as "results". >>>> >>>> What is the rationale for feeding the block name via a configuration >>>> variable rather then a value to the header argument ":special"? >>>> >>>> >>>> Regards, >>>> Achim. >>> >>> Attached is an alternate patch and an example of its use. This patch >>> introduces a ":wrap" header argument which accepts an optional value >>> used to specify the name of the block with which to wrap results. If >>> this looks workable we could push it up once it gets some documentation >>> and tests. >>> >>> Cheers, >>> >>> >>> #+Title: demonstrating the new :wrap header argument >>> >>> #+begin_src emacs-lisp :wrap schulte >>> '((1 2) >>> (3 4)) >>> #+end_src >>> >>> #+results: >>> #+BEGIN_schulte >>> | 1 | 2 | >>> | 3 | 4 | >>> #+END_schulte >> >> Hi Eric, >> >> Thanks for the :wrap header argument. It works for me. >> >> The attached patch on top of your patch looks for :wrap drawer, and puts >> the result in a drawer, rather than wrapping the results in #+begin >> ... #+end. >> >> What I'm trying to do is make :results wrap obsolete. >> >> Also, note that with the :wrap header argument, :results org and >> :results latex are both redundant. I'm not sure how you want to handle >> this--whether to leave them in place or remove them. >> >> I'll volunteer to work on the documentation. >> >> All the best, >> Tom -- Eric Schulte http://cs.unm.edu/~eschulte/