From: David Maus <dmaus@ictsoc.de>
To: Matt Lundin <mdl@imapmail.org>
Cc: emacs-orgmode@gnu.org, Aidan Gauland <aidalgol@no8wireless.co.nz>
Subject: Re: Re: Bug: Relative paths in file: links are expanded [6.36trans]
Date: Tue, 13 Jul 2010 23:34:08 +0200 [thread overview]
Message-ID: <87r5j712y7.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <87pqyrd10d.fsf@fastmail.fm>
[-- Attachment #1.1: Type: text/plain, Size: 1278 bytes --]
Matt Lundin wrote:
>Aidan Gauland <aidalgol@no8wireless.co.nz> writes:
>> If I create a link with C-c C-l and give it a relative "file:" link, a
>> link is created with an absolute path. For example, C-c C-l
>> file:../foo.org <RET> foo puts
>> [[file:~/path/to/working-directory/foo.org][foo]] in the buffer. I was
>> expecting [[file:../foo.org][foo]].
>That is the default behavior. You can change it by setting
>org-link-file-path-type to relative.
And in addition there was a fix pushed to repo.or.cz
,----
| commit acb8bcfba7023b362a7fbe9615bb167a046ad26d
| Author: Carsten Dominik <carsten.dominik@gmail.com>
| Date: Tue Jul 13 12:53:47 2010 +0200
|
| Fix relative path creation when making a file link
|
| * lisp/org.el (org-insert-link): Correctly determine if we should use
| a relative path.
|
| Aidan Gauland writes:
|
| > If I create a link with C-c C-l and give it a relative "file:" link, a
| > link is created with an absolute path. For example, C-c C-l
| > file:../foo.org <RET> foo puts
| > [[file:~/path/to/working-directory/foo.org][foo]] in the buffer. I was
| > expecting [[file:../foo.org][foo]].
`----
HTH,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-07-13 21:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-13 9:27 Bug: Relative paths in file: links are expanded [6.36trans] Aidan Gauland
2010-07-13 12:22 ` Matt Lundin
2010-07-13 21:34 ` David Maus [this message]
2010-07-13 23:29 ` Matthew Lundin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5j712y7.wl%dmaus@ictsoc.de \
--to=dmaus@ictsoc.de \
--cc=aidalgol@no8wireless.co.nz \
--cc=emacs-orgmode@gnu.org \
--cc=mdl@imapmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.