[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug] org-in-src-block-p returns t when not in source block
From: |
Ihor Radchenko |
Subject: |
Re: [Bug] org-in-src-block-p returns t when not in source block |
Date: |
Mon, 27 Nov 2023 15:55:49 +0000 |
No Wayman <iarchivedmywholelife@gmail.com> writes:
> When on an empty line before a source block, org-in-src-block-p
> correctly returns nil.
> However, when on an empty line after a source block, it returns t.
> This is reproducible on my end with both the built-in version of
> Org and 9.7-pre.
This is not a bug - Org considers blank lines after element as a part of
it. This includes source blocks.
If you want to check if point is inside source block code, use INSIDE
argument.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>