From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Error exporting empty results block Date: Sat, 29 Dec 2012 14:32:00 +0100 Message-ID: <87sj6pf0hb.fsf@bzg.ath.cx> References: <50D91684.6010108@no8wireless.co.nz> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TowWD-0007H4-PB for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 08:32:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TowW9-0002pe-VD for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 08:32:05 -0500 Received: from mail-wi0-f182.google.com ([209.85.212.182]:50840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TowW9-0002pX-Or for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 08:32:01 -0500 Received: by mail-wi0-f182.google.com with SMTP id hn14so6341583wib.3 for ; Sat, 29 Dec 2012 05:32:01 -0800 (PST) In-Reply-To: <50D91684.6010108@no8wireless.co.nz> (Michael Gauland's message of "Tue, 25 Dec 2012 15:59:16 +1300") 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: Michael Gauland , schulte eric Cc: emacs-orgmode Org-Mode Hi Michael, Michael Gauland writes: > org-escape-code-in-region produces an 'Invalid search bound (wrong side > of point)' error when exporting a block that produces an empty wrapped > block. For example: > > #+BEGIN_SRC emacs-lisp :wrap fundamental :exports both > (setq x nil) > #+END_SRC > > I'm exporting an empty block because I want the side effect of executing > the block. I have a large number of other blocks that produce non-empty > results, and I'm using a global :wrap setting for those. > > Any suggestions on solving this would be appreciated. I confirm this bug. I cc Eric so that he can have a look (I did have a look but the fix is not straightforward and I'm less familiar with this part of the code than Eric.) Thanks for reporting this, -- Bastien