From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Q: setting/changing search path for links by id Date: Wed, 2 May 2018 12:53:46 -0700 Message-ID: References: <72a9ebdd-e793-c3fe-fa4a-303aef0035e6@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDxp1-00027i-N7 for emacs-orgmode@gnu.org; Wed, 02 May 2018 15:53:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDxp0-0001DA-Hi for emacs-orgmode@gnu.org; Wed, 02 May 2018 15:53:51 -0400 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:37192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDxp0-0001Be-8s for emacs-orgmode@gnu.org; Wed, 02 May 2018 15:53:50 -0400 Received: by mail-lf0-x232.google.com with SMTP id b23-v6so22630062lfg.4 for ; Wed, 02 May 2018 12:53:49 -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 there is org-id-extra-files. you will need to code around it to set it right. by default it is set to text search extra files, as a symbol. however, that symbol probably cannot be put in as a pseudo-file. i.e. part of a list with files. [it seems that perhaps 'agenda-archives /can/ be put in as a pseudo-file, but this is not seem to be documented in the docstring or the manual. and there is also a separate variable controlling whether agenda files are searched.] so it's slightly confusing. if you want the default, plus some files of your own, which is what most people want to do with the variable, i think you need to get the value of text search extra files, append or concatenate your own, remove duplicates, and set it. [*org feature suggestion*] perhaps org could do the remove duplicates step for the user, and maybe allow text search extra files as a pseudo-file, so that the user need only set the variable to a list. org already does a remove duplicates for the user for org-agenda-files. On 5/2/18, Julius Dittmar wrote: > Is there a way of adding a directory to this search path from inside an > org file? i'm not sure, but i don't think it searches directories either recursively or at top level. you will need to do that yourself in lisp using something like (directory-files (getenv "dorg") t regexp)). exercise caution if any files are compressed or you changed org or org archive extensions.