From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Otterson Subject: Re: Bug: xxx [9.3 (9.3-8-geab7c4-elpa @ c:/Users/Scott/.emacs.d/elpa/org-20191209/)] Date: Mon, 16 Dec 2019 08:45:20 -0800 Message-ID: References: <87y2vc9r5u.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000518d80599d4f2f8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38862) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igtVP-0001Ng-AH for emacs-orgmode@gnu.org; Mon, 16 Dec 2019 11:46:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igtVO-0001r1-0h for emacs-orgmode@gnu.org; Mon, 16 Dec 2019 11:45:59 -0500 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:34608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igtVN-0001me-I1 for emacs-orgmode@gnu.org; Mon, 16 Dec 2019 11:45:57 -0500 Received: by mail-ed1-x533.google.com with SMTP id l8so5620719edw.1 for ; Mon, 16 Dec 2019 08:45:57 -0800 (PST) In-Reply-To: <87y2vc9r5u.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Scott Otterson , "Emacs-orgmode@gnu.org" --0000000000000518d80599d4f2f8 Content-Type: text/plain; charset="UTF-8" Hi Nicolas, Thanks for the help. Scott On Mon, Dec 16, 2019 at 8:22 AM Nicolas Goaziou wrote: > Hello, > > Scott Otterson 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 > --0000000000000518d80599d4f2f8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

Thanks for the h= elp.

Scott

On Mon, Dec 16, 2019 at 8:22 A= M Nicolas Goaziou <mail@nicola= sgoaziou.fr> wrote:
Hello,

Scott Otterson <scotto@sharpleaf.org> writes:

> A function I wrote a few months ago is now failing because it's un= able
> 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:

=C2=A0 (memq (org-element-type (org-element-context)) '(target radio-ta= rget))

or

=C2=A0 (org-element-lineage (org-element-context) '(target radio-target= ) t)

Regards,

--
Nicolas Goaziou
--0000000000000518d80599d4f2f8--