From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicolas Richard" 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 10:58:11 +0200 Message-ID: <87zk4ia0yk.fsf@yahoo.fr> References: <5059DC5B.3080203@yahoo.fr> <20120922071424.GA942@kenny.fritz.box> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFLXS-000301-D2 for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 04:58:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFLXR-0005Cp-G4 for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 04:58:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:59399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFLXR-0005Ci-93 for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 04:58:13 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TFLXS-0003IM-Lq for emacs-orgmode@gnu.org; Sat, 22 Sep 2012 10:58:14 +0200 Received: from geodiff-mac3.ulb.ac.be ([164.15.131.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Sep 2012 10:58:14 +0200 Received: from theonewiththeevillook by geodiff-mac3.ulb.ac.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Sep 2012 10:58:14 +0200 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 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. > - I use "attach" instead of "att" as a link prefix in my files and had > to change the names of the functions. Sorry about that, but I did not > want to fix all my links. That's fine, I only used "att" because it was the name I found in an older discussion and I just copied the code. -- Nico.