Re: Discrepancy between documentation and implementation regarding comments

2019-10-29 Thread Robert Pluim
> On Tue, 29 Oct 2019 15:14:37 +0100, Thibault Polge said: Thibault> Robert Pluim writes: >> end of line *is* a whitespace character, but Iʼm not going to argue >> that. Iʼm going to argue that this doesnʼt cover the case of a '#' at >> EOB without a newline, hence saying

Re: Discrepancy between documentation and implementation regarding comments

2019-10-29 Thread Thibault Polge
Robert Pluim writes: > end of line *is* a whitespace character, but Iʼm not going to argue > that. Iʼm going to argue that this doesnʼt cover the case of a '#' at > EOB without a newline, hence saying 'zero or more' would be better. But zero-or-more would mean that this line: #Alpha Is a

Re: Discrepancy between documentation and implementation regarding comments

2019-10-29 Thread Robert Pluim
> On Mon, 28 Oct 2019 17:16:55 +0100, Nicolas Goaziou > said: Nicolas> Hello, Nicolas> Thibault Polge writes: >> Thanks Nicolas, just a small detail though: unless this is a planned >> (breaking) change, I believe the description you linked should read: >> >>

Re: Discrepancy between documentation and implementation regarding comments

2019-10-28 Thread Nicolas Goaziou
Hello, Thibault Polge writes: > Thanks Nicolas, just a small detail though: unless this is a planned > (breaking) change, I believe the description you linked should read: > > A “comment line” starts with *zero or more whitespace characters, > followed by* a hash sign, followed by a whitespace

Re: Discrepancy between documentation and implementation regarding comments

2019-10-28 Thread Thibault Polge
Nicolas Goaziou writes: > See (with a nice > typo...) Thanks Nicolas, just a small detail though: unless this is a planned (breaking) change, I believe the description you linked should read: A “comment line” starts with *zero or more

Re: Discrepancy between documentation and implementation regarding comments

2019-10-28 Thread Nicolas Goaziou
Hello, Thibault Polge writes: > According to Org-Mode documentation[1], See (with a nice typo...) Regards, -- Nicolas Goaziou

Re: Discrepancy between documentation and implementation regarding comments

2019-10-27 Thread Samuel Wales
beware # at eob with no newline. On 10/27/19, Adam Porter wrote: > I agree with Robert that "whitespace" includes newlines in "Emacsland." > For example, with this document (the second "#" has a newline > immediately after, no spaces or tabs): > > #+BEGIN_SRC org > foo > > # comment > > bar > >

Re: Discrepancy between documentation and implementation regarding comments

2019-10-27 Thread Adam Porter
I agree with Robert that "whitespace" includes newlines in "Emacsland." For example, with this document (the second "#" has a newline immediately after, no spaces or tabs): #+BEGIN_SRC org foo # comment bar # buzz #+END_SRC This code matches both lines that begin with "#":

Re: Discrepancy between documentation and implementation regarding comments

2019-10-27 Thread Robert Pluim
> On Sun, 27 Oct 2019 11:07:20 +0100, Thibault Polge said: Thibault> Hello, Thibault> According to Org-Mode documentation[1], >> Lines starting with zero or more whitespace characters followed by one >> ‘#’ and a whitespace are treated as comments and, as such, are not

Discrepancy between documentation and implementation regarding comments

2019-10-27 Thread Thibault Polge
Hello, According to Org-Mode documentation[1], > Lines starting with zero or more whitespace characters followed by one > ‘#’ and a whitespace are treated as comments and, as such, are not > exported. The actual implementation differs on a subtle detail: Org-Mode will treat a line where the