From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Agenda buffer and relative links Date: Fri, 06 Jan 2012 14:16:23 +0100 Message-ID: <80sjjtj7iw.fsf@somewhere.org> References: <87zke1ebyj.fsf@iro.umontreal.ca> <8067.1325825020@alphaville.dokosmarshall.org> <87zke1kptn.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: > 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. >>> [...] 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. > >> Check >> (info "(org) Handling links") >> in the manual, particularly the doc for C-u C-c C-l. > > Hi, Nick, and gang. > > Yes, I knew about prefixes to C-c C-l, which may be used to force links > to be absolute. Systematic use of C-u C-u C-c C-l instead of C-c C-l > would be tedious, that's why I think there is a deeper problem about the > current defaults. > > 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. > Having all links relative just cannot work. Letting the user properly > manage is quite error-prone, and fairly annoying at least. 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=83 Its value is adaptive =E2=94=83=20 =E2=94=83 Documentation: =E2=94=83 How the path name in file links should be stored. =E2=94=83 Valid values are: =E2=94=83=20 =E2=94=83 relative Relative to the current directory, i.e. the directo= ry of the file =E2=94=83 into which the link is being inserted. =E2=94=83 absolute Absolute path, if possible with ~ for home director= y. =E2=94=83 noabbrev Absolute path, no abbreviation of home directory. =E2=94=83 adaptive Use relative path for files in the current director= y and sub- =E2=94=83 directories of it. For other files, use an absolut= e path. =E2=94=97=E2=94=81=E2=94=81=E2=94=81=E2=94=81 Best regards, Seb --=20 Sebastien Vauban