emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Scott Otterson <scotto@sharpleaf.org>
Cc: "Emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <87y2vc9r5u.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAPY3P0Rqk8OcUgYt_3zqNsaHHD0mEmU-HU5C+jgfUTB5vsv57w@mail.gmail.com> (Scott Otterson's message of "Wed, 11 Dec 2019 13:16:44 -0800")

Hello,

Scott Otterson <scotto@sharpleaf.org> 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

  reply	other threads:[~2019-12-16 16:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-11 21:16 Bug: xxx [9.3 (9.3-8-geab7c4-elpa @ c:/Users/Scott/.emacs.d/elpa/org-20191209/)] Scott Otterson
2019-12-16 16:22 ` Nicolas Goaziou [this message]
2019-12-16 16:45   ` Scott Otterson
2019-12-16 16:44 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y2vc9r5u.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=scotto@sharpleaf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).