Ihor Radchenko <[email protected]> writes:

> Steven Allen <[email protected]> writes:
>
>> I've attached 3 patches this time. to try to keep each individual change
>> small(ish).
>
> Thanks!
> Applied, onto main, after adding declare statement to the macro
> definition and cleaning up commit messages to have double space between
> sentences.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fb9940bc4
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=55a0ea351
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=759da9046

Thanks! I've gotten used to the asymmetrical single quotes, but the the
double spaced sentences still trips me up every time.

>> If the desire is to support parsing org-mode text outside of org-mode,
>> it probably makes sense to replace all instances of "\\S-" in regular
>> expressions with something more generic (e.g., "[ \t\r\n]+"). However,
>> that's a very large search and replace.
>
> Actually, more than that. All the rx-based regexps that make use
> of `space' construct should also be considered. And we cannot just go
> with \s because Org syntax explicitly allow arbitrary whitespace
> (including e.g. zero-width space that we recommend as escape character)
> in many scenarios. I think that the right solution will be wrapping all
> the parser-related staff into org-with-syntax-table.

There are a lot of entrypoints. Are you thinking about defining some
kind of `org-defun'? Or restricting the entrypoints to a few org-element
functions?

Reply via email to