emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* where is org-at-target-p ?
@ 2019-12-15 21:51 Scott Otterson
  2019-12-16  0:30 ` John Kitchin
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Otterson @ 2019-12-15 21:51 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org

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

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: 455 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: where is org-at-target-p ?
  2019-12-15 21:51 where is org-at-target-p ? Scott Otterson
@ 2019-12-16  0:30 ` John Kitchin
  0 siblings, 0 replies; 2+ messages in thread
From: John Kitchin @ 2019-12-16  0:30 UTC (permalink / raw)
  To: Scott Otterson; +Cc: Emacs-orgmode@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-16  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-15 21:51 where is org-at-target-p ? Scott Otterson
2019-12-16  0:30 ` John Kitchin

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).