emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Adam Sneller <adam@earth2adam.com>,
	John Kitchin <jkitchin@andrew.cmu.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Auto-activate new <<<radio targets>>>
Date: Tue, 09 Feb 2021 00:06:18 -0500	[thread overview]
Message-ID: <87sg65u8xh.fsf@kyleam.com> (raw)
In-Reply-To: <57A50164-0D47-45A3-B92A-305E8EF9B81A@earth2adam.com>

Adam Sneller writes:

> Thanks John! It looks like there is also an org-activate-target-links
> which may narrow the field a bit. Here is what I have so far:
>
> (defadvice org-activate-target-links (after ad-update-target-links ())
>   "Activate radio target links as soon as a new target is created."
>   (lambda ()
>     (interactive)
>     (when (and (org-in-regexp org-target-regexp)
> 	       (not (org-in-regexp org-target-regexp nil t)))
>       (org-update-radio-target-regexp))))
> (ad-activate 'org-activate-target-links)
>
> Unfortunately, this is not working for me...
>
> Any ideas?

org-activate-target-links _depends_ on org-update-radio-target-regexp
being called to update org-target-link-regexp, so I don't think it's a
candidate for a place to hook into if you want
org-update-radio-target-regexp to be triggered on typing <<<target>>>.


      reply	other threads:[~2021-02-09  5:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-06 22:36 Adam Sneller
2021-02-08  1:47 ` Kyle Meyer
2021-02-08 13:44   ` John Kitchin
2021-02-08 17:43     ` Adam Sneller
2021-02-09  5:06       ` Kyle Meyer [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=87sg65u8xh.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=adam@earth2adam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    --subject='Re: Auto-activate new <<<radio targets>>>' \
    /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

Code repositories for project(s) associated with this 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).