From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Re: An org-attach link type [7.9.1 (7.9.1-elpa @ /home/youngfrog/.emacs.d/elpa/org-20120903/)] Date: Sat, 22 Sep 2012 19:52:34 +0200 Message-ID: <20120922175234.GA17397@kenny> References: <5059DC5B.3080203@yahoo.fr> <20120922071424.GA942@kenny.fritz.box> <87zk4ia0yk.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFTsd-0004Pq-BL for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 13:52:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFTsc-0004wJ-DV for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 13:52:39 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:38602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFTsc-0004wF-6t for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 13:52:38 -0400 Received: by wibhn17 with SMTP id hn17so2644333wib.12 for ; Sat, 22 Sep 2012 10:52:37 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87zk4ia0yk.fsf@yahoo.fr> 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: emacs-orgmode@gnu.org Hi Nicolas, Nicolas Richard wrote: > Hello Viktor, > > Thanks for your input. > > > - I have to load the "cl" module, otherwise the "case" function is > > void. > > Sorry about that. I didn't notice it was from cl. > > > - I had to replace "find-lisp-find-files" with "directory-files" because > > the former does not exist on my Emacs installation. I use GNU Emacs > > 24.2.1 on OS X compiled from MacPorts. > > Oops again. (require 'find-lisp) should fix that. The big difference > with directory-files is that find-lisp-find-files looks also in > subdirectories (I often attach subdirectories and like to link files > from therein). And it returns full paths, too, which explains some parts > of the rest of the code. If "find-lisp-find-files" returns full paths then the discrimination in org-attach-complete-how makes sense. Pretty cool. Cheers, Viktor