From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Subject: Re: Hang on incomplete input Date: Wed, 30 Nov 2011 17:12:23 -0600 Message-ID: <87mxbdkxwo.fsf@gmail.com> References: <21A5E1E970CD46459ECBE86D6CC4B28C52E23B34@spexch01.WindLogics.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVtKI-0007y6-AV for emacs-orgmode@gnu.org; Wed, 30 Nov 2011 18:12:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVtKH-0007kr-42 for emacs-orgmode@gnu.org; Wed, 30 Nov 2011 18:12:30 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:33104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVtKG-0007kh-WA for emacs-orgmode@gnu.org; Wed, 30 Nov 2011 18:12:29 -0500 Received: by ghrr17 with SMTP id r17so1432279ghr.0 for ; Wed, 30 Nov 2011 15:12:28 -0800 (PST) In-Reply-To: <21A5E1E970CD46459ECBE86D6CC4B28C52E23B34@spexch01.WindLogics.local> (Ken Williams's message of "Wed, 30 Nov 2011 16:41:50 -0600") 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: Ken Williams Cc: "emacs-orgmode@gnu.org" Ken Williams writes: > Apparently, org-mode Babel (or maybe Emacs, or ESS) will hang when > given incomplete input, like the following: > > #+begin_src R > ddply(x, > #+end_src > > I was just tearing my hair out trying to figure out why my code was > hanging, because of course it's much longer and I didn't notice the > missing paren. > > Is this replicable on other people's platforms too? I'm using GNU > Emacs on Windows, with org-mode 7.7 and ESS 5.14. > > There are other situations where I really wish org-mode (or Emacs, or > ESS) didn't freeze up while evaluating R code - for example if I > accidentally did 'debug()' on a function that's now being called, or > even just on long-running calculations. Any chance evaluation could > be done in a separate thread or something? In Ubuntu 10.10, emacs 23.2 and recent org, I get an *Org-Babel Error Output* buffer, saying: Error: unexpected '}' in: "ddply(x, }" Execution halted