From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-block-regexp questions Date: Thu, 22 Jan 2015 18:48:27 +0100 Message-ID: <87h9vi7llg.fsf@selenimh.mobile.lan> References: <87twzjircy.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YELqo-0000Ag-3g for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 12:47:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YELqk-0003K9-Ue for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 12:47:26 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:51682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YELqk-0003Jz-OZ for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 12:47:22 -0500 In-Reply-To: <87twzjircy.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Thu, 22 Jan 2015 01:36:13 +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: Marcin Borkowski Cc: Org-Mode mailing list Hello, Marcin Borkowski writes: > I'm studying org-block-regexp. One thing that bugs me is this part: > > #\\+begin_? > > It suggests to me that the underscore after "begin" might be optional; > but a quick experiment with the exporter shows that this is not the > case. This is the case for dynamic blocks (info "(org) Dynamic blocks") > Next, this part: > > \\([^ \n]+\\) > > would suggest that TAB is a valid part of the name of the block. > Strange, isn't it? It is. "\\(\\S-+\\)" would be more appropriate I think (this is also what is used in "org-element.el"). > Finally, the rationale behind > > \\(\\([^\n]+\\)\\)? > > escapes me completely. What's the use of groups nested like this? This looks like a plain bug, a minor one, tho. Before fixing it, Someone has to make sure it doesn't break matching groups somewhere. Regards, -- Nicolas Goaziou