Re: Strangely recognized non-lists and non-headers.

2020-02-02 Thread D
> You need to escape them with commas. Ah, I overlooked that because I did not check the manual whether leading stars are escaped automatically and just assumed it, sorry. Thanks a lot! Though, there is one minor thing I noticed: Leading stars are valid comment symbols in Fortran, as long as

Re: Strangely recognized non-lists and non-headers.

2020-02-02 Thread Nicolas Goaziou
D writes: > On 02.02.20 12:59, Nicolas Goaziou wrote: >> Long story short. Don't use this function, it is not correctly >> implemented at the moment. The correct way to check if you're in a list >> is something like: >> >> (org-element-lineage (org-element-at-point) '(plain-list) t) > > I

Re: Strangely recognized non-lists and non-headers.

2020-02-02 Thread D
Hi, On 02.02.20 12:59, Nicolas Goaziou wrote: > Long story short. Don't use this function, it is not correctly > implemented at the moment. The correct way to check if you're in a list > is something like: > > (org-element-lineage (org-element-at-point) '(plain-list) t) I tried that out, but

Re: Strangely recognized non-lists and non-headers.

2020-02-02 Thread Nicolas Goaziou
Hello, D writes: > I use org-list-in-valid-context-p as a quick hack to check if what I am > looking at is actually a list. Long story short. Don't use this function, it is not correctly implemented at the moment. The correct way to check if you're in a list is something like:

Strangely recognized non-lists and non-headers.

2020-02-02 Thread D
Hi all, while debugging org-superstar-mode I noticed something very strange, and I am not sure if it's a bug in org or a bug in my understanding of org. First off, an MWE for Org mode version 9.1.9 (release_9.1.9-65-g5e4542): #+BEGIN_SRC C /* * This is a header? + this + is * a