From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Question about org-link-file-path-type Date: Tue, 4 Nov 2008 12:32:22 +0100 Message-ID: References: <87ej1s5r70.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v929.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 1KxKGZ-0005b4-2l for emacs-orgmode@gnu.org; Tue, 04 Nov 2008 06:40:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxKGX-0005af-6o for emacs-orgmode@gnu.org; Tue, 04 Nov 2008 06:40:10 -0500 Received: from [199.232.76.173] (port=38262 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxKGW-0005aa-Us for emacs-orgmode@gnu.org; Tue, 04 Nov 2008 06:40:09 -0500 Received: from ug-out-1314.google.com ([66.249.92.174]:24901) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KxK94-0004hK-8e for emacs-orgmode@gnu.org; Tue, 04 Nov 2008 06:32:26 -0500 Received: by ug-out-1314.google.com with SMTP id 36so180797uga.17 for ; Tue, 04 Nov 2008 03:32:26 -0800 (PST) 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: Matthew Lundin Cc: emacs-orgmode@gnu.org Hi Matt, I would call this a bug. It is fixed now. Thanks for your report! - Carsten On Nov 4, 2008, at 4:24 AM, Matthew Lundin wrote: > Matthew Lundin writes: > >> I am using org 6.10c. When I set org-link-file-path-type to absolute >> and use C-u C-c C-l (org-insert-link with argument), any file in my >> home directory above my org directory is given the shortcut ~ -- as >> in >> file:~/pdfs/paper.pdf. (This is the desired behavior.) >> >> But when org-link-file-path-type is set to adaptive (the default) >> and I use org-insert link, the files above my org-directory are >> given unabbreviated names. E.g.: file:/home/matt/pdfs/paper.pdf. >> >> Since I use org on two separate computers with different root >> directory structures but also rely on relative links for my >> website, I >> would like the adaptive option to create abbreviated links for the >> home directory (i.e., ~). Is this possible? >> >> I seem to remember the adaptive setting resulting in the abbreviated >> links in 6.06 (before I upgraded to 6.08 and then 6.10), but I may be >> wrong about that. > > My mistake. I checked and this was apparently not the behavior of > earlier versions of org-mode. > > So let me try to simplify my question: Is it possible to have an > adaptive link option that creates (a) relative links for files in the > same directory as my org files or in subdirectories and (b) > abbreviated absolute links (i.e., ~ for home) for files in other > directories within my home directory? In other words, the behavior of > the absolute link option as part of the adaptive link option. As far > as I can tell, when the adaptive link option is set, org-store-link > and org-insert-link produce unabbreviated links for files in the home > directory. > > Thanks (and sorry for the wordiness). > Matt > >> >> Thanks, >> >> Matt Lundin > > > _______________________________________________ > 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