From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id j8W0Et8xSmLdQAEAgWs5BA (envelope-from ) for ; Mon, 04 Apr 2022 01:46:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yPCwDt8xSmLrTQEA9RJhRA (envelope-from ) for ; Mon, 04 Apr 2022 01:46:39 +0200 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 A124A3D10F for ; Mon, 4 Apr 2022 01:46:37 +0200 (CEST) Received: from localhost ([::1]:36110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nb9vY-000665-6I for larch@yhetil.org; Sun, 03 Apr 2022 19:46:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb9uE-00065t-Bg for emacs-orgmode@gnu.org; Sun, 03 Apr 2022 19:45:14 -0400 Received: from [2a00:1450:4864:20::62f] (port=41968 helo=mail-ej1-x62f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nb9uB-0004nU-8e for emacs-orgmode@gnu.org; Sun, 03 Apr 2022 19:45:13 -0400 Received: by mail-ej1-x62f.google.com with SMTP id bh17so16567406ejb.8 for ; Sun, 03 Apr 2022 16:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; h=mime-version:from:date:message-id:subject:to; bh=GCk79pjK1q0/mx6uvOvJ7ItQfDGTu0EXffx/iCQhWaU=; b=AJ8bnE+HrO8zwuvyJbJT8ALf6I6mVHCeioJCrgXjer3uVmziL7SEokLCjP3Zki9rTF CMUymQDcU3+voFGp6yWwUw7etPkyuxpUeGSXHTPB8iZQM8wc0hlMHQALW1kv+xQooKH5 9+KXNAkCbQBbRxX1kgV4B4X5D2g4wCAVuygulkY3oyW9WFr85ZMhDp8WpVkeu99lM0T9 MKQckn9M82qUI8CqD8Jg9V+if4N6hHIyIYPqfmEG0mcVASO+EdwpWnuZPB6g/p+9sw3w PST3UyHev9xHRY+soYpAjrAryOJzMF2DrL9SvrtOpCm5OhpTv7fsb608I4WnSALJOf3d QhnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GCk79pjK1q0/mx6uvOvJ7ItQfDGTu0EXffx/iCQhWaU=; b=3c2r57xJakJidT1NOgxJsV4U0YA0S/zCE6BCGLfnkhwDe2kJGisvGLGkY+F/5vxVId ov+x9KLRz0m/a66ouPWWRFtB8Onp6EHJvX9/B4KkzMq7/akiWVfBss5oj1AR8L6Jy8xO cSubxcitUfqTWxdMy6fw0btopwqMaph9ixLAn+RY1mL6xyKr/FsKLztqgaO/xNLVakL4 3YTVC9c8SuXg3pqsXrGCvndepUtX6P4VBIt+4WfYjud/uawsLSYZmobEI9/eNgWWiJIJ qcVLx1x8uHYj25JMx+UdZeSEQbQn2TQB6ciIxAK+cC7zptAwaHx0i2k95yXGjNXuIdGv Gqiw== X-Gm-Message-State: AOAM531qseBxSvDpwdSXS9yaxkii1gJI27mDIDNkD6a9U9jcbKV4QE8l FFjk5s8A5MhmE+DjR6gnEoHn1b5skfaC4ptH/8uPGfyM7Cs= X-Google-Smtp-Source: ABdhPJxY64VgFpkcag7XNWagVz1l7ol+OpXqtgU8vXW+MneluBTCi5/rTy7Zi7wu02IErJs9Dp7vriZY03P4KSJpXNI= X-Received: by 2002:a17:907:8a1d:b0:6e7:edc9:f001 with SMTP id sc29-20020a1709078a1d00b006e7edc9f001mr2902872ejc.694.1649029505054; Sun, 03 Apr 2022 16:45:05 -0700 (PDT) MIME-Version: 1.0 From: John Kitchin Date: Sun, 3 Apr 2022 19:44:54 -0400 Message-ID: Subject: overlap between cite syntax and link activation To: org-mode-email Content-Type: multipart/alternative; boundary="000000000000df7c0505dbc89924" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::62f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=johnrkitchin@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649029599; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GCk79pjK1q0/mx6uvOvJ7ItQfDGTu0EXffx/iCQhWaU=; b=gO786TMQFJ34t6l5IDqSRPuNwyOdyEEbZKZOO3aekO48r/NxKNLfO1JYudQlaEuUYzzPHW GdUCoEMIod9c52fDXjW8pdOc6ffZ8Xwt89XvH6HnY0rIItcEDu4f/5snewGldfU6p+mkUn PMR2YLZZ1BuhYelMjMKrADzYDgREq4YvVpSLnhSBZmJ5zQDYmi8LHOtm/ao1ebtppsHHpw O41Myl5TH05YY2WiBbzUBXegdqzCdeP5wjSTd938bQsZVuPQcK2lw8dObswnF7RY87CpQ2 QfTXBFOYuE+Vf+tj2xjwNpqUHQUl3fYvn4nCOqARI7J/naKARs6/rX/T8TMD/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649029599; a=rsa-sha256; cv=none; b=fzIQPmg3x60JHDtcNSj3T+Vy8c7DWZ2hyt69spujIZDemBRZsYl//j2B1JR3BSJrDCMXCB 7070NQYJdPBUVY8oaJjXPbppjsityCumIyO4SEFoU9zRNULGtPjh6DeONyvFnx5LDxhPhK CJ+tcdF4i5cIMiqt6E8P45mVVx9PTsiX0SzZENmeY6/Wft1C1JlEnUk1uNHuekOLSQ/l7f q+mn6Rd4G5zWm93t1pFBn/lLn/p8w9QehYjDmDKBKCW7wfUxVfSoaqSPj+SBnOFuevzgv2 RDsvueY5wx1WXpETmBpm+nmgN4aVGA9CvSmIvXnHg42vyJRRqAYcqReYTnTNVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=AJ8bnE+H; dmarc=pass (policy=none) header.from=andrew.cmu.edu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.38 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=AJ8bnE+H; dmarc=pass (policy=none) header.from=andrew.cmu.edu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A124A3D10F X-Spam-Score: -9.38 X-Migadu-Scanner: scn0.migadu.com X-TUID: Nx/v3XzyPChi --000000000000df7c0505dbc89924 Content-Type: text/plain; charset="UTF-8" I think there is some overlap between the org-cite syntax and org-link activation. Consider this org-cite: [cite/noauthor/bare:@key] Now define this link: #+BEGIN_SRC emacs-lisp (org-link-set-parameters "bare" :help-echo "BARE LINK" :activate-func (lambda (start end path _bracketp) (message-box "%S activating bare" (list start end path)) (put-text-property start end 'face '(:foreground "OrangeRed1")))) #+END_SRC When I put my cursor on the org-cite line and press spc, I see a message box pop up, and the @key has a tooltip of "BARE LINK". I guess this means the activate-func is being used too aggressively. It looks like it is called after (re-search-forward org-link-any-re limit t). This does seem to match the cite syntax above. Does anyone else see this? John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --000000000000df7c0505dbc89924 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think there is some overlap between the org-cite syntax = and org-link activation.

Consider this org-cite:

[cite/noauthor/bare:@key]=C2=A0 =C2=A0

Now de= fine this link:

#+BEGIN_SRC emacs-lisp
(org-lin= k-set-parameters "bare"
:help-echo "BARE LINK" :activate-func (lambda (start end path _bracketp)
=C2=A0(mes= sage-box "%S activating bare" (list start end path))
=C2= =A0(put-text-property start
=C2=A0 =C2=A0 end
=C2=A0 = =C2=A0 'face '(:foreground "OrangeRed1"))))

#+END_= SRC

When I put my cursor on the org-cite line = and press spc, I see a message box pop up, and the=C2=A0@key has a tooltip = of "BARE LINK".

I guess this means the a= ctivate-func is being used too aggressively. It looks like it is called aft= er=C2=A0(re-search-forward org-link-any-re limit t). This does seem to matc= h the cite syntax above.

Does anyone else see this= ?

John

-----------------------------------
Professor John Kitchin= (he/him/his)
Doherty Hall A207F
Department of Chemical EngineeringCarnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
<= div dir=3D"ltr">@johnkitchin
http://kitchingroup.cheme.cmu.edu

--000000000000df7c0505dbc89924--