From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH] Process hlines in imported tables Date: Thu, 04 Apr 2013 09:02:29 -0600 Message-ID: <87mwtepce2.fsf@gmail.com> References: <20130329014615.GA49671@BigDog.local> <87wqsq6yd1.fsf@gmail.com> <20130329214238.GA53401@BigDog.local> <87r4ixah7y.fsf@gmail.com> <20130330234151.GA53721@BigDog.local> <87mwtkqtzh.fsf@gmail.com> <20130331122900.GA57939@BigDog.local> <87vc83bhma.fsf@Rainer.invalid> <867gkiz99z.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNlgs-0007Un-QL for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 11:03:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNlgi-0006zA-PF for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 11:03:02 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:41183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNlgi-0006yv-IB for emacs-orgmode@gnu.org; Thu, 04 Apr 2013 11:02:52 -0400 Received: by mail-pb0-f42.google.com with SMTP id up7so1481456pbc.1 for ; Thu, 04 Apr 2013 08:02:51 -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: Sebastien Vauban Cc: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > Hi Achim, > > Achim Gratz wrote: >> Rick Frankel writes: >>> Missed verbatim. Thanks for the pointer, it works, but i think that >>> perl is double-processing returned values. If we do the same things in >>> elisp i get (my) expected results: >>> >>> #+begin_src elisp :results raw >>> "|c1|c2| >>> |- >>> |a|1| >>> |b|2|"; >>> #+end_src >> >> Elisp is different from all other languages: it doesn't do any >> processing of strings to begin with for value returns. The reason that >> Perl processes "raw" results is that org-babel-result-cond does not >> switch to the "scalar" path for this condition, which is why you need >> the extra "verbatim". It probably should, though, so if Eric agrees >> then I will push a change that does this. > > IIUC, wouldn't that be changing the default answer to "how to interpret the > results" just for Perl? While the default answer for all languages seems to > be "table"? > I would agree that this (meaning raw implies scalar) should either occur for all languages or for none. If we do have such header argument implications, then we'd want to put them into the weakest portion of the default header argument hierarchy. Currently this hierarchy looks something like 1. default header arguments shipped with Org-mode 2. user-set default header arguments 3. default languages-specific header arguments shipped with Org-mode 4. user-set default language-specific header arguments 5. buffer or file level header arguments 6. subtree header arguments 7. code block header arguments I think this raw implies verbatim action should probably take place somewhere between 3 and 4, but there could be arguments for other positions. Also, without looking at the code, I'm not sure how difficult adding such implications would be. Are there other header argument implication rules which would make code blocks "do what I mean" more naturally in more situations? Cheers, > > Best regards, > Seb -- Eric Schulte http://cs.unm.edu/~eschulte