[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strangely recognized non-lists and non-headers.
From: |
Nicolas Goaziou |
Subject: |
Re: Strangely recognized non-lists and non-headers. |
Date: |
Sun, 02 Feb 2020 15:13:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
D <address@hidden> 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 tried that out, but it still seems to recognize source code as
> headlines, replacing the predicate does not change the behavior.
Of course. You cannot have headlines within a source block. You need to
escape them with commas. I'm just pointing out that the code above is
the right way to check if you're in a list.