From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yEkEF82XIWCMQgAA0tVLHw (envelope-from ) for ; Mon, 08 Feb 2021 19:58:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mDfNEs2XIWCwbQAAB5/wlQ (envelope-from ) for ; Mon, 08 Feb 2021 19:58:05 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 351449403AA for ; Mon, 8 Feb 2021 19:58:05 +0000 (UTC) Received: from localhost ([::1]:43016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Cfb-0002fe-Ql for larch@yhetil.org; Mon, 08 Feb 2021 14:58:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l96q7-0003uW-8f for emacs-orgmode@gnu.org; Mon, 08 Feb 2021 08:44:37 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:51684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l96q2-0006VQ-6k for emacs-orgmode@gnu.org; Mon, 08 Feb 2021 08:44:28 -0500 Received: by mail-wm1-x335.google.com with SMTP id t142so10493062wmt.1 for ; Mon, 08 Feb 2021 05:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nDqEyNLcsKntmWdTPpDY7JJsD02tRJS1Y2Du8i3nFXs=; b=euYyRyWyBDQNuCNLB2vCH9CoNCtA+hV6+E9TYUe7Wwys4WqEfoerim7yK7Ej7sGIBI Yjw4nw12k+S8MADNQifuY5dCNakZ7PDhXELlKJN98npvGfqD2THUntca1+W0026/3C0H 9wIfaB6Lsf8NiTnLhursTv6VwJ3y6cKQorVFHZzXz5599BN9fe5C1Fmha0W9yRfUkp86 MSmXcNh5IimKm2BSVjrbXB0fz6LRa3IORlexLJ1zbTGpjZi5McDfPAuN6oMWQDiQdNc6 +zNGk6ha9UVHDcX7JccLvJm30TwnWdRkG03gF4RaQ8OxbuGV+l1UR3LK2ITCRoVP8suB IBzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nDqEyNLcsKntmWdTPpDY7JJsD02tRJS1Y2Du8i3nFXs=; b=jkFzynbIA+RnAMlkrYSvgX5iU+SAJ3PSO19sRlB1Qbj5gzbkVGkTqCKMd3cFXwruHm 7C+0ZQsaJ5oXuzx9671CbDr6pKBkEESP6rq8FwgAX93qDMoC54YQi1f8wuyZXTF5mT7S KPa2ZMjCKK8Mom4Oh5PNnJv8hVWVHpcY96bxan8Mc1rn7JpFXfF5fwaaP7tNpfnFVVjF 9HmTcl4SwaljfZg3uJDCLcWw2wfG4WGE+WFcdAbSEuIK+i9nFmUk/GD0DwKxLkRnE0CZ hmk4Fp6ZGpdeY3sSZQ66oF4p/cvxpc4RHK4pqnvVJ7FS/WUtux6imSVn6TF83QTQFXOw mcYQ== X-Gm-Message-State: AOAM533lzSsIq34sAdU3/Mw96hRDmT5q8OqkgdCXudM+HEQRuRgxoy1f gaUGJ3sy5qI92dGniBJoVWmImXms5+fLCirc8GuMi3LDGH4= X-Google-Smtp-Source: ABdhPJyZGT1bb5M4z/v3wBncaBSfLs8kMrm5/ieaY5VMmvKST/xGka1isM7s4HoiuFb11snDx1aY6YCkuIXGAZcJd0E= X-Received: by 2002:a7b:ca57:: with SMTP id m23mr14840615wml.116.1612791857078; Mon, 08 Feb 2021 05:44:17 -0800 (PST) MIME-Version: 1.0 References: <86311E4A-E38F-4173-A662-922F82B7FCEB@ms2.digital> <87o8gvxrdg.fsf@kyleam.com> In-Reply-To: <87o8gvxrdg.fsf@kyleam.com> From: John Kitchin Date: Mon, 8 Feb 2021 08:44:06 -0500 Message-ID: Subject: Re: Auto-activate new <<>> To: Kyle Meyer Content-Type: multipart/alternative; boundary="000000000000bcf2b305bad35d4c" Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Sneller , "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: 351449403AA X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: RY3sM9M/oMwX --000000000000bcf2b305bad35d4c Content-Type: text/plain; charset="UTF-8" I guess the place to do it is with an advice on org-activate-links. Maybe a simple after advice would do. 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, Feb 7, 2021 at 8:48 PM Kyle Meyer wrote: > Adam Sneller writes: > > > I want to call org-update-radio-target-regexp as soon as org-mode > > recognises a new <<>> has been created (which seems to > > happen as soon as the third ">" is typed). > > > > What hook can I use to get this done? > > I'm not spotting any hook that could be used for this. The <<>> > fontification happens through a simple 'regular expression => face' > mapping in org-font-lock-keywords. > > You're probably aware of this and it's just not as automatic as you'd > like, but just in case: pressing `C-c C-c' with point on <<> > will call org-update-radio-target-regexp. > > --000000000000bcf2b305bad35d4c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I guess the place to do it is with an advice on org-activa= te-links. Maybe a simple after advice would do.

=
John

---------------------= --------------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Dep= artment of Chemical Engineering
Carnegie Mellon University
Pittsburgh= , PA 15213
412-268-7803


<= div class=3D"gmail_quote">
On Sun, Feb= 7, 2021 at 8:48 PM Kyle Meyer <kyle@= kyleam.com> wrote:
Adam Sneller writes:

> I want to call org-update-radio-target-regexp as soon as org-mode
> recognises a new <<<radio target>>> has been created= (which seems to
> happen as soon as the third ">" is typed).
>
> What hook can I use to get this done?

I'm not spotting any hook that could be used for this.=C2=A0 The <&l= t;<target>>>
fontification happens through a simple 'regular expression =3D> face= '
mapping in org-font-lock-keywords.

You're probably aware of this and it's just not as automatic as you= 'd
like, but just in case: pressing `C-c C-c' with point on <<<ta= rget>>
will call org-update-radio-target-regexp.

--000000000000bcf2b305bad35d4c--