From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Gustav_Wikstr=F6m?= Subject: Re: Link abbreviations, org-files with searches Date: Mon, 31 Oct 2011 14:55:27 +0100 Message-ID: References: <20111031140121.3a8d02de@kuru.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKsKs-0001B6-1X for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 09:55:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKsKm-000341-AK for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 09:55:34 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:36190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKsKm-00033p-6N for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 09:55:28 -0400 Received: by vws16 with SMTP id 16so440308vws.0 for ; Mon, 31 Oct 2011 06:55:27 -0700 (PDT) In-Reply-To: <20111031140121.3a8d02de@kuru.homelinux.net> 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: Suvayu Ali Cc: emacs-orgmode@gnu.org 2011/10/31 Suvayu Ali : ... >> I also know that I could add the "::%s" to the link, giving (4): >> >> #+LINK: foo =A0 =A0 file:/long/path/to/file/foo.org::%s >> >> but this makes it unusable as a simple file link without search. I >> intend to use the link in multiple places inside my document both >> with and without searches, thus I'm still wondering about this >> syntax-issue and the non-headline search. >> > > How is it unusable? Shouldn't the following work with the above setting? > > [[foo:][Description]] > [[foo:*][Description]] > > Of course I didn't have the time to test this variation, so indeed there > could be a bug. :-p 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: #+LINK: foo =A0 =A0 file:/long/path/to/file/foo.org:: [[foo][Description]] When trying to follow this link I get an error saying that there is "no such file: /long/path/to/file/foo.org::" /Gustav