* org-block-regexp questions
@ 2015-01-22 0:36 Marcin Borkowski
2015-01-22 17:48 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2015-01-22 0:36 UTC (permalink / raw)
To: Org-Mode mailing list
Hi list,
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.
Next, this part:
\\([^ \n]+\\)
would suggest that TAB is a valid part of the name of the block.
Strange, isn't it?
Finally, the rationale behind
\\(\\([^\n]+\\)\\)?
escapes me completely. What's the use of groups nested like this?
Any ideas?
--
Marcin Borkowski This email was proudly sent
http://mbork.pl from my Emacs.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-block-regexp questions
2015-01-22 0:36 org-block-regexp questions Marcin Borkowski
@ 2015-01-22 17:48 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-01-22 17:48 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: Org-Mode mailing list
Hello,
Marcin Borkowski <mbork@wmi.amu.edu.pl> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-22 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-22 0:36 org-block-regexp questions Marcin Borkowski
2015-01-22 17:48 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).