From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Alexander Gerds Subject: babel bugs?? Date: Thu, 23 Feb 2012 09:31:09 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0U8e-0001NF-IT for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 03:35:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0U8V-0000RA-PR for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 03:34:56 -0500 Received: from mail1.sund.ku.dk ([192.38.117.160]:47564 helo=edge1.sund.ku.dk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0U8V-0000QG-GZ for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 03:34:47 -0500 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 Dear Babel developers I may have found two bugs (org-mode: 7.8.03 release_7.8.03.330.gc804.dirty), emacs: 23.2.1): 1. when I have case-fold-search set to nil, I get problems with the begin/end src notation: ,---- lower case works as expected | | #+begin_src emacs-lisp :results list | (mapcar '(lambda (x) | (concat "[["(replace-in-string x (getenv "HOME") "~") "][" | (file-name-nondirectory x) "]]")) | (directory-files (file-name-directory (buffer-file-name)) t "^[a-z]*\.[a-z]+")) | #+end_src | | #+RESULTS: | - [[~/tmp/test/anotherTest.org][anotherTest.org]] | - [[~/tmp/test/tmp.org][tmp.org]] | `---- ,---- in upper case org cannot find the head of the source blok | | #+BEGIN_SRC emacs-lisp :results list | - [[~/tmp/test/anotherTest.org][anotherTest.org]] | - [[~/tmp/test/tmp.org][tmp.org]] | | (mapcar '(lambda (x) | (concat "[["(replace-in-string x (getenv "HOME") "~") "][" | (file-name-nondirectory x) "]]")) | (directory-files (file-name-directory (buffer-file-name)) t "^[a-z]*\.[a-z]+")) | #+END_SRC `---- Inside the second block (org-babel-where-is-src-block-head) evaluates to nil 2. posted to the list before, but never got an answer: ,---- | -------------org.snip----------------------- | * here it works: org-ctrl-c-ctrl-c and export | | #+begin_src R :results output :exports results | foo=matrix(1:2) | foo | #+end_src | | #+RESULTS: | : [,1] | : [1,] 1 | : [2,] 2 | | * here it does not work: | | #+begin_src R :results output :exports results :session *R* | foo=matrix(3:8) | foo | #+end_src | | the buffer *R* shows this: | | > 'org_babel_R_eoe' | [1] "org_babel_R_eoe" | ----------------org.snap------------------ | | some debugging revealed this: | | ELISP> (org-babel-R-evaluate-session "*R*" "foo=matrix(1:2)\nfoo" | output '("output" "replace") nil nil) | *** Eval error *** | ELISP> (org-babel-R-evaluate-external-process "foo=matrix(1:2)\nfoo" | output '("output" "replace") nil nil) | " [,1]\n[1,] 1\n[2,] 2\n" `---- would you rather have bug reports? cheers Tomy