From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Org unique id behavior changed? Date: Fri, 3 Feb 2017 16:52:59 -0600 Message-ID: References: <87h94aap8b.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZmj0-00082W-6S for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 17:53:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZmiz-0000wu-3E for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 17:53:02 -0500 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]:35584) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZmiy-0000wc-U7 for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 17:53:01 -0500 Received: by mail-io0-x234.google.com with SMTP id j18so28822264ioe.2 for ; Fri, 03 Feb 2017 14:53:00 -0800 (PST) In-Reply-To: <87h94aap8b.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode On Fri, Feb 3, 2017 at 4:23 PM, Nicolas Goaziou wr= ote: > Hello, > > John Hendy writes: > >> I just tried to recreate a unique id link from the mailing list and >> was surprised to find that =3DC-c l=3D 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 =3Demacs -Q=3D and then =3DM-x load-file ~/path/to/m= in-config=3D >> >> >> File: >> >> #+begin_example >> >> * Alcohol^ >> >> Something >> >> \newpage >> >> * Another heading >> >> Blah blah blah, see >> >> #+end_example >> >> >> >> With cursor at ^, I do =3DC-c l=3D and get this in the mini-buffer: >> =3DStored: Alcohol=3D >> >> When trying to insert with =3DC-c C-l=3D I get this auto-completion sugg= estion: >> >> 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. Wow. I just wrote a response re-replicating my behavior and then went to check the value of the variable to be sure! org-id-link-to-org-use-id is a variable defined in =E2=80=98org-id.el=E2=80= =99. Its value is nil That's interesting. So what did I set in my config?? (setq org-link-to-org-use-id 'create-if-interactive) I changed to the correct variable name and all is well. Sorry for the noise; it appears this is a super old variant of the variable based on references I find on the web: - http://git.net/ml/emacs-orgmode-gnu/2012-04/msg01203.html - http://orgmode.org/w/?p=3Dorg-mode.git;a=3Dcommitdiff_plain;h=3D4b4328e29= b2c286505c7f0be0e54a37a8d1fbc75 I must not have caught a change at some point but I *swear* it was working within the last year. John > > Regards, > > -- > Nicolas Goaziou