From mboxrd@z Thu Jan 1 00:00:00 1970 From: "T. V. Raman" Subject: export to html and relative links: Date: Sat, 12 Apr 2008 21:49:49 -0700 Message-ID: <18433.37101.453170.649918@gargle.gargle.HOWL> Reply-To: raman@users.sf.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JkuAA-0004lJ-QP for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 00:49:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JkuA9-0004jJ-3C for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 00:49:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkuA8-0004iz-NO for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 00:49:56 -0400 Received: from qmta04.westchester.pa.mail.comcast.net ([76.96.62.40]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JkuA8-0005jn-Fy for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 00:49:56 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, org-export turns links of the form [[foo][link to relative url foo]] ends up creating links of the form ... this means that it becomes impossible to write hyperlinks that are relative URLs. -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 07:37:52 +0200 Message-ID: References: <18433.37101.453170.649918@gargle.gargle.HOWL> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jkuug-0001lo-2p for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 01:38:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jkuue-0001jk-NA for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 01:38:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jkuue-0001jT-HW for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 01:38:00 -0400 Received: from ug-out-1314.google.com ([66.249.92.170]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jkuue-0005D0-Dx for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 01:38:00 -0400 Received: by ug-out-1314.google.com with SMTP id a2so211710ugf.48 for ; Sat, 12 Apr 2008 22:37:56 -0700 (PDT) In-Reply-To: <18433.37101.453170.649918@gargle.gargle.HOWL> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: raman@users.sf.net Cc: emacs-orgmode@gnu.org On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: > Hi, > > org-export turns links of the form > [[foo][link to relative url foo]] > > ends up creating links of the form > ... > > this means that it becomes impossible to write hyperlinks that > are relative URLs. Hi Raman, the url goes into the first pair of square brackets, the description into the second. If you put something into the first bracket pair that does not look lie a url, it will be treated as an internal link. Have you tried to use something like [[http:foo.html][link to relative url]] ? - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: "T. V. Raman" Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 08:33:55 -0700 Message-ID: <18434.10211.460576.220006@gargle.gargle.HOWL> References: <18433.37101.453170.649918@gargle.gargle.HOWL> Reply-To: raman@users.sf.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl4DQ-00064X-4i for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 11:34:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl4DN-00064L-KO for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 11:33:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl4DN-00064I-F9 for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 11:33:57 -0400 Received: from qmta07.westchester.pa.mail.comcast.net ([76.96.62.64]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jl4DN-0002RZ-FQ for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 11:33:57 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: dominik@science.uva.nl Cc: raman@users.sf.net, emacs-orgmode@gnu.org I've not tried http:foo.html -- but I suggest doing that to author a relative URL is a bad idea. I tried ./foo.html and that didn't work either. One compromise would be to get ./foo.html to link to a relative url, while foo.html continues to link to a local anchor >>>>> "Carsten" == Carsten Dominik writes: Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten> >> Hi, >> >> org-export turns links of the form [[foo][link to relative >> url foo]] >> >> ends up creating links of the form ... >> >> this means that it becomes impossible to write hyperlinks >> that are relative URLs. Carsten> Carsten> Hi Raman, Carsten> Carsten> the url goes into the first pair of square brackets, Carsten> the description into the second. If you put Carsten> something into the first bracket pair that does not Carsten> look lie a url, it will be treated as an internal Carsten> link. Carsten> Carsten> Have you tried to use something like Carsten> Carsten> [[http:foo.html][link to relative url]] Carsten> Carsten> ? Carsten> Carsten> - Carsten -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 17:54:33 +0200 Message-ID: References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl4XW-0002cr-HG for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 11:54:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl4XU-0002aq-LG for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 11:54:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl4XU-0002ai-HA for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 11:54:44 -0400 Received: from fg-out-1718.google.com ([72.14.220.159]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jl4XU-00068Y-CQ for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 11:54:44 -0400 Received: by fg-out-1718.google.com with SMTP id d23so2391684fga.30 for ; Sun, 13 Apr 2008 08:54:38 -0700 (PDT) In-Reply-To: <18434.10211.460576.220006@gargle.gargle.HOWL> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: raman@users.sf.net Cc: emacs-orgmode@gnu.org On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: > I've not tried http:foo.html -- but I suggest doing that to > author a relative URL is a bad idea. Can you explain why you think that this is a bad idea? Educate me! What is wrong with writing http:foo.html ?????? - Carsten > > > I tried ./foo.html and that didn't work either. One compromise > would be to get ./foo.html to link to a relative url, while > foo.html continues to link to a local anchor > >>>>>> "Carsten" == Carsten Dominik writes: > Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: > Carsten> >>> Hi, >>> >>> org-export turns links of the form [[foo][link to relative >>> url foo]] >>> >>> ends up creating links of the form ... >>> >>> this means that it becomes impossible to write hyperlinks >>> that are relative URLs. > Carsten> > Carsten> Hi Raman, > Carsten> > Carsten> the url goes into the first pair of square brackets, > Carsten> the description into the second. If you put > Carsten> something into the first bracket pair that does not > Carsten> look lie a url, it will be treated as an internal > Carsten> link. > Carsten> > Carsten> Have you tried to use something like > Carsten> > Carsten> [[http:foo.html][link to relative url]] > Carsten> > Carsten> ? > Carsten> > Carsten> - Carsten > > -- > Best Regards, > --raman > > > Email: raman@users.sf.net > WWW: http://emacspeak.sf.net/raman/ > AIM: emacspeak GTalk: tv.raman.tv@gmail.com > PGP: http://emacspeak.sf.net/raman/raman-almaden.asc > Google: tv+raman > IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: "T. V. Raman" Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 09:25:31 -0700 Message-ID: <18434.13307.199469.747272@gargle.gargle.HOWL> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> Reply-To: raman@users.sf.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl51K-0006Vl-JF for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 12:25:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl51J-0006Ud-Dz for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 12:25:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl51J-0006UG-6r for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 12:25:33 -0400 Received: from qmta10.westchester.pa.mail.comcast.net ([76.96.62.17]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jl51I-0005WK-Rk for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 12:25:33 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: dominik@science.uva.nl Cc: raman@users.sf.net, emacs-orgmode@gnu.org I think writing http:foo.html is a bad idea because typing that string in other contexts is sort of meaningless as a URL. Until now, everything one types in org-mode sort of has meaning elsewhere. If you want it to look like a url in this case too then I'd suggest file:foo.html -- rther than http:file.html. I did not suggest that earlier because it's more chars to type, but that's not a huge concern since emacs does the typing, and we could always augment c-c c-l to enable authoring of relative links with file completion. so file:a/b/c.html would become href="a/b/c.html" in the generated html. >>>>> "Carsten" == Carsten Dominik writes: Carsten> On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten> >> I've not tried http:foo.html -- but I suggest doing that >> to author a relative URL is a bad idea. Carsten> Carsten> Can you explain why you think that this is a bad Carsten> idea? Educate me! What is wrong with writing Carsten> http:foo.html ?????? Carsten> Carsten> - Carsten Carsten> >> > > I tried ./foo.html and that didn't work either. One compromise >> would be to get ./foo.html to link to a relative url, >> while foo.html continues to link to a local anchor >> >>>>>>> "Carsten" == Carsten Dominik >>>>>>> writes: Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten> >>>> Hi, >>>> >>>> org-export turns links of the form [[foo][link to >>>> relative url foo]] >>>> >>>> ends up creating links of the form >>> href="#foo">... >>>> >>>> this means that it becomes impossible to write >>>> hyperlinks that are relative URLs. Carsten> Carsten> Hi Raman, Carsten> Carsten> the url goes into the first pair of square brackets, Carsten> the description into the second. If you put Carsten> something into the first bracket pair that does not Carsten> look lie a url, it will be treated as an internal Carsten> link. Carsten> Carsten> Have you tried to use something like Carsten> Carsten> [[http:foo.html][link to relative url]] Carsten> Carsten> ? Carsten> Carsten> - Carsten >> >> -- >> Best Regards, --raman >> >> >> Email: raman@users.sf.net WWW: >> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >> tv.raman.tv@gmail.com PGP: >> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >> tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 19:19:00 +0200 Message-ID: <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl5rB-0005vr-NU for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 13:19:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl5r9-0005qZ-3y for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 13:19:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl5r8-0005qQ-HR for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 13:19:06 -0400 Received: from ug-out-1314.google.com ([66.249.92.173]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jl5r8-0001J5-1t for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 13:19:06 -0400 Received: by ug-out-1314.google.com with SMTP id a2so310068ugf.48 for ; Sun, 13 Apr 2008 10:19:05 -0700 (PDT) In-Reply-To: <18434.13307.199469.747272@gargle.gargle.HOWL> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: raman@users.sf.net Cc: emacs-orgmode@gnu.org Hmmmm, this is *such* a good idea, that I will implement this retroactively into all versions since ... 2.0 or so? Abracadabra! Done. In fact, it has been working just so for a very long time. file:foo.html -> href="foo.html" file:foo.org -> href="foo.html" The second line assumes that the org file foo.org will also be converted to an html file in the publishing process.... Also, I was mistaken earlier: http:foo.html becomes href="http:foo.html" and not href="foo.html" so this actually cannot be used for a local link. So what remains from this exchange? Should we accept links that look like absolute file names (including ./foo.html) as equivalent to file:./foo.html ? - Carsten On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: > > I think writing http:foo.html is a bad idea because typing that > string in other contexts is sort of meaningless as a URL. > Until now, everything one types in org-mode sort of has meaning > elsewhere. If you want it to look like a url in this case too > then I'd suggest file:foo.html -- rther than http:file.html. > > I did not suggest that earlier because it's more chars to type, > but that's not a huge concern since emacs does the typing, and we > could always augment c-c c-l to enable authoring of relative > links with file completion. > > so file:a/b/c.html would become href="a/b/c.html" in the > generated html. > >>>>>> "Carsten" == Carsten Dominik writes: > Carsten> On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: > Carsten> >>> I've not tried http:foo.html -- but I suggest doing that >>> to author a relative URL is a bad idea. > Carsten> > Carsten> Can you explain why you think that this is a bad > Carsten> idea? Educate me! What is wrong with writing > Carsten> http:foo.html ?????? > Carsten> > Carsten> - Carsten > Carsten> >>> >> >> I tried ./foo.html and that didn't work either. One compromise >>> would be to get ./foo.html to link to a relative url, >>> while foo.html continues to link to a local anchor >>> >>>>>>>> "Carsten" == Carsten Dominik >>>>>>>> writes: > Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: > Carsten> >>>>> Hi, >>>>> >>>>> org-export turns links of the form [[foo][link to >>>>> relative url foo]] >>>>> >>>>> ends up creating links of the form >>>> href="#foo">... >>>>> >>>>> this means that it becomes impossible to write >>>>> hyperlinks that are relative URLs. > Carsten> > Carsten> Hi Raman, > Carsten> > Carsten> the url goes into the first pair of square brackets, > Carsten> the description into the second. If you put > Carsten> something into the first bracket pair that does not > Carsten> look lie a url, it will be treated as an internal > Carsten> link. > Carsten> > Carsten> Have you tried to use something like > Carsten> > Carsten> [[http:foo.html][link to relative url]] > Carsten> > Carsten> ? > Carsten> > Carsten> - Carsten >>> >>> -- >>> Best Regards, --raman >>> >>> >>> Email: raman@users.sf.net WWW: >>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>> tv.raman.tv@gmail.com PGP: >>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>> tv+raman IRC: irc://irc.freenode.net/#emacs > > -- > Best Regards, > --raman > > > Email: raman@users.sf.net > WWW: http://emacspeak.sf.net/raman/ > AIM: emacspeak GTalk: tv.raman.tv@gmail.com > PGP: http://emacspeak.sf.net/raman/raman-almaden.asc > Google: tv+raman > IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: "T. V. Raman" Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 11:48:31 -0700 Message-ID: <18434.21887.554746.137185@gargle.gargle.HOWL> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> Reply-To: raman@users.sf.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl7Fp-00046T-1J for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 14:48:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl7Fj-00044B-En for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 14:48:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl7Fj-00043w-5T for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 14:48:35 -0400 Received: from qmta10.westchester.pa.mail.comcast.net ([76.96.62.17]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jl7Fi-00032T-Ao for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 14:48:34 -0400 In-Reply-To: <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: dominik@science.uva.nl Cc: raman@users.sf.net, emacs-orgmode@gnu.org two suggestions: 1) accept paths like "./foo.html" as local links. 2) Augment C-c C-l to react to file: by providing filename completion relative to the working directory. The emacs binding to the w3m browser does this if you type file: in the minibuffer when prompted for a URL. >>>>> "Carsten" == Carsten Dominik writes: Carsten> Hmmmm, this is *such* a good idea, that I will Carsten> implement this retroactively into all versions since Carsten> ... 2.0 or so? Abracadabra! Done. Carsten> Carsten> In fact, it has been working just so for a very long Carsten> time. Carsten> Carsten> file:foo.html -> href="foo.html" file:foo.org -> Carsten> href="foo.html" Carsten> Carsten> The second line assumes that the org file foo.org Carsten> will also be converted to an html file in the Carsten> publishing process.... Carsten> Carsten> Also, I was mistaken earlier: Carsten> Carsten> http:foo.html becomes href="http:foo.html" and not Carsten> href="foo.html" Carsten> Carsten> so this actually cannot be used for a local link. Carsten> Carsten> So what remains from this exchange? Should we Carsten> accept links that look like absolute file names Carsten> (including ./foo.html) as equivalent to Carsten> file:./foo.html ? Carsten> Carsten> - Carsten Carsten> Carsten> On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: Carsten> >> > I think writing http:foo.html is a bad idea because typing that >> string in other contexts is sort of meaningless as a URL. >> Until now, everything one types in org-mode sort of has >> meaning elsewhere. If you want it to look like a url in >> this case too then I'd suggest file:foo.html -- rther than >> http:file.html. >> >> I did not suggest that earlier because it's more chars to >> type, but that's not a huge concern since emacs does the >> typing, and we could always augment c-c c-l to enable >> authoring of relative links with file completion. >> >> so file:a/b/c.html would become href="a/b/c.html" in the >> generated html. >> >>>>>>> "Carsten" == Carsten Dominik >>>>>>> writes: Carsten> On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten> >>>> I've not tried http:foo.html -- but I suggest doing that >>>> to author a relative URL is a bad idea. Carsten> Carsten> Can you explain why you think that this is a bad Carsten> idea? Educate me! What is wrong with writing Carsten> http:foo.html ?????? Carsten> Carsten> - Carsten Carsten> >>>> >> >> I tried ./foo.html and that didn't work either. One compromise >>>> would be to get ./foo.html to link to a relative url, >>>> while foo.html continues to link to a local anchor >>>> >>>>>>>>> "Carsten" == Carsten Dominik >>>>>>>>> writes: Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten> >>>>>> Hi, >>>>>> >>>>>> org-export turns links of the form [[foo][link to >>>>>> relative url foo]] >>>>>> >>>>>> ends up creating links of the form >>>>> href="#foo">... >>>>>> >>>>>> this means that it becomes impossible to write >>>>>> hyperlinks that are relative URLs. Carsten> Carsten> Hi Raman, Carsten> Carsten> the url goes into the first pair of square brackets, Carsten> the description into the second. If you put Carsten> something into the first bracket pair that does not Carsten> look lie a url, it will be treated as an internal Carsten> link. Carsten> Carsten> Have you tried to use something like Carsten> Carsten> [[http:foo.html][link to relative url]] Carsten> Carsten> ? Carsten> Carsten> - Carsten >>>> >>>> -- >>>> Best Regards, --raman >>>> >>>> >>>> Email: raman@users.sf.net WWW: >>>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>>> tv.raman.tv@gmail.com PGP: >>>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>>> tv+raman IRC: irc://irc.freenode.net/#emacs >> >> -- >> Best Regards, --raman >> >> >> Email: raman@users.sf.net WWW: >> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >> tv.raman.tv@gmail.com PGP: >> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >> tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 21:35:32 +0200 Message-ID: References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> <18434.21887.554746.137185@gargle.gargle.HOWL> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl7zJ-0001AQ-BG for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 15:35:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl7zI-0001A9-K5 for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 15:35:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl7zI-0001A6-Ed for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 15:35:40 -0400 Received: from fk-out-0910.google.com ([209.85.128.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jl7zH-0004wc-W5 for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 15:35:40 -0400 Received: by fk-out-0910.google.com with SMTP id 26so1365045fkx.10 for ; Sun, 13 Apr 2008 12:35:36 -0700 (PDT) In-Reply-To: <18434.21887.554746.137185@gargle.gargle.HOWL> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: raman@users.sf.net Cc: emacs-orgmode@gnu.org Hi Raman, On Apr 13, 2008, at 8:48 PM, T. V. Raman wrote: > two suggestions: > > 1) accept paths like "./foo.html" as local links. I will look into this. The problem is the system dependence of file names, so I am not sure what a good solution would be that would work on Windows as well as on Unix. > 2) Augment C-c C-l to react to file: by providing filename > completion relative to the working directory. Hmm, that is difficult, but thanks for the pointer, maybe we can steel some code. For now, if you use `C-u C-c C-l', you get file completion, and the result will be a "file:" link with a relative path (unless you enter a path starting with "/"). Even if you find the file with ../../../some/path, it will still be inserted as a relative link. - Carsten > > > The emacs binding to the w3m browser does this if you type file: in > the minibuffer > when prompted for a URL. > >>>>>> "Carsten" == Carsten Dominik writes: > Carsten> Hmmmm, this is *such* a good idea, that I will > Carsten> implement this retroactively into all versions since > Carsten> ... 2.0 or so? Abracadabra! Done. > Carsten> > Carsten> In fact, it has been working just so for a very long > Carsten> time. > Carsten> > Carsten> file:foo.html -> href="foo.html" file:foo.org -> > Carsten> href="foo.html" > Carsten> > Carsten> The second line assumes that the org file foo.org > Carsten> will also be converted to an html file in the > Carsten> publishing process.... > Carsten> > Carsten> Also, I was mistaken earlier: > Carsten> > Carsten> http:foo.html becomes href="http:foo.html" and not > Carsten> href="foo.html" > Carsten> > Carsten> so this actually cannot be used for a local link. > Carsten> > Carsten> So what remains from this exchange? Should we > Carsten> accept links that look like absolute file names > Carsten> (including ./foo.html) as equivalent to > Carsten> file:./foo.html ? > Carsten> > Carsten> - Carsten > Carsten> > Carsten> On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: > Carsten> >>> >> I think writing http:foo.html is a bad idea because typing that >>> string in other contexts is sort of meaningless as a URL. >>> Until now, everything one types in org-mode sort of has >>> meaning elsewhere. If you want it to look like a url in >>> this case too then I'd suggest file:foo.html -- rther than >>> http:file.html. >>> >>> I did not suggest that earlier because it's more chars to >>> type, but that's not a huge concern since emacs does the >>> typing, and we could always augment c-c c-l to enable >>> authoring of relative links with file completion. >>> >>> so file:a/b/c.html would become href="a/b/c.html" in the >>> generated html. >>> >>>>>>>> "Carsten" == Carsten Dominik >>>>>>>> writes: > Carsten> On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: > Carsten> >>>>> I've not tried http:foo.html -- but I suggest doing that >>>>> to author a relative URL is a bad idea. > Carsten> > Carsten> Can you explain why you think that this is a bad > Carsten> idea? Educate me! What is wrong with writing > Carsten> http:foo.html ?????? > Carsten> > Carsten> - Carsten > Carsten> >>>>> >>> >>> I tried ./foo.html and that didn't work either. One compromise >>>>> would be to get ./foo.html to link to a relative url, >>>>> while foo.html continues to link to a local anchor >>>>> >>>>>>>>>> "Carsten" == Carsten Dominik >>>>>>>>>> writes: > Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: > Carsten> >>>>>>> Hi, >>>>>>> >>>>>>> org-export turns links of the form [[foo][link to >>>>>>> relative url foo]] >>>>>>> >>>>>>> ends up creating links of the form >>>>>> href="#foo">... >>>>>>> >>>>>>> this means that it becomes impossible to write >>>>>>> hyperlinks that are relative URLs. > Carsten> > Carsten> Hi Raman, > Carsten> > Carsten> the url goes into the first pair of square brackets, > Carsten> the description into the second. If you put > Carsten> something into the first bracket pair that does not > Carsten> look lie a url, it will be treated as an internal > Carsten> link. > Carsten> > Carsten> Have you tried to use something like > Carsten> > Carsten> [[http:foo.html][link to relative url]] > Carsten> > Carsten> ? > Carsten> > Carsten> - Carsten >>>>> >>>>> -- >>>>> Best Regards, --raman >>>>> >>>>> >>>>> Email: raman@users.sf.net WWW: >>>>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>>>> tv.raman.tv@gmail.com PGP: >>>>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>>>> tv+raman IRC: irc://irc.freenode.net/#emacs >>> >>> -- >>> Best Regards, --raman >>> >>> >>> Email: raman@users.sf.net WWW: >>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>> tv.raman.tv@gmail.com PGP: >>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>> tv+raman IRC: irc://irc.freenode.net/#emacs > > -- > Best Regards, > --raman > > > Email: raman@users.sf.net > WWW: http://emacspeak.sf.net/raman/ > AIM: emacspeak GTalk: tv.raman.tv@gmail.com > PGP: http://emacspeak.sf.net/raman/raman-almaden.asc > Google: tv+raman > IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: "T. V. Raman" Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 13:32:45 -0700 Message-ID: <18434.28141.555914.954122@gargle.gargle.HOWL> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> <18434.21887.554746.137185@gargle.gargle.HOWL> Reply-To: raman@users.sf.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl8sd-0000HF-07 for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 16:32:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl8sb-0000FK-FA for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 16:32:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl8sb-0000FB-B0 for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 16:32:49 -0400 Received: from qmta05.westchester.pa.mail.comcast.net ([76.96.62.48]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jl8sb-00079d-4a for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 16:32:49 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: dominik@science.uva.nl Cc: raman@users.sf.net, emacs-orgmode@gnu.org file:// urls are already designed to be platform independent. So an org file should never carry in it a path like a\\b\\c.html -- we should always use a/b/c.html since that's the syntax used by relative URLs. >>>>> "Carsten" == Carsten Dominik writes: Carsten> Hi Raman, On Apr 13, 2008, at 8:48 PM, T. V. Raman Carsten> wrote: Carsten> >> two suggestions: >> >> 1) accept paths like "./foo.html" as local links. Carsten> Carsten> I will look into this. The problem is the system Carsten> dependence of file names, so I am not sure what a Carsten> good solution would be that would work on Windows as Carsten> well as on Unix. Carsten> >> 2) Augment C-c C-l to react to file: by providing filename >> completion relative to the working directory. Carsten> Carsten> Hmm, that is difficult, but thanks for the pointer, Carsten> maybe we can steel some code. Carsten> Carsten> For now, if you use `C-u C-c C-l', you get file Carsten> completion, and the result will be a "file:" link Carsten> with a relative path (unless you enter a path Carsten> starting with "/"). Even if you find the file with Carsten> ../../../some/path, it will still be inserted as a Carsten> relative link. Carsten> Carsten> - Carsten Carsten> >> > > The emacs binding to the w3m browser does this if you type >> file: in the minibuffer when prompted for a URL. >> >>>>>>> "Carsten" == Carsten Dominik >>>>>>> writes: Carsten> Hmmmm, this is *such* a good idea, that I will Carsten> implement this retroactively into all versions since Carsten> ... 2.0 or so? Abracadabra! Done. Carsten> Carsten> In fact, it has been working just so for a very long Carsten> time. Carsten> Carsten> file:foo.html -> href="foo.html" file:foo.org -> Carsten> href="foo.html" Carsten> Carsten> The second line assumes that the org file foo.org Carsten> will also be converted to an html file in the Carsten> publishing process.... Carsten> Carsten> Also, I was mistaken earlier: Carsten> Carsten> http:foo.html becomes href="http:foo.html" and not Carsten> href="foo.html" Carsten> Carsten> so this actually cannot be used for a local link. Carsten> Carsten> So what remains from this exchange? Should we Carsten> accept links that look like absolute file names Carsten> (including ./foo.html) as equivalent to Carsten> file:./foo.html ? Carsten> Carsten> - Carsten Carsten> Carsten> On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: Carsten> >>>> >> I think writing http:foo.html is a bad idea because typing >>>> that string in other contexts is sort of meaningless as >>>> a URL. Until now, everything one types in org-mode sort >>>> of has meaning elsewhere. If you want it to look like a >>>> url in this case too then I'd suggest file:foo.html -- >>>> rther than http:file.html. >>>> >>>> I did not suggest that earlier because it's more chars >>>> to type, but that's not a huge concern since emacs does >>>> the typing, and we could always augment c-c c-l to >>>> enable authoring of relative links with file completion. >>>> >>>> so file:a/b/c.html would become href="a/b/c.html" in the >>>> generated html. >>>> >>>>>>>>> "Carsten" == Carsten Dominik >>>>>>>>> writes: Carsten> On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: Carsten> >>>>>> I've not tried http:foo.html -- but I suggest doing >>>>>> that to author a relative URL is a bad idea. Carsten> Carsten> Can you explain why you think that this is a bad Carsten> idea? Educate me! What is wrong with writing Carsten> http:foo.html ?????? Carsten> Carsten> - Carsten Carsten> >>>>>> >>> >>> I tried ./foo.html and that didn't work either. One >>>>>> compromise would be to get ./foo.html to link to a >>>>>> relative url, while foo.html continues to link to a >>>>>> local anchor >>>>>> >>>>>>>>>>> "Carsten" == Carsten Dominik >>>>>>>>>>> writes: Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: Carsten> >>>>>>>> Hi, >>>>>>>> >>>>>>>> org-export turns links of the form [[foo][link to >>>>>>>> relative url foo]] >>>>>>>> >>>>>>>> ends up creating links of the form >>>>>>> href="#foo">... >>>>>>>> >>>>>>>> this means that it becomes impossible to write >>>>>>>> hyperlinks that are relative URLs. Carsten> Carsten> Hi Raman, Carsten> Carsten> the url goes into the first pair of square brackets, Carsten> the description into the second. If you put Carsten> something into the first bracket pair that does not Carsten> look lie a url, it will be treated as an internal Carsten> link. Carsten> Carsten> Have you tried to use something like Carsten> Carsten> [[http:foo.html][link to relative url]] Carsten> Carsten> ? Carsten> Carsten> - Carsten >>>>>> >>>>>> -- >>>>>> Best Regards, --raman >>>>>> >>>>>> >>>>>> Email: raman@users.sf.net WWW: >>>>>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>>>>> tv.raman.tv@gmail.com PGP: >>>>>> http://emacspeak.sf.net/raman/raman-almaden.asc >>>>>> Google: tv+raman IRC: irc://irc.freenode.net/#emacs >>>> >>>> -- >>>> Best Regards, --raman >>>> >>>> >>>> Email: raman@users.sf.net WWW: >>>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>>> tv.raman.tv@gmail.com PGP: >>>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>>> tv+raman IRC: irc://irc.freenode.net/#emacs >> >> -- >> Best Regards, --raman >> >> >> Email: raman@users.sf.net WWW: >> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >> tv.raman.tv@gmail.com PGP: >> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >> tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: export to html and relative links: Date: Sun, 13 Apr 2008 23:37:49 +0200 Message-ID: <23910ADA-E5A1-44B6-A2C7-08459466560C@science.uva.nl> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> <18434.21887.554746.137185@gargle.gargle.HOWL> <18434.28141.555914.954122@gargle.gargle.HOWL> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jl9tf-0004SX-Mk for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 17:37:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jl9tc-0004M3-8e for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 17:37:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jl9tc-0004Li-4Y for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 17:37:56 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jl9tb-0001IJ-SR for emacs-orgmode@gnu.org; Sun, 13 Apr 2008 17:37:56 -0400 Received: by fg-out-1718.google.com with SMTP id d23so2575142fga.30 for ; Sun, 13 Apr 2008 14:37:54 -0700 (PDT) In-Reply-To: <18434.28141.555914.954122@gargle.gargle.HOWL> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: raman@users.sf.net Cc: emacs-orgmode@gnu.org On Apr 13, 2008, at 10:32 PM, T. V. Raman wrote: > file:// urls are already designed to be platform independent. > So an org file should never carry in it a path like a\\b\\c.html > -- we should always use a/b/c.html > since that's the syntax used by relative URLs. Yes, but while an Org file is still an Org file, the same links function is links to open the corresponding file in Emacs, and my fear is that this can lead to conflicts. Anyway, this is for the windows people to complain about and to propose solutions... :-) - Carsten > > >>>>>> "Carsten" == Carsten Dominik writes: > Carsten> Hi Raman, On Apr 13, 2008, at 8:48 PM, T. V. Raman > Carsten> wrote: > Carsten> >>> two suggestions: >>> >>> 1) accept paths like "./foo.html" as local links. > Carsten> > Carsten> I will look into this. The problem is the system > Carsten> dependence of file names, so I am not sure what a > Carsten> good solution would be that would work on Windows as > Carsten> well as on Unix. > Carsten> >>> 2) Augment C-c C-l to react to file: by providing filename >>> completion relative to the working directory. > Carsten> > Carsten> Hmm, that is difficult, but thanks for the pointer, > Carsten> maybe we can steel some code. > Carsten> > Carsten> For now, if you use `C-u C-c C-l', you get file > Carsten> completion, and the result will be a "file:" link > Carsten> with a relative path (unless you enter a path > Carsten> starting with "/"). Even if you find the file with > Carsten> ../../../some/path, it will still be inserted as a > Carsten> relative link. > Carsten> > Carsten> - Carsten > Carsten> >>> >> >> The emacs binding to the w3m browser does this if you type >>> file: in the minibuffer when prompted for a URL. >>> >>>>>>>> "Carsten" == Carsten Dominik >>>>>>>> writes: > Carsten> Hmmmm, this is *such* a good idea, that I will > Carsten> implement this retroactively into all versions since > Carsten> ... 2.0 or so? Abracadabra! Done. > Carsten> > Carsten> In fact, it has been working just so for a very long > Carsten> time. > Carsten> > Carsten> file:foo.html -> href="foo.html" file:foo.org -> > Carsten> href="foo.html" > Carsten> > Carsten> The second line assumes that the org file foo.org > Carsten> will also be converted to an html file in the > Carsten> publishing process.... > Carsten> > Carsten> Also, I was mistaken earlier: > Carsten> > Carsten> http:foo.html becomes href="http:foo.html" and not > Carsten> href="foo.html" > Carsten> > Carsten> so this actually cannot be used for a local link. > Carsten> > Carsten> So what remains from this exchange? Should we > Carsten> accept links that look like absolute file names > Carsten> (including ./foo.html) as equivalent to > Carsten> file:./foo.html ? > Carsten> > Carsten> - Carsten > Carsten> > Carsten> On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: > Carsten> >>>>> >>> I think writing http:foo.html is a bad idea because typing >>>>> that string in other contexts is sort of meaningless as >>>>> a URL. Until now, everything one types in org-mode sort >>>>> of has meaning elsewhere. If you want it to look like a >>>>> url in this case too then I'd suggest file:foo.html -- >>>>> rther than http:file.html. >>>>> >>>>> I did not suggest that earlier because it's more chars >>>>> to type, but that's not a huge concern since emacs does >>>>> the typing, and we could always augment c-c c-l to >>>>> enable authoring of relative links with file completion. >>>>> >>>>> so file:a/b/c.html would become href="a/b/c.html" in the >>>>> generated html. >>>>> >>>>>>>>>> "Carsten" == Carsten Dominik >>>>>>>>>> writes: > Carsten> On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: > Carsten> >>>>>>> I've not tried http:foo.html -- but I suggest doing >>>>>>> that to author a relative URL is a bad idea. > Carsten> > Carsten> Can you explain why you think that this is a bad > Carsten> idea? Educate me! What is wrong with writing > Carsten> http:foo.html ?????? > Carsten> > Carsten> - Carsten > Carsten> >>>>>>> >>>> >>>> I tried ./foo.html and that didn't work either. One >>>>>>> compromise would be to get ./foo.html to link to a >>>>>>> relative url, while foo.html continues to link to a >>>>>>> local anchor >>>>>>> >>>>>>>>>>>> "Carsten" == Carsten Dominik >>>>>>>>>>>> writes: > Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: > Carsten> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> org-export turns links of the form [[foo][link to >>>>>>>>> relative url foo]] >>>>>>>>> >>>>>>>>> ends up creating links of the form >>>>>>>> href="#foo">... >>>>>>>>> >>>>>>>>> this means that it becomes impossible to write >>>>>>>>> hyperlinks that are relative URLs. > Carsten> > Carsten> Hi Raman, > Carsten> > Carsten> the url goes into the first pair of square brackets, > Carsten> the description into the second. If you put > Carsten> something into the first bracket pair that does not > Carsten> look lie a url, it will be treated as an internal > Carsten> link. > Carsten> > Carsten> Have you tried to use something like > Carsten> > Carsten> [[http:foo.html][link to relative url]] > Carsten> > Carsten> ? > Carsten> > Carsten> - Carsten >>>>>>> >>>>>>> -- >>>>>>> Best Regards, --raman >>>>>>> >>>>>>> >>>>>>> Email: raman@users.sf.net WWW: >>>>>>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>>>>>> tv.raman.tv@gmail.com PGP: >>>>>>> http://emacspeak.sf.net/raman/raman-almaden.asc >>>>>>> Google: tv+raman IRC: irc://irc.freenode.net/#emacs >>>>> >>>>> -- >>>>> Best Regards, --raman >>>>> >>>>> >>>>> Email: raman@users.sf.net WWW: >>>>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>>>> tv.raman.tv@gmail.com PGP: >>>>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>>>> tv+raman IRC: irc://irc.freenode.net/#emacs >>> >>> -- >>> Best Regards, --raman >>> >>> >>> Email: raman@users.sf.net WWW: >>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>> tv.raman.tv@gmail.com PGP: >>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>> tv+raman IRC: irc://irc.freenode.net/#emacs > > -- > Best Regards, > --raman > > > Email: raman@users.sf.net > WWW: http://emacspeak.sf.net/raman/ > AIM: emacspeak GTalk: tv.raman.tv@gmail.com > PGP: http://emacspeak.sf.net/raman/raman-almaden.asc > Google: tv+raman > IRC: irc://irc.freenode.net/#emacs From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: export to html and relative links: Date: Tue, 24 Jun 2008 08:38:03 +0200 Message-ID: <8D453617-E574-4032-B7B4-B421D34E6163@gmail.com> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> <18434.21887.554746.137185@gargle.gargle.HOWL> Mime-Version: 1.0 (Apple Message framework v924) Content-Type: multipart/mixed; boundary="===============1714439973==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KB2AO-0006wM-78 for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 02:38:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KB2AN-0006wA-8c for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 02:38:11 -0400 Received: from [199.232.76.173] (port=36446 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KB2AN-0006w7-2K for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 02:38:11 -0400 Received: from ug-out-1314.google.com ([66.249.92.174]:3892) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KB2AM-00016d-7p for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 02:38:10 -0400 Received: by ug-out-1314.google.com with SMTP id l31so568966ugc.48 for ; Mon, 23 Jun 2008 23:38:09 -0700 (PDT) In-Reply-To: <18434.21887.554746.137185@gargle.gargle.HOWL> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: raman@users.sf.net Cc: emacs-orgmode@gnu.org --===============1714439973== Content-Type: multipart/alternative; boundary=Apple-Mail-1--240917213 --Apple-Mail-1--240917213 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Apr 13, 2008, at 8:48 PM, T. V. Raman wrote: > two suggestions: > > 1) accept paths like "./foo.html" as local links. This is now allowed. > > 2) Augment C-c C-l to react to file: by providing filename > completion relative to the working directory. This is hard and therefore not yet implemented. Use `C-u C-c C-l' to insert a file link with completion. - Carsten > > > The emacs binding to the w3m browser does this if you type file: in > the minibuffer > when prompted for a URL. > >>>>>> "Carsten" == Carsten Dominik writes: > Carsten> Hmmmm, this is *such* a good idea, that I will > Carsten> implement this retroactively into all versions since > Carsten> ... 2.0 or so? Abracadabra! Done. > Carsten> > Carsten> In fact, it has been working just so for a very long > Carsten> time. > Carsten> > Carsten> file:foo.html -> href="foo.html" file:foo.org -> > Carsten> href="foo.html" > Carsten> > Carsten> The second line assumes that the org file foo.org > Carsten> will also be converted to an html file in the > Carsten> publishing process.... > Carsten> > Carsten> Also, I was mistaken earlier: > Carsten> > Carsten> http:foo.html becomes href="http:foo.html" and not > Carsten> href="foo.html" > Carsten> > Carsten> so this actually cannot be used for a local link. > Carsten> > Carsten> So what remains from this exchange? Should we > Carsten> accept links that look like absolute file names > Carsten> (including ./foo.html) as equivalent to > Carsten> file:./foo.html ? > Carsten> > Carsten> - Carsten > Carsten> > Carsten> On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote: > Carsten> >>> >> I think writing http:foo.html is a bad idea because typing that >>> string in other contexts is sort of meaningless as a URL. >>> Until now, everything one types in org-mode sort of has >>> meaning elsewhere. If you want it to look like a url in >>> this case too then I'd suggest file:foo.html -- rther than >>> http:file.html. >>> >>> I did not suggest that earlier because it's more chars to >>> type, but that's not a huge concern since emacs does the >>> typing, and we could always augment c-c c-l to enable >>> authoring of relative links with file completion. >>> >>> so file:a/b/c.html would become href="a/b/c.html" in the >>> generated html. >>> >>>>>>>> "Carsten" == Carsten Dominik >>>>>>>> writes: > Carsten> On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote: > Carsten> >>>>> I've not tried http:foo.html -- but I suggest doing that >>>>> to author a relative URL is a bad idea. > Carsten> > Carsten> Can you explain why you think that this is a bad > Carsten> idea? Educate me! What is wrong with writing > Carsten> http:foo.html ?????? > Carsten> > Carsten> - Carsten > Carsten> >>>>> >>> >>> I tried ./foo.html and that didn't work either. One compromise >>>>> would be to get ./foo.html to link to a relative url, >>>>> while foo.html continues to link to a local anchor >>>>> >>>>>>>>>> "Carsten" == Carsten Dominik >>>>>>>>>> writes: > Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote: > Carsten> >>>>>>> Hi, >>>>>>> >>>>>>> org-export turns links of the form [[foo][link to >>>>>>> relative url foo]] >>>>>>> >>>>>>> ends up creating links of the form >>>>>> href="#foo">... >>>>>>> >>>>>>> this means that it becomes impossible to write >>>>>>> hyperlinks that are relative URLs. > Carsten> > Carsten> Hi Raman, > Carsten> > Carsten> the url goes into the first pair of square brackets, > Carsten> the description into the second. If you put > Carsten> something into the first bracket pair that does not > Carsten> look lie a url, it will be treated as an internal > Carsten> link. > Carsten> > Carsten> Have you tried to use something like > Carsten> > Carsten> [[http:foo.html][link to relative url]] > Carsten> > Carsten> ? > Carsten> > Carsten> - Carsten >>>>> >>>>> -- >>>>> Best Regards, --raman >>>>> >>>>> >>>>> Email: raman@users.sf.net WWW: >>>>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>>>> tv.raman.tv@gmail.com PGP: >>>>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>>>> tv+raman IRC: irc://irc.freenode.net/#emacs >>> >>> -- >>> Best Regards, --raman >>> >>> >>> Email: raman@users.sf.net WWW: >>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >>> tv.raman.tv@gmail.com PGP: >>> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >>> tv+raman IRC: irc://irc.freenode.net/#emacs > > -- > Best Regards, > --raman > > > Email: raman@users.sf.net > WWW: http://emacspeak.sf.net/raman/ > AIM: emacspeak GTalk: tv.raman.tv@gmail.com > PGP: http://emacspeak.sf.net/raman/raman-almaden.asc > Google: tv+raman > IRC: irc://irc.freenode.net/#emacs --Apple-Mail-1--240917213 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Apr 13, 2008, = at 8:48 PM, T. V. Raman wrote:

two = suggestions:

1)  accept paths like "./foo.html" as local = links.


This is now = allowed.


2) Augment C-c C-l = to react to file: by providing filename
completion relative to the = working directory.

This is hard = and therefore not yet implemented.  Use `C-u C-c C-l' to insert a = file link with completion.

- = Carsten




The= emacs binding to the w3m browser does this if you type file: in the = minibuffer
when prompted for a URL.

"Carsten" =3D=3D Carsten Dominik <dominik@science.uva.nl> = writes:
   Carsten> Hmmmm, this is *such* a good idea, that I = will
   Carsten> implement this retroactively into = all versions since
   Carsten> ... 2.0 or so? =  Abracadabra! Done.
   Carsten>
=    Carsten> In fact, it has been working just so for a = very long
   Carsten> time.
=    Carsten>
   Carsten> file:foo.html = -> href=3D"foo.html" file:foo.org ->
   Carsten> = href=3D"foo.html"
   Carsten>
=    Carsten> The second line assumes that the org file = foo.org
   Carsten> will also be converted to an html = file in the
   Carsten> publishing process....
=    Carsten>
   Carsten> Also, I was = mistaken earlier:
   Carsten>
=    Carsten> http:foo.html becomes href=3D"http:foo.html" = and not
   Carsten> href=3D"foo.html"
=    Carsten>
   Carsten> so this = actually cannot be used for a local link.
   Carsten> =
   Carsten> So what remains from this exchange? =  Should we
   Carsten> accept links that look = like absolute file names
   Carsten> (including = ./foo.html) as equivalent to
   Carsten> = file:./foo.html ?
   Carsten>
=    Carsten> - Carsten
   Carsten>
=    Carsten> On Apr 13, 2008, at 6:25 PM, T. V. Raman = wrote:
   Carsten>

I = think writing http:foo.html is a bad idea because typing = that
string in other contexts is sort of meaningless as a = URL.
Until now, everything one types in org-mode sort of = has
meaning elsewhere. If you want it to look like a url = in
this case too then I'd suggest file:foo.html -- rther = than
http:file.html.

I did not suggest that earlier = because it's more chars to
type, but that's not a huge = concern since emacs does the
typing, and we could always = augment c-c c-l to enable
authoring of relative links with = file completion.

so file:a/b/c.html would become = href=3D"a/b/c.html" in the
generated = html.

"Carsten" =3D=3D Carsten Dominik <dominik@science.uva.nl>
=
writes:
   Carsten> On = Apr 13, 2008, at 5:33 PM, T. V. Raman wrote:
=    Carsten>
I've = not tried http:foo.html -- but I suggest doing = that
to author a relative URL is a = bad idea.
=    Carsten>
   Carsten> Can you = explain why you think that this is a bad
   Carsten> = idea?  Educate me!  What is wrong with writing
=    Carsten> http:foo.html ??????
=    Carsten>
   Carsten> - Carsten
=    Carsten>


I tried ./foo.html and that = didn't work either. One = compromise
would be to get ./foo.html to = link to a relative = url,
while foo.html continues to link = to a local = anchor

"Carsten" =3D=3D Carsten = Dominik
<dominik@science.uva.nl> = writes:
=    Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman = wrote:
   Carsten>
Hi,
<= /blockquote>

org-export turns links of the form [[foo][link = to
relative url = foo]]
=

ends = up creating links of the form = <a
=
href=3D"#foo">...</a>

this = means that it becomes impossible to = write
=
hyperlinks that are relative = URLs.
=
   Carsten>
   Carsten> = Hi Raman,
   Carsten>
   Carsten> = the url goes into the first pair of square brackets,
=    Carsten> the description into the second.  If you = put
   Carsten> something into the first bracket pair = that does not
   Carsten> look lie a url, it will be = treated as an internal
   Carsten> link.
=    Carsten>
   Carsten> Have you = tried to use something like
   Carsten>
=    Carsten> [[http:foo.html][link to relative url]]
=    Carsten>
   Carsten> ?
=    Carsten>
   Carsten> - = Carsten

-- =
Best Regards, = --raman


Email: raman@users.sf.net = WWW:
http://emacspeak.sf.net/raman/= AIM: emacspeak = GTalk:
tv.raman.tv@gmail.com = PGP:
http://emacspeak.= sf.net/raman/raman-almaden.asc = Google:
tv+raman IRC: = irc://irc.freenode.net/#emacs

-- =
Best Regards, = --raman


Email: raman@users.sf.net = WWW:
http://emacspeak.sf.net/raman/= AIM: emacspeak GTalk:
tv.raman.tv@gmail.com = PGP:
http://emacspeak.= sf.net/raman/raman-almaden.asc = Google:
tv+raman IRC: = irc://irc.freenode.net/#emacs

-- =
Best Regards,
--raman


Email:  raman@users.sf.net
WWW: =    http://emacspeak.sf.net/raman/=
AIM:    emacspeak =       GTalk: tv.raman.tv@gmail.com
PGP: =    http://emacspeak.= sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: =    irc://irc.freenode.net/#emacs

= --Apple-Mail-1--240917213-- --===============1714439973== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1714439973==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul R Subject: Re: export to html and relative links: Date: Tue, 24 Jun 2008 10:36:29 +0200 Message-ID: <877icfgrg2.fsf@gmail.com> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> <18434.21887.554746.137185@gargle.gargle.HOWL> <8D453617-E574-4032-B7B4-B421D34E6163@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KB410-0002fD-IW for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 04:36:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KB40y-0002dH-NV for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 04:36:38 -0400 Received: from [199.232.76.173] (port=53939 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KB40y-0002d0-FR for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 04:36:36 -0400 Received: from fg-out-1718.google.com ([72.14.220.159]:43460) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KB40x-0006Px-Vn for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 04:36:36 -0400 Received: by fg-out-1718.google.com with SMTP id l26so1145461fgb.30 for ; Tue, 24 Jun 2008 01:36:30 -0700 (PDT) In-Reply-To: <8D453617-E574-4032-B7B4-B421D34E6163@gmail.com> (Carsten Dominik's message of "Tue\, 24 Jun 2008 08\:38\:03 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: raman@users.sf.net, emacs-orgmode@gnu.org Carsten Dominik writes: > 2) Augment C-c C-l to react to file: by providing filename > completion relative to the working directory. > > This is hard and therefore not yet implemented. Use `C-u C-c C-l' to insert a file link with > completion. Drop it if I'm off-topic, but isn't it what (file-relative-name path) does ? -- Paul From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: export to html and relative links: Date: Tue, 24 Jun 2008 11:39:40 +0200 Message-ID: <54569F62-AB4A-4229-A5A7-06EB4AFF3256@gmail.com> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> <18434.21887.554746.137185@gargle.gargle.HOWL> <8D453617-E574-4032-B7B4-B421D34E6163@gmail.com> <877icfgrg2.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KB50C-0005sG-U3 for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 05:39:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KB50A-0005rL-AN for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 05:39:51 -0400 Received: from [199.232.76.173] (port=39773 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KB509-0005r0-6c for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 05:39:49 -0400 Received: from ug-out-1314.google.com ([66.249.92.168]:21603) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KB506-0003gk-9P for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 05:39:46 -0400 Received: by ug-out-1314.google.com with SMTP id l31so589756ugc.48 for ; Tue, 24 Jun 2008 02:39:43 -0700 (PDT) In-Reply-To: <877icfgrg2.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Paul R Cc: raman@users.sf.net, emacs-orgmode@gnu.org On Jun 24, 2008, at 10:36 AM, Paul R wrote: > Carsten Dominik writes: > > >> 2) Augment C-c C-l to react to file: by providing filename >> completion relative to the working directory. >> >> This is hard and therefore not yet implemented. Use `C-u C-c C-l' >> to insert a file link with >> completion. > > Drop it if I'm off-topic, but isn't it what (file-relative-name path) > does ? It is hard because I would have to write a special completion function which sees the "file:" types and the switches its completion tactics. - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul R Subject: Re: Re: export to html and relative links: Date: Tue, 24 Jun 2008 11:45:20 +0200 Message-ID: <873an3go9b.fsf@gmail.com> References: <18433.37101.453170.649918@gargle.gargle.HOWL> <18434.10211.460576.220006@gargle.gargle.HOWL> <18434.13307.199469.747272@gargle.gargle.HOWL> <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> <18434.21887.554746.137185@gargle.gargle.HOWL> <8D453617-E574-4032-B7B4-B421D34E6163@gmail.com> <877icfgrg2.fsf@gmail.com> <54569F62-AB4A-4229-A5A7-06EB4AFF3256@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KB55c-0008Lr-MC for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 05:45:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KB55Y-0008Il-JV for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 05:45:26 -0400 Received: from [199.232.76.173] (port=57523 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KB55W-0008Hh-Mq for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 05:45:23 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:58613) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KB55W-00055v-3h for emacs-orgmode@gnu.org; Tue, 24 Jun 2008 05:45:22 -0400 Received: by fg-out-1718.google.com with SMTP id l26so1154157fgb.30 for ; Tue, 24 Jun 2008 02:45:21 -0700 (PDT) In-Reply-To: <54569F62-AB4A-4229-A5A7-06EB4AFF3256@gmail.com> (Carsten Dominik's message of "Tue\, 24 Jun 2008 11\:39\:40 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: raman@users.sf.net, emacs-orgmode@gnu.org Carsten Dominik writes: >> Drop it if I'm off-topic, but isn't it what (file-relative-name path) >> does ? > > It is hard because I would have to write a special completion function > which sees the "file:" types and the switches its completion tactics. So I was right ! Right to beleive I was off topic ;-) -- Paul