emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Alejandro Pérez Carballo" <apc@umass.edu>
To: Max Nikulin <manikulin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Inserting links stored in `org-store-link-plist`
Date: Fri, 25 Feb 2022 09:21:17 -0800	[thread overview]
Message-ID: <F66EF3C0-7A5B-4BC5-97BF-8D973ED65BD7@umass.edu> (raw)
In-Reply-To: <d80db840-2312-726c-2cba-865f1d008777@gmail.com>

Thanks for the suggestions! Will have a look. 

Best, 

A. 

> On Feb 25, 2022, at 8:25 AM, Max Nikulin <manikulin@gmail.com> wrote:
> 
> On 25/02/2022 04:11, Alejandro Pérez Carballo wrote:
>> Thanks for your reply. I can store the ID calling `org-store-link'
>> if `org-id-link-to-org-use-id' is set to a non-nil value. But I wanted to be able to have `org-id-link-to-org-use-id' set to nil and
>> also have a function to store an ID link. (I make use of ID only in
>> certain files and try to avoid them otherwise, preferring the default
>> method of using a link to the file with a search string pointing to
>> the current line in most cases.)
> 
> I have no idea what interface `org-store-link' should have to be really flexible and convenient.
> 
> Have you considered file- (or directory-) local variables?
> info "(emacs) Specifying File Variables"
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html
> 
> # Local Variables:
> # org-id-link-to-org-use-id: use-existing
> # End:
> 
> at the end of specific files.
> 
>> I had expected that `org-insert-link' would be able to retrieve links stored both with `org-store-link' and `org-id-store-link'—it
>> seemed like a natural assumption, perhaps because I do not know of
>> other reasons for having an interactive function that stores links
>> aside from being able to insert them later?
> I can not say that I am happy with implementation of `org-store-link' or that I fully understand ideas behind ol.el. I just found an example of `org-id-store-link' usage:
> https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/org-contacts.el#L1171
> see definition of "org-contact" link a bit above as well.



      reply	other threads:[~2022-02-25 18:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-17 23:26 Inserting links stored in `org-store-link-plist` Alejandro Pérez Carballo
2022-02-23 15:50 ` 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 [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=F66EF3C0-7A5B-4BC5-97BF-8D973ED65BD7@umass.edu \
    --to=apc@umass.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=manikulin@gmail.com \
    /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).