From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ross Donaldson Subject: Re: Bug: CALL misbehavior with :results verbatim [8.3.4 (8.3.4-5-gdc68d2-elpaplus @ /Users/rossdonaldson/.emacs.d/elpa/org-plus-contrib-20160229/)] Date: Tue, 05 Apr 2016 15:45:05 -0700 Message-ID: References: <874mc6vyby.fsf@nicolasgoaziou.fr> <87h9g6gevo.fsf@gmail.com> <87lh4v12yf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anZij-0003oG-Tz for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 18:45:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anZif-0007Pn-8D for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 18:45:13 -0400 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:34675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anZif-0007Oa-1B for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 18:45:09 -0400 Received: by mail-qg0-x231.google.com with SMTP id c6so22862177qga.1 for ; Tue, 05 Apr 2016 15:45:08 -0700 (PDT) In-reply-to: <87lh4v12yf.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas -- Oh! Apologies: didn't mean to be short or unhelpful. I misunderstood you -- my bad! So: by default (at least, for me, in my configuration), Org automatically tries to interpret the results of src blocks as Org values -- usually tables. For example, evaluating `ls -la` in a shell src block returns, by default, Org's best attempt to parse a table from the output of ls. `:results verbatim` skips this, inserting the values as an example block. Vis: #+BEGIN_SRC sh ls -la | head #+END_SRC #+RESULTS: | total | 360 | | | | | | | | | | | drwxr-xr-x@ | 17 | rossdonaldson | staff | 578 | Apr | 5 | 15:42 | . | | | | lrwxr-xr-x | 1 | rossdonaldson | staff | 39 | Apr | 5 | 15:42 | .#cotidienne.org | -> | rossdonaldson@RossDonaldson.local.53153 | | drwx------@ | 62 | rossdonaldson | staff | 2108 | Mar | 31 | 19:37 | .. | | | | -rw-r--r--@ | 1 | rossdonaldson | staff | 5688 | Mar | 8 | 23:07 | Rplots.pdf | | | | drwxr-xr-x@ | 3 | rossdonaldson | staff | 102 | Mar | 8 | 23:06 | auto | | | | -rw-r--r--@ | 1 | rossdonaldson | staff | 39 | May | 12 | 2015 | bookmarks.org | | | | -rw-r--r--@ | 1 | rossdonaldson | staff | 31 | Feb | 25 | 09:32 | cotidienne.md | | | | -rw-r--r--@ | 1 | rossdonaldson | staff | 34538 | Apr | 5 | 15:33 | cotidienne.org | | | #+BEGIN_SRC sh :results verbatim ls -la | head #+END_SRC #+RESULTS: #+begin_example total 360 drwxr-xr-x@ 17 rossdonaldson staff 578 Apr 5 15:42 . lrwxr-xr-x 1 rossdonaldson staff 39 Apr 5 15:42 .#cotidienne.org -> rossdonaldson@RossDonaldson.local.53153 drwx------@ 62 rossdonaldson staff 2108 Mar 31 19:37 .. -rw-r--r--@ 1 rossdonaldson staff 5688 Mar 8 23:07 Rplots.pdf drwxr-xr-x@ 3 rossdonaldson staff 102 Mar 8 23:06 auto -rw-r--r--@ 1 rossdonaldson staff 39 May 12 2015 bookmarks.org -rw-r--r--@ 1 rossdonaldson staff 31 Feb 25 09:32 cotidienne.md -rw-r--r--@ 1 rossdonaldson staff 34538 Apr 5 15:33 cotidienne.org #+end_example So. With call, I get values wrapped in quotes, often with a newline, if I use `verbatim`. Nicolas Goaziou writes: > Hello, > > Ross Donaldson writes: > >> Nicolas -- >> >>> Isn't it the point of the "verbatim" parameter? >> >> I didn't think so, no. Certainly, it doesn't behave this way in any other context, nor does the documentation make me think it should. >> >>> What did you expect instead? >> >> I expect the results of a call block to be the same as from evaluating the named src block directly. Why would I expect anything else? > > I don't know. I am not sure about the meaning of "verbatim". I was > hoping for an explanation. > > Anyway, I investigated a bit. see > for some more information. > > > Regards, -- Cheers, Ross