[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What might ‘org-element-at-point’ be doing in *scratch*?
|
From: |
Ihor Radchenko |
|
Subject: |
Re: What might ‘org-element-at-point’ be doing in *scratch*? |
|
Date: |
Wed, 05 Jun 2024 14:40:52 +0000 |
Bob Newell <bobnewell@bobnewell.net> writes:
> ... It does however leave open the
> question about whether there are or are not legitimate cases
> for org-element-at-point in buffers which are not org buffers
> but present summary or custom views of org material like the
> agenda.
Yes, calling `org-element-at-point' in non-Org buffers is most likely a
mistake - `org-element-at-point' either returns nil, a garbage, or errs
in non-Org buffers.
--
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>