From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH} Re: inline code block problem; first attempt Date: Thu, 09 Jun 2016 13:41:38 +0200 Message-ID: <87y46efv2l.fsf@saiph.selenimh> References: <87y46fy1d1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAyLN-0002aH-VF for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 07:41:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAyLM-0004Hr-0x for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 07:41:48 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:46294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAyLL-0004Hf-QT for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 07:41:47 -0400 In-Reply-To: (Charles C. Berry's message of "Wed, 8 Jun 2016 19:43:26 -0700") 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" To: "Charles C. Berry" Cc: Charles Millar , "emacs-orgmode@gnu.org" Hello, "Charles C. Berry" writes: > Patch atteched. > > Replaced ']' with '{' in the regex `header' group. > > Comments? Thank you for the patch. This is better than what we have now. However, I don't think this is the way to go. Forbidding "{" is already a minor annoyance, but porting the same logic to `org-element-inline-babel-call-parser', which suffers from the same bug, means forbidding "(" ; this is a major one. I'd rather do the same as the body part and allow "[" (and "{" obviously), as long as they are paired. This is less restrictive, IMO, even acceptable in the case of "(". I also started a fix along those lines yesterday but didn't get time to finish it yet. WDYT? Regards, -- Nicolas Goaziou