From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MeQjMk3sgmGeSQEAgWs5BA (envelope-from ) for ; Wed, 03 Nov 2021 21:08:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ALAiLU3sgmGfQAAA1q6Kng (envelope-from ) for ; Wed, 03 Nov 2021 20:08:45 +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 A21E42A0C7 for ; Wed, 3 Nov 2021 21:08:44 +0100 (CET) Received: from localhost ([::1]:41156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miMYt-0002ic-Od for larch@yhetil.org; Wed, 03 Nov 2021 16:08:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miMXj-0002gq-EH for emacs-orgmode@gnu.org; Wed, 03 Nov 2021 16:07:31 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:41849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miMXh-0001Yt-2v for emacs-orgmode@gnu.org; Wed, 03 Nov 2021 16:07:31 -0400 Received: by mail-wr1-x42d.google.com with SMTP id d3so5299881wrh.8 for ; Wed, 03 Nov 2021 13:07:28 -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=w4bk5+2kRtn/+EjcDFiLnUkL8R10lysZ1BUS/eZ3ZWI=; b=PujcMtMBOuVrSHeEmoLFUNGoLgFwjxlbpO/G6HM1hAFnpdqecIhV9jJjCqNQ6dVTiC Xl3TGZ4xBGvvd2ZQCBklD/d89uCS7YmfJvb0Y/aV0i0rxnjJLfgxa8oXBrW8asUFihBE Wn8bypbJJc4EcxoW/9Qc51ZzS4STZ3lz2pkGWWfoWDmi/Uj361EqXY50b7udSvUIiILs Pif0pVqrLOrhisMCBklrbk0gC9GrEJfpd+CZpEVOT2MXqS8eSwS3HN6csSKfhbzrEWWT 9Zn4v8BZSZTG6MqRWW3iFRBHidSuSiuuLZMzK2juo7mzP9rwVFVk0g9poo1hvwWiMAvK 5Cew== 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=w4bk5+2kRtn/+EjcDFiLnUkL8R10lysZ1BUS/eZ3ZWI=; b=gQWcrA2ufEO/ek6Cf3yo2l7N1D8ctp4EeO7n0VnFJc7kSY3wf2hsbdkdM56bQIfWAu 5yRXBmqMNV/9Sgh1olZUE++UUshap8tp1n+8urLEQixhW4hBfCSzEU8gmeIYE3xn/DMP jf1xrLGUXt5BzgGB8gYBIBw32wa+Af2gZWWgQa4LL9JEcUjRWMB/OMg5s1rPhZSNwimF Du874CL8o4bXDr886VnH0Rwg2wOXcqreHNlyc3AS1uEYGthzjTFw98y46WgYimAXUEhA kCyEuPzz5KWHcsMtwyCWBb1UceLZgXueVMXtMDFx6Evd45taKEZgvfep9g9AAp+dznOJ B1rg== X-Gm-Message-State: AOAM532GkMmF9wAUKnHKhiswbJRm6nD0leOq+vdFzFFKYjLIYRrFEOcW DSZRGZNbaXLwI9+Xto8pS17YhSkHKEGc69jnHKKmOZcouhWUNA== X-Google-Smtp-Source: ABdhPJyJEwPYpA2Od4GCkQPzK/eZsavQw7nuKQkWYiyg21plnqtwzPTpE3R8sjwEL+tfJBg8h6nS4rhq1FrvHXDYD/8= X-Received: by 2002:adf:d0d0:: with SMTP id z16mr26281238wrh.293.1635970046006; Wed, 03 Nov 2021 13:07:26 -0700 (PDT) MIME-Version: 1.0 From: John Kitchin Date: Wed, 3 Nov 2021 16:07:15 -0400 Message-ID: Subject: org-store-link question To: org-mode-email Content-Type: multipart/alternative; boundary="00000000000074996405cfe7f536" Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 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, 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.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635970125; 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=w4bk5+2kRtn/+EjcDFiLnUkL8R10lysZ1BUS/eZ3ZWI=; b=XlqDl6QvppCBtbhI+ynKl/EedqgMadstaeY0zhlhNRuKUOANSDDT8XYlzm99ksY7yvt6Kr H/WaluIfFYCzR796ftFMRNltaLTjP7xfaST/BSIkT1HfstFfxDbAf9We6MQvY7tioz0uL2 vK/eUGxmKJ+HzleyFW80mzk72e+IL6sdJGXHy0jE3sO7OmSJv3YE8+LA0kdR9BNCP/4mz9 o0rUVVnNOVSLGh3U+ixvA1ffO6/33cKyA3hAulmimm4JYkWn/rHk7HbcUoMeRQ20C/7zXe zHupCLH318bO3Wr0x9bFAHW5DFPI34bwbUsCsuQnCZRBrD+8JA3D5f1tQw7meg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635970125; a=rsa-sha256; cv=none; b=In6dNMF2FDDOw/NRL66nc29vvwsbbtu/eI9zJpRGArIU8mfF5m/FPkEQOrMwcLecu8Nvo+ Xo6XI3OAF8QtVKG5KYvZRqN7kSdFbGXPxFeQ6kTT04uPPJyvG1SJbK3MF5F5Gh1VxagBCp b0m681hi+HLnBRZTOIJJwF+u3Cx7CbF0YmS8dwwvzKcuMImbHeCK826Fj+ou6W7jQdhAdq AQ4pIbV1m9SpJxpcLbHApYCCT49Pfm75ViLHRZ03UihCHaRoUac3606ggUk2RbeZg5kHrc GdleeyrVf+SAfvTXm8T09sP89PmbGAa540oEhInFXHng8cao4/aob9Xmi1qCnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=PujcMtMB; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=PujcMtMB; dmarc=pass (policy=none) header.from=andrew.cmu.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A21E42A0C7 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: AkJw3nvUdoVc --00000000000074996405cfe7f536 Content-Type: text/plain; charset="UTF-8" In a basically vanilla emacs, if I have a target like <> with my point on it, and I run org-store-link (via C-c l), and then somewhere else do org-isnert-link (via C-c C-l) I get a link like [[file:~/s/f.org::test]] If I define a link now like this: #+BEGIN_SRC emacs-lisp (org-link-set-parameters "jump" :store (lambda () (org-link-store-props :type "jump" :link (format "jump:%s::%s" (buffer-file-name) (line-number-at-pos))))) #+END_SRC and do that again, all I can insert with C-c C-l is something like: [[jump:~/s/f.org::9]] and the file link is not an option anymore. Should the file link still be there? 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 --00000000000074996405cfe7f536 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In a basically vanilla emacs, if I have a target like <= <test>> with my point on it, and I run org-store-link (via C-c l),= and then somewhere else do org-isnert-link (via C-c C-l) I get a link like= =C2=A0

[[file:~/s/f.org::test]]

If I define a link now like this:

#+BEGIN_SRC ema= cs-lisp
(org-link-set-parameters "jump"
:store (lambda = ()
=C2=A0(org-link-store-props
=C2=A0 :type "jump"= ;
=C2=A0 :link (format "jump:%s::%s"
(buffer-fi= le-name)
(line-number-at-pos)))))
#+END_SRC
and do that again, all I can insert with C-c C-l is something l= ike:

[[jump:~/s/f.org::9]]

and the file link is not an option anymore. Should the file link stil= l be there?

Jo= hn

-----------------------------------
Professor John Kitchin (he= /him/his)
Doherty Hall A207F
Department of Chemical Engineering
Ca= rnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
<= /div>
--00000000000074996405cfe7f536--