From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Missing newline in R code causes Org-Mode eval to hang Date: Mon, 17 Oct 2011 12:57:31 -0700 (PDT) Message-ID: <1318881451.32666.YahooMailNeo@web161920.mail.bf1.yahoo.com> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFtJW-0000qI-Ui for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 15:57:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFtJV-0006lH-86 for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 15:57:34 -0400 Received: from nm22-vm0.bullet.mail.bf1.yahoo.com ([98.139.212.126]:29268) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RFtJV-0006kr-3V for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 15:57:33 -0400 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: Org-Mode List Greetings. =A0The appended R code fragment executes without problem in=0Aan= ESS buffer, but it hangs indefinitely when I try to execute it=0Adirectly = from the Org buffer via C-c C-c.=0A=0AThe solution is to add the trailing n= ewline in the "noteToSelf"=0Avariable:=0A=0A=A0 =A0 noteToSelf <- "Buy low.= \nSell high.\n"=0A=0AObviously this isn't a big deal from my perspective, b= ut it did=0Asurprise me, and it does seem inconsistent.=0A=0ABTW, I've appe= nded also the details of my own (linux) configuration,=0Abut I tried the sa= me thing on a different OS (Mac OS 10.6.8) and got=0Athe same results.=0A= =0A-- Mike=0A=0A###### Org code that exhibits error=0A=0A#+BABEL: :session = *R* :cache yes :results output verbatim :exports both :tangle yes=0A=0A* Th= is is a test=0A=0A#+begin_src R=0A=0A=A0 x <- 42=0A=A0 noteToSelf <- "Buy l= ow.\nSell high."=0A=A0 cat(noteToSelf)=0A=A0 print("All done now")=0A=0A#+e= nd_src=0A=0A=0A###### My set-up=0A=0AEmacs =A0: GNU Emacs 23.2.1 (x86_64-re= dhat-linux-gnu, GTK+ Version 2.24.4)=0A=A0of 2011-05-23 on x86-12.phx2.fedo= raproject.org=0APackage: Org-mode version 7.7 (release_7.7.328.g1a97)=0A=0A= current state:=0A=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A(setq=0A=A0or= g-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)=0A= =A0org-structure-template-alist '(("r" "#+begin_src R\n\n#+end_src" "\n\n")=0A("S" "#+BEGIN_SRC ?\n\n#+END_SRC" "\n\n")=0A("s" "#+begin_src ?\n\n#+end_src" "\n= \n")=0A("e" "#+begin_example\n?\n#+end_example" "\n?\n")=0A("q" "#+begin_quote\n?\n#+end_quote" "\n?\n")=0A("v= " "#+begin_verse\n?\n#+end_verse" "\n?\n/verse>")=0A("c" "#+begin_ce= nter\n?\n#+end_center" "
\n?\n/center>")=0A("l" "#+begin_latex\n?\n#= +end_latex" "\n?\n")=0A("L" "#+latex: = " "?")=0A("h" "#+begin_html\n?\n#+end_= html" "\n?\n")=0A("H" "#+html: " "?") ("a" "#+begin_ascii\n?\n#+end_ascii")=0A= ("A" "#+ascii: ") ("i" "#+index: ?" "#+index: ?")=0A("I" "#+include %file ?= " ""))=0A=A0org-speed-command-hook '(o= rg-speed-command-default-hook org-babel-speed-command-hook)=0A=A0org-agenda= -files '("~/Documents/scratch.org")=0A=A0org-babel-load-languages '((emacs-= lisp . t) (R . t) (python . t) (sh . t) (latex . t) (C . t) (octave \.t))= =0A=A0org-metaup-hook '(org-babel-load-in-session-maybe)=0A=A0org-after-tod= o-state-change-hook '(org-clock-out-if-current)=0A=A0org-babel-tangle-lang-= exts '(("C++" . "cpp") ("latex" . "tex") ("python" . "py") ("emacs-lisp" . = "el"))=0A=A0org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup= )=0A=A0org-export-latex-format-toc-function 'org-export-latex-format-toc-de= fault=0A=A0org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-= tab-command-maybe org-babel-hide-result-toggle-maybe)=0A=A0org-src-mode-hoo= k '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)= =0A=A0org-confirm-shell-link-function 'yes-or-no-p=0A=A0org-export-first-ho= ok '(org-beamer-initialize-open-trackers)=0A=A0org-agenda-before-write-hook= '(org-agenda-add-entry-text)=0A=A0org-blank-before-new-entry nil=0A=A0org-= babel-pre-tangle-hook '(save-buffer)=0A=A0org-cycle-hook '(org-cycle-hide-a= rchived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines=0A=A0org= -optimize-window-after-visibility-change)=0A=A0org-export-preprocess-before= -normalizing-links-hook '(org-remove-file-link-modifiers)=0A=A0org-mode-hoo= k '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook = org-show-block-all append local] 5]=0A#[nil "\300\301\302\303\304$\207" [or= g-add-hook change-major-mode-hook org-babel-show-result-all append local] 5= ]=0Aorg-babel-result-hide-spec org-babel-hide-all-hashes)=0A=A0org-ctrl-c-c= trl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)=0A=A0o= rg-confirm-elisp-link-function 'yes-or-no-p=0A=A0org-export-interblocks '((= lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks))=0A= =A0org-clock-out-hook '(org-clock-remove-empty-clock-drawer)=0A=A0org-occur= -hook '(org-first-headline-recenter)=0A=A0org-from-is-user-regexp "\\"=0A=A0org-export-preprocess-before-selecting-backend-code-hook= '(org-beamer-select-beamer-code)=0A=A0org-confirm-babel-evaluate 'my-org-c= onfirm-babel-evaluate=0A=A0org-export-latex-final-hook '(org-beamer-amend-h= eader org-beamer-fix-toc org-beamer-auto-fragile-frames=0A=A0 =A0 =A0 org-b= eamer-place-default-actions-for-lists)=0A=A0org-metadown-hook '(org-babel-p= op-to-session-maybe)=0A=A0org-export-blocks '((src org-babel-exp-src-block = nil) (comment org-export-blocks-format-comment t)=0A=A0 =A0 (ditaa org-expo= rt-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil))=0A=A0)