From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org unique id behavior changed? Date: Fri, 03 Feb 2017 23:23:00 +0100 Message-ID: <87h94aap8b.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZmG0-0000ru-AC for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 17:23:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZmFz-0006o3-Dl for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 17:23:04 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:58285) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cZmFz-0006nX-86 for emacs-orgmode@gnu.org; Fri, 03 Feb 2017 17:23:03 -0500 In-Reply-To: (John Hendy's message of "Thu, 2 Feb 2017 10:27:48 -0600") 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: John Hendy Cc: emacs-orgmode Hello, John Hendy 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 > > 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