From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Q: setting/changing search path for links by id Date: Wed, 02 May 2018 06:58:51 -0700 Message-ID: References: <72a9ebdd-e793-c3fe-fa4a-303aef0035e6@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDsHa-0005Ge-4a for emacs-orgmode@gnu.org; Wed, 02 May 2018 09:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDsHZ-0004Lh-2L for emacs-orgmode@gnu.org; Wed, 02 May 2018 09:58:58 -0400 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:44877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDsHY-0004LF-Rq for emacs-orgmode@gnu.org; Wed, 02 May 2018 09:58:56 -0400 Received: by mail-pf0-x22b.google.com with SMTP id q22so11868082pff.11 for ; Wed, 02 May 2018 06:58:56 -0700 (PDT) In-reply-to: <72a9ebdd-e793-c3fe-fa4a-303aef0035e6@gmx.de> 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: Julius Dittmar Cc: Org Mode I think you are looking for the variable org-id-locations-file. This file contains entries like ("~/vc/journal/2018/03/29/2018-03-29.org" "A6509542-9C85-46ED-BFE3-715CE44BAA70") and is used to create a hash table that provides a way to search for Ids. You can see it still holds information to a file name, so if these change, then at some point the location file will be out of date and need to be updated. I think the function org-id-find is used to search for ids. You can add files with the function org-id-update-id-locations. I hope that helps. Julius Dittmar writes: > Hi, > > I'd like to use links for cross referencing. As filenames are very prone > to change in my system, I'd like to use IDs for those links. > > What I could not fathom yet is how the search path for those IDs is created. > > Is there a way of (session-globally) setting that search path, in a > specialized init file for example? > > Is there a way of adding a directory to this search path from inside an > org file? > > Thanks for any hints, > > Julius -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu