emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Scott Otterson <scotto@sharpleaf.org>
Cc: "Emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: where is org-at-target-p ?
Date: Sun, 15 Dec 2019 19:30:39 -0500	[thread overview]
Message-ID: <CAJ51ETraHVr+AwBDtgEkMpeh-hssUGeCKmpJ544dhaya97Ma7Q@mail.gmail.com> (raw)
In-Reply-To: <CAPY3P0SZ7SSYhFmj5QQRU3PdWwkqGR0TWOKKjyfi3DsfGrnhGA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1006 bytes --]

I have it in org-9.2.3 from org-plus-contrib-20190402, and it is
in org-plus-contrib-20191028 too. It is gone from org-plus-contrib-20191209.

It is pretty simple. Maybe you can just add it to your init file if you use
it.

(defun org-at-target-p ()
  (or (org-in-regexp org-radio-target-regexp)
      (org-in-regexp org-target-regexp)))


John

-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Sun, Dec 15, 2019 at 4:52 PM Scott Otterson <scotto@sharpleaf.org> wrote:

> For years, I've used the function, org-at-target-p to detect when the
> cursor is on a dedicated target.  Recently, org-at-target-p disappeared
> from elpa -- for example, it's not in the org.el included in
> org-plus-contrib-20191209.
>
> Was its removal intentional, and if so, is there a new function with
> equivalent behavior?
>
> Thanks,
>
> Scott
>

[-- Attachment #2: Type: text/html, Size: 1755 bytes --]

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-15 21:51 where is org-at-target-p ? Scott Otterson
2019-12-16  0:30 ` John Kitchin [this message]

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=CAJ51ETraHVr+AwBDtgEkMpeh-hssUGeCKmpJ544dhaya97Ma7Q@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --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).