From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [babel][patch] BUG in inline source blocks Date: Fri, 27 Jan 2012 23:26:26 +0100 Message-ID: <87y5ss6aul.fsf@med.uni-goettingen.de> References: <87fwf27w67.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RquFv-00040C-Cu for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 17:26:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RquFu-0008Ka-5U for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 17:26:51 -0500 Received: from lo.gmane.org ([80.91.229.12]:42428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RquFt-0008KQ-Vi for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 17:26:50 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RquFq-0008QZ-SG for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 23:26:46 +0100 Received: from vpn-2120.gwdg.de ([134.76.2.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jan 2012 23:26:46 +0100 Received: from andreas.leha by vpn-2120.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jan 2012 23:26:46 +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 Martyn Jago writes: > Martyn Jago writes: > >> Hi, >> >> Andreas Leha writes: >> >>> Hi all, >>> >>> I experience unexpected behaviour when an inline source block is not >>> preceded by whitespace. >>> >>> Example: >>> ======================= >>> * Test inline >>> This is a functional inline src_R{print("source block")}. >>> >>> This (src_R{print("here")}) is not. >>> ======================= >>> >>> Regards, >>> Andreas >> >> I can confirm this behaviour and provide a patch to allow for inline >> source blocks to be preceded by punctuation, or, for instance, enclosed >> in parenthesis, as in Andreas' example. Patch is attached for >> consideration. >> >> Best, Martyn > > This is an updated version of the previous patch, with debug noise > removed, and a couple of extra tests. > > Best, Martyn Hi Martyn, thanks for this patch! It does half the job for me. Now export (or evaluation) already work. But in the export I get a space inserted. I my example, I'd expect "(here)" to appear in the export, but I get "( here)". Best, Andreas