From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel][patch] BUG in inline source blocks Date: Fri, 27 Jan 2012 16:33:10 -0700 Message-ID: <87aa58aeyn.fsf@gmx.com> References: <87fwf27w67.fsf@med.uni-goettingen.de> <87y5ss6aul.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqvSp-0007iO-6f for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 18:44:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqvSn-0001B5-VN for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 18:44:15 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:42328 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RqvSn-0001At-M3 for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 18:44:13 -0500 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: Andreas Leha Cc: emacs-orgmode@gnu.org Andreas Leha writes: > 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 > Thanks for this patch Martyn, I just pushed up your [:punct:] change. > > 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)". > This should now be fixed. Best, > > Best, > Andreas > > -- Eric Schulte http://cs.unm.edu/~eschulte/