[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: xxx [9.3 (9.3-8-geab7c4-elpa @ c:/Users/Scott/.emacs.d/elpa/org
From: |
Nicolas Goaziou |
Subject: |
Re: Bug: xxx [9.3 (9.3-8-geab7c4-elpa @ c:/Users/Scott/.emacs.d/elpa/org-20191209/)] |
Date: |
Mon, 16 Dec 2019 17:22:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
Scott Otterson <address@hidden> writes:
> A function I wrote a few months ago is now failing because it's unable
> to find the org function "org-at-target-p". I think this was
> originally in org.el but I can't find it there now.
It was removed because its implementation was buggy and not necessary.
> If this function was removed intentionally could someone suggest a new
> function that can do the same thing? org-at-target-p used to return
> true if the cursor is on a dedicated target.
You can use Org parser:
(memq (org-element-type (org-element-context)) '(target radio-target))
or
(org-element-lineage (org-element-context) '(target radio-target) t)
Regards,
--
Nicolas Goaziou