From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Attachments and refiling Date: Wed, 24 Aug 2011 11:56:37 -0300 Message-ID: <4e55112c.a1beec0a.51eb.751f@mx.google.com> References: <87ei1rrdzd.fsf@gnu.org> <4e21b345.c74cec0a.7e49.3340@mx.google.com> <8739hvwikz.fsf@altern.org> <4e331ef7.47c3ec0a.7625.6ac7@mx.google.com> <87pqk2lj4e.fsf@altern.org> <4e4d77f7.1136650a.10fc.73a6@mx.google.com> <877h69pz4t.fsf@gnu.org> <4e4e8f74.0750640a.5572.ffff968b@mx.google.com> <87fwkqublv.fsf@altern.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwEsq-0008Kd-Hw for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 10:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwEsp-00086i-F4 for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 10:56:48 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:39328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwEsp-00086X-Bj for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 10:56:47 -0400 Received: by yxn35 with SMTP id 35so984487yxn.0 for ; Wed, 24 Aug 2011 07:56:46 -0700 (PDT) In-Reply-To: <87fwkqublv.fsf@altern.org> 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Gustav =?UTF-8?B?V2lrc3Ryw7Zt?= , emacs-orgmode@gnu.org At Wed, 24 Aug 2011 16:12:01 +0200, Bastien wrote: > > Hi Darlan, > > Darlan Cavalcante Moreira writes: > > > At Fri, 19 Aug 2011 10:46:26 +0200, > > Bastien wrote: > > > > What about org-add-link-type? > > Mmhh.. yes. We should be able to use something like: > > (org-add-link-type "attach" 'org-attach-open 'org-attach-export) > > > However, I could not make the the "export" part work because I can't use > > org-attach-expand in it. Therefore, I don't know how to get the attach > > directory inside a function that I can pass to org-add-link-type as the > > export function. > > That's not possible for now. That's something we can keep in mind > while working an a new export engine: exporting part of the content > should be done in a context-aware fashion, where it's possible to > get the value of org-attach-dir. Thanks for the confirmation Bastien. At least for me the export part is not very important right now. A context aware export engine would make this easy to achieve with org-add-link-type and probably open up many other possibilities, but I understand it is a lot of work. > > > Unfortunately, my elisp skills are very limited to go any further for > > now. > > Even with good elisp skills I'm afraid we cannot achieve this for > the moment. > > HTH, > > -- > Bastien -- Darlan