From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: Agenda buffer and relative links Date: Thu, 05 Jan 2012 22:39:32 -0500 Message-ID: <87zke1ebyj.fsf@iro.umontreal.ca> 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]:52427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj0eU-0005XK-Og for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 22:39:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rj0eT-0005O8-Nf for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 22:39:34 -0500 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:63064 helo=mercure.epsilon-ti.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj0eT-0005Nq-Fm for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 22:39:33 -0500 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: emacs-orgmode@gnu.org Hi again, Org people. 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: [[file:~/fp/notes/VCS/GitHub.org][GitHub]] Org mode really creates: [[file:VCS/GitHub.org][GitHub]] 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. For example, doing "C-a a a" today, I get this line among others (squeezed so it fits in this message): notes: Scheduled: TODO *[[file:Informatique/Entretien.org][Entretien]] and clicking on the displayed "Entretien" link yields a white window. The problem is that the *Org Agenda* buffer is associated with the "~/" directory, and the relativized name is then wrong. 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: (add-hook 'org-agenda-mode-hook (lambda () (cd org-directory))) 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. Fran=C3=A7ois