From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Link abbreviations, org-files with searches Date: Mon, 31 Oct 2011 15:09:16 +0100 Message-ID: <20111031150916.6c385c44@kuru.homelinux.net> References: <20111031140121.3a8d02de@kuru.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKsYF-0006vP-VL for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 10:09:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKsYE-0006QP-50 for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 10:09:23 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:63440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKsYE-0006QL-0W for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 10:09:22 -0400 Received: by faat2 with SMTP id t2so3799685faa.0 for ; Mon, 31 Oct 2011 07:09:21 -0700 (PDT) In-Reply-To: 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: Gustav =?UTF-8?B?V2lrc3Ryw7Zt?= Cc: emacs-orgmode@gnu.org Hi Gustav, On Mon, 31 Oct 2011 14:55:27 +0100 Gustav Wikstr=C3=B6m wrote: > This works when adding "::" to the end of the link. But with this > setting I cannot use the link as a simple file-link, eg. the following > does not work: >=20 > #+LINK: foo =C2=A0 =C2=A0 file:/long/path/to/file/foo.org:: > [[foo][Description]] >=20 > When trying to follow this link I get an error saying that there is > "no such file: /long/path/to/file/foo.org::" Of course that won't work! The resulting link is not a valid link syntax. Since you don't specify a tag, the final link looks like this: [[file:/path/to/file.org::]] which is incorrect. =46rom a test the following worked nicely. #+LINK: odir2 file:~/org/coding.org [[odir2][link to file]] So in conclusion, if you want to use both bare file/directory links as well as headline/search links, you would have to define two separate link shortcuts. Hope that helps. --=20 Suvayu Open source is the future. It sets us free.