From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [BUG] src_blocks - :results raw and replace don't work together Date: Mon, 07 Jul 2014 22:01:17 -0400 Message-ID: <87ha2sy5g2.fsf@alphaville.bos.redhat.com> References: <87vbraroza.fsf@gmail.com> <87ion96zny.fsf@gmail.com> <87mwclgp85.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Kiy-00062v-0N for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 22:01:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4Kir-0005R2-Ok for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 22:01:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:36960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Kir-0005Qq-IR for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 22:01:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X4Kip-0001Nw-QE for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 04:01:31 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jul 2014 04:01:31 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jul 2014 04:01:31 +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: emacs-orgmode@gnu.org Thorsten Jolitz writes: > Grant Rettke writes: > >> It sounds like you wanted the same thing that I did. >> >> What I wanted is something like running 'script' before starting a >> REPL and just capturing the output and that is it. That output is not >> being used to be inserted back into the document or anything... it >> just captured the results of commands sent into the REPL. >> >> I tried a lot of different combinations until I felt like my goal was >> simple: >> 1. Wrap the output. >> 2. Put the output in a "sh" type result, something from the shell >> 3. Let replace work >> >> This is what was the best: >> >> ,---- >> | #+PROPERTY: header-args+ :results output scalar pp replace >> `---- > > Nice trick, it gets very close to what I want (and I start to get this > :header-args+, :results+ ... syntax): > > ,---- > | #+results: dblock > | : > | : > | : ** Overview :READONLY: > | : > | : #+begin: foo :bar loo > | : > | : #+end: > `---- > > Have you found a way to get rid of those leading colons (maybe with a > hook for post-processing the results before they are printed or so)? > > Output shorter than org-babel-min-lines-for-block-output (10 by default) is colon-commented. If it's longer, then it's wrapped in an example block. If you prefer that always, set it to 0. Nick