From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Agenda buffer and relative links Date: Thu, 05 Jan 2012 23:43:40 -0500 Message-ID: <8067.1325825020@alphaville.dokosmarshall.org> References: <87zke1ebyj.fsf@iro.umontreal.ca> Reply-To: nicholas.dokos@hp.com 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]:60809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj3bP-0004QW-Pd for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 01:48:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rj3bO-0000vj-AJ for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 01:48:35 -0500 Received: from g4t0014.houston.hp.com ([15.201.24.17]:23552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj3bO-0000vf-2Q for emacs-orgmode@gnu.org; Fri, 06 Jan 2012 01:48:34 -0500 In-Reply-To: Message from pinard@iro.umontreal.ca (=?us-ascii?Q?=3D=3Futf-?= =?us-ascii?Q?8=3FQ=3FFran=3DC3=3DA7ois=3F=3D?= Pinard) of "Thu\, 05 Jan 2012 22\:39\:32 EST." <87zke1ebyj.fsf@iro.umontreal.ca> 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: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FFran=3DC3=3DA7?= =?us-ascii?Q?ois=3F=3D?= Pinard Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Fran=C3=A7ois Pinard wrote: > Hi again, Org people. >=20 > When Org mode defines a link for me, it sometimes changes it so it > becomes relative. If within the file ~/fp/notes/notes.org, I wanted to > create the link: >=20 > [[file:~/fp/notes/VCS/GitHub.org][GitHub]] >=20 > Org mode really creates: >=20 > [[file:VCS/GitHub.org][GitHub]] >=20 > I presume this is because of the location of "notes.org" rather than > because of the value of org-directory, which happens to be "~/fp/notes". > This is OK in general, but not always. >=20 > For example, doing "C-a a a" today, I get this line among others > (squeezed so it fits in this message): >=20 > notes: Scheduled: TODO *[[file:Informatique/Entretien.org][Entretien]] >=20 > and clicking on the displayed "Entretien" link yields a white window. >=20 > The problem is that the *Org Agenda* buffer is associated with the "~/" > directory, and the relativized name is then wrong. >=20 > Because all my agenda-files happen to be directly within org-directory, > a sufficient counter-measure is to have this line in my ~/.emacs file: >=20 > (add-hook 'org-agenda-mode-hook (lambda () (cd org-directory))) >=20 > While it solves my problem, I have feeling that there is something > deeper which might likely affect many Org mode users, and for which I > have no general solution to offer. In the worst scenario, the solution > might be to never relativize links, but maybe someone would have a > better idea about this. In any case, I decided to report it. >=20 > Fran=C3=A7ois >=20 >=20 Check (info "(org) Handling links") in the manual, particularly the doc for C-u C-c C-l. Nick