From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Agenda buffer and relative links Date: Sat, 07 Jan 2012 21:58:43 +0100 Message-ID: <80mx9zrzzw.fsf@somewhere.org> References: <87zke1ebyj.fsf@iro.umontreal.ca> <8067.1325825020@alphaville.dokosmarshall.org> <87zke1kptn.fsf@iro.umontreal.ca> <80sjjtj7iw.fsf@somewhere.org> <87mx9zl8df.fsf@iro.umontreal.ca> <87hb07l3ez.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Fran=C3=A7ois, Fran=C3=A7ois Pinard wrote: > pinard-CRDzTM1onBSWkKpYnGOUKg@public.gmane.org (Fran=C3=A7ois Pinard) writes: > >> The following message is a courtesy copy of an article >> that has been posted to gmane.emacs.orgmode as well. > > Hmph, I now wonder if the link is bidirectional, and if messages posted > to gmane.emacs.orgmode actually end up on emacs-orgmode-0jIIvIziipk@public.gmane.org I'm > repeating it all below, quoted. (Would someone be kind enough to tell > me if it was seen on the mailing list?) I saw your posting of 18:39... Reading this ML through Gmane, though. > A good solution imposed itself to my mind, a few minutes ago. I do not > know how easy to implement it would be however. > > The real problem is that relative links within the agenda buffer are > interpreted relative to the directory (M-x pwd) of the agenda buffer. > Happily enough, each line of the agenda buffer is somehow associated > with the buffer it comes from. Links within the agenda should be > interpreted relative to the base directory of the buffer they come from, > rather than from the agenda buffer itself. I must admit I'm not hit -- yet? -- by your problem, as I "never" (I should never say that) have links in my headings. So, what I would do, is jump to = the referenced heading (using RET or SPC) and activate it from there. BTW, just to confirm, is it the same is the link is in the very first line under a heading, and made visible from the agenda through `E': =E2=94=8F=E2=94=81=E2=94=81=E2=94=81=E2=94=81 =E2=94=83 E runs the command org-agenda-entry-text-mode, which is an in= teractive Lisp =E2=94=83 function in `org-agenda.el'. =E2=94=83=20 =E2=94=83 It is bound to E, . =E2=94=83=20 =E2=94=83 (org-agenda-entry-text-mode &optional ARG) =E2=94=83=20 =E2=94=83 Toggle entry text mode in an agenda buffer. =E2=94=97=E2=94=81=E2=94=81=E2=94=81=E2=94=81 >> "Sebastien Vauban" >> writes: > >>> Hi Fran=C3=A7ois, > >> Hello, Sebastien! > >>> Fran=C3=A7ois Pinard wrote: >>>> Nick Dokos writes: >>>>> Fran=C3=A7ois Pinard = wrote: > >>>>>> When Org mode defines a link for me, it sometimes changes it so it >>>>>> becomes relative. [...] This is OK in general, but not always. > >>>> There is a virtue in relative links which I recognize. So having an >>>> option to force all links to be absolute might not be a solution. > >>> Would this help you? > >>> =E2=94=8F=E2=94=81=E2=94=81=E2=94=81=E2=94=81 >>> =E2=94=83 org-link-file-path-type is a variable defined in `org.el'. >>> =E2=94=97=E2=94=81=E2=94=81=E2=94=81=E2=94=81 > >> Maybe, I might even end up using it, who knows. It does not solve the >> problem I tried to describe. Relative links allow for moving whole >> hierarchies elsewhere, so the current default Org behaviour is good. > >> But not good enough for the agenda buffer. Links do not always work in >> there, and this is the problem to solve. The problem has ramifications. > >> Fran=C3=A7ois > >> P.S. Nice way to quote, by the way! :-) M-x boxquote, with custom settings. Best regards, Seb --=20 Sebastien Vauban