From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: function for cleaning org-attach directories Date: Sat, 18 Jul 2015 11:11:45 +0800 Message-ID: <874ml2f9ce.fsf@ericabrahamsen.net> References: <877fq0o4xx.fsf@ericabrahamsen.net> <87d1zs46jm.fsf@ericabrahamsen.net> <87vbdjico8.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGIXg-0007ml-6i for emacs-orgmode@gnu.org; Fri, 17 Jul 2015 23:12:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGIXZ-0001HS-TT for emacs-orgmode@gnu.org; Fri, 17 Jul 2015 23:12:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:51657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGIXZ-0001GE-NH for emacs-orgmode@gnu.org; Fri, 17 Jul 2015 23:11:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZGIXU-0002qZ-G5 for emacs-orgmode@gnu.org; Sat, 18 Jul 2015 05:11:49 +0200 Received: from 123.122.45.79 ([123.122.45.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jul 2015 05:11:48 +0200 Received: from eric by 123.122.45.79 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Jul 2015 05:11:48 +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 Alan Schmitt writes: > On 2015-07-17 07:19, Eric Abrahamsen writes: > >> Here we go, and this one ought to be a little more portable. I guess >> I'll do it as a proper patch in a bit. > > I gave this a try and it seems that `org-attach-directory' needs to be > defined for it to work. I'm surprised because I never configured this > and with gnorb I have had files attached using org-attach. Does gnorb > use a default value for this? Gnorb has calls to (require 'org-attach) in certain places -- unless you've loaded and used gnorb in your current session, you'll probably want to require that yourself.