From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Search links in a list of files Date: Mon, 12 Dec 2011 19:59:30 -0500 Message-ID: <87d3btl219.fsf@norang.ca> References: <871us9pnw6.fsf@hati.baby-gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaGiY-0000zy-Gw for emacs-orgmode@gnu.org; Mon, 12 Dec 2011 19:59:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaGiX-0002YY-MH for emacs-orgmode@gnu.org; Mon, 12 Dec 2011 19:59:38 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:14053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaGiX-0002YU-J4 for emacs-orgmode@gnu.org; Mon, 12 Dec 2011 19:59:37 -0500 In-Reply-To: <871us9pnw6.fsf@hati.baby-gnu.org> (Daniel Dehennin's message of "Mon, 12 Dec 2011 20:53:45 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Dehennin Cc: emacs-orgmode@gnu.org Daniel Dehennin writes: > As I want to write some documentation with org-mode, I'm looking for a > way to manage an list of files in which org-mode will look for links, or > better, a list or directory to scan. > > For example: > > - in file1.org, I link something like > [[file:file2.org::#some-point][some point in some file]] > > - in file2.org I have a property "CUSTOM_ID: some-point" somewhere. > > If I reorganize my documentation and move file2.org in some > subdirectory, like examples/file2.org, I would like to avoid changing > all the references to "file2::#some-point". > > Maybe a link like [[search:PATH::SOMETHING]], with SOMETHING like in > search-options[1]. > > We could define a per-org file PATH, with something like > "#+LINK_SEARCH_PATH: path1, path2, ..." > > Any idea about this issue? Use global id's - then if you move headings around the links still work. See org-id.el for more info Regards, Bernt