From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Bug in org-src.el? Date: Tue, 12 Feb 2013 17:19:56 +0100 Message-ID: <87y5et5wsz.fsf@gmail.com> References: <8738xgf5ia.fsf@googlemail.com> <87y5euhp9r.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Iak-0000G4-Iv for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 11:20:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5Iae-0007N9-6n for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 11:20:22 -0500 Received: from plane.gmane.org ([80.91.229.3]:46513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Iae-0007Mu-0J for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 11:20:16 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U5Iav-0005ea-Ek for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 17:20:33 +0100 Received: from e178056063.adsl.alicedsl.de ([85.178.56.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Feb 2013 17:20:33 +0100 Received: from tjolitz by e178056063.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Feb 2013 17:20:33 +0100 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 Bastien writes: Hi Bastien, > Yes, I've seen this error too sometimes and it was not easy > to fix when I tried to. > > Can you share the minimal code block to reproduce? ,------------------------------------------ | * org-src.el bug MWE | | #+begin_src picolisp :results output html | (+ 3 5) | #+end_src | | #+results: | #+BEGIN_HTML | #+END_HTML `------------------------------------------ ,---------------------------------------------------------------------- | executing Picolisp code block... | executing Picolisp source code block | Wrote /tmp/babel-81734R/input-817F22 | org-escape-code-in-region: Invalid search bound (wrong side of point) `---------------------------------------------------------------------- I discovered this with a much more complicated code block, but with some (not really successfull) debugging I found out that the problem is simply an empty result string, i.e. this happens when 'results' is '""'. So its easy to reproduce with any expression that doesn't produce output. -- cheers, Thorsten