From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: [PATCH] org-attach.el: Fetch attachments from git annex Date: Mon, 04 Jan 2016 22:11:12 -0800 Message-ID: <568b5e82.0406430a.a1c6a.0ce9@mx.google.com> References: <568b532e.d111620a.b25a8.ffffbb7c@mx.google.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGKpy-0001kV-Tp for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 01:11:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGKpv-0000ZZ-O2 for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 01:11:18 -0500 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:34667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGKpv-0000ZA-HT for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 01:11:15 -0500 Received: by mail-pf0-x22a.google.com with SMTP id e65so161777248pfe.1 for ; Mon, 04 Jan 2016 22:11:15 -0800 (PST) Received: from marut.e6h.org (50-0-83-149.dsl.static.fusionbroadband.com. [50.0.83.149]) by smtp.gmail.com with ESMTPSA id cq4sm14447547pad.28.2016.01.04.22.11.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jan 2016 22:11:14 -0800 (PST) In-Reply-To: <568b532e.d111620a.b25a8.ffffbb7c@mx.google.com> 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 On Mon, 04 Jan 2016 21:09:55 -0800, Erik Hetzner wrote: > > * org-attach.el (org-attach-use-annex): New function to check if git > annex should be used. > (org-annex-open): Automatically fetch attached files from git annex when > opening if appropriate. [=E2=80=A6] Hi all, I couldn=E2=80=99t figure out how to add a comment to my patch, so here is = a little more commentary. Right now, if you use git to sync your Org files and git annex to manage yo= ur (large) attachments, and are on a different computer from the one you were = using when you added the attachment, you will typically have a dangling symlink to your attachment until you call =3Dget annex get PATH=3D. (This is how git a= nnex is intended to work.) This patch automatically calls =3Dgit annex get PATH=3D when you open the a= ttachment from Org, if the file has not been fetched already. (It would be nice to have Org do the same thing when exporting to HTML as w= ell, if the git annex file is an image that is being exported as an embedded ima= ge link, but I can=E2=80=99t figure out how to do that.) I have signed copyright assignment papers with the FSF. best, Erik -- Sent from my free software system .