From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Org unique id behavior changed?
Date: Fri, 03 Feb 2017 23:23:00 +0100 [thread overview]
Message-ID: <87h94aap8b.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CA+M2ft8BqeHktQ=QCmpP6AdvpXT_tBsLBUshAs_u52MTng8fBQ@mail.gmail.com> (John Hendy's message of "Thu, 2 Feb 2017 10:27:48 -0600")
Hello,
John Hendy <jw.hendy@gmail.com> writes:
> I just tried to recreate a unique id link from the mailing list and
> was surprised to find that =C-c l= did not create a unique id
> automatically.
>
> From the manual:[1]
>
> C-c l (org-store-link)
> ...
> If the headline has a CUSTOM_ID property, a link to this custom ID
> will be stored. In addition or alternatively (depending on the value
> of org-id-link-to-org-use-id), a globally unique ID property will be
> created and/or used to construct a link (jwh adding: if org-id is
> loaded).
>
>
>
> Here's my min config:
>
> #+begin_example
>
> (add-to-list 'load-path "~/.elisp/org/lisp/")
> (add-to-list 'load-path "~/.elisp/org/contrib/lisp")
>
> (require 'org-id)
> (global-set-key "\C-cl" 'org-store-link)
> (setq org-link-to-org-use-id 'create-if-interactive)
>
> #+end_example
>
>
>
> Starting emacs with =emacs -Q= and then =M-x load-file ~/path/to/min-config=
>
>
> File:
>
> #+begin_example
>
> * Alcohol^
>
> Something
>
> \newpage
>
> * Another heading
>
> Blah blah blah, see
>
> #+end_example
>
>
>
> With cursor at ^, I do =C-c l= and get this in the mini-buffer:
> =Stored: Alcohol=
>
> When trying to insert with =C-c C-l= I get this auto-completion suggestion:
>
> Alcohol <file:~/Desktop/test.org::*Alcohol>
>
> Normally that would have a unique-id, not file path/headline.
>
> Org mode version 9.0.2 (release_9.0.2-140-g1c8908 @
> /home/jwhendy/.elisp/org/lisp/)
>
> Is this on my end (settings) or did something change? Doing this
> definitely used to generate a unique id property drawer under the
> linked headline and suggest it when going to insert the link
> elsewhere.
FWIW, I cannot reproduce this issue.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2017-02-03 22:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-02 16:27 Org unique id behavior changed? John Hendy
2017-02-03 22:23 ` Nicolas Goaziou [this message]
2017-02-03 22:52 ` John Hendy
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=87h94aap8b.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=jw.hendy@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).