emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Alejandro Pérez Carballo" <apc@umass.edu>
To: emacs-orgmode@gnu.org
Subject: Inserting links stored in `org-store-link-plist`
Date: Thu, 17 Feb 2022 15:26:14 -0800	[thread overview]
Message-ID: <F37713CD-C5F6-4F87-8A65-6A6A772C5ACC@umass.edu> (raw)

Hello, 

After storing a link to an ID using `org-id-store-link` I would've expected the stored link to be made available when calling `org-insert-link`, much like when storing a link using `org-store-link. But that's not what I see: the link stored with `org-id-store-link` is added to `org-store-link-plist` but not to `org-stored-links`. 

To my surprise (and this may not be related, but in case it is), the value of `org-store-link-plist` is set to `nil` if I call `org-store-link`. Somehow calling `org-store-link` results in both the value of the stored link being sent to `org-stored-links` *and* in the value of `org-store-link-plist`, but calling `org-id-store-link` results in the stored link being sent to `org-store-link-plist` without touching the value of `org-stored-links`. 

I'm assuming this is not the expected behavior, but if it is, I'd appreciate any suggestions for how to use the values of `org-store-link-plist` when calling `org-insert-link`. 

I'm seeing this both with 9.5.2 and 9.5.1.

Thanks in advance for any help, 

APC

             reply	other threads:[~2022-02-17 23:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-17 23:26 Alejandro Pérez Carballo [this message]
2022-02-23 15:50 ` Inserting links stored in `org-store-link-plist` Max Nikulin
2022-02-24 21:11   ` Alejandro Pérez Carballo
2022-02-25 16:25     ` Max Nikulin
2022-02-25 17:21       ` Alejandro Pérez Carballo

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=F37713CD-C5F6-4F87-8A65-6A6A772C5ACC@umass.edu \
    --to=apc@umass.edu \
    --cc=emacs-orgmode@gnu.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).