From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: where is org-at-target-p ? Date: Sun, 15 Dec 2019 19:30:39 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e6cdc90599c75276" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33316) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igeHn-0001fX-A1 for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 19:30:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igeHm-00014H-37 for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 19:30:55 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:40304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igeHl-00010j-LL for emacs-orgmode@gnu.org; Sun, 15 Dec 2019 19:30:54 -0500 Received: by mail-wr1-x42b.google.com with SMTP id c14so5187715wrn.7 for ; Sun, 15 Dec 2019 16:30:53 -0800 (PST) In-Reply-To: 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 Cc: "Emacs-orgmode@gnu.org" --000000000000e6cdc90599c75276 Content-Type: text/plain; charset="UTF-8" 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 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 > --000000000000e6cdc90599c75276 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have it in org-9.2.3 from org-plus-contrib-20190402, and= it is in=C2=A0org-plus-contrib-20191028 too. It is gone from=C2=A0org-plus= -contrib-20191209.

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

(defun or= g-at-target-p ()
=C2=A0 (or (org-in-regexp org-radio-target-regexp)
= =C2=A0 =C2=A0 =C2=A0 (org-in-regexp org-target-regexp)))

=

John<= br>
-----------------------------------
Professor John Kitchin=C2=A0<= br>Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mel= lon University
Pittsburgh, PA 15213
412-268-7803


On Sun, Dec 15, 2019 at 4:52 PM Scott Otterso= n <scotto@sharpleaf.org> = wrote:
For years, I've used the function, org-at-target-p to det= ect when the cursor is on a dedicated target.=C2=A0 Recently, org-at-target= -p disappeared from elpa -- for example, it's not in the org.el include= d in org-plus-contrib-20191209.

Was its removal in= tentional, and if so, is there a new function with equivalent behavior?

Thanks,

Scott
--000000000000e6cdc90599c75276--