From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wojciech Gac Subject: Modification to `org-attach' allowing attaching from URL Date: Sat, 11 Mar 2017 02:07:34 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c03b7187ebc52054a6a1a37 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmVVS-0001bk-Od for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 20:07:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmVVR-00065N-LS for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 20:07:38 -0500 Received: from mail-ot0-x231.google.com ([2607:f8b0:4003:c0f::231]:34292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmVVR-00064F-Db for emacs-orgmode@gnu.org; Fri, 10 Mar 2017 20:07:37 -0500 Received: by mail-ot0-x231.google.com with SMTP id o24so86729023otb.1 for ; Fri, 10 Mar 2017 17:07:35 -0800 (PST) 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" To: emacs-orgmode@gnu.org --94eb2c03b7187ebc52054a6a1a37 Content-Type: multipart/alternative; boundary=94eb2c03b7187ebc4c054a6a1a35 --94eb2c03b7187ebc4c054a6a1a35 Content-Type: text/plain; charset=UTF-8 Hello, I wrote a tiny change of the `org-attach' function that allows to attach a file from a URL (downloading it in the process). I chose a binding of 'C-c C-a u' for this. I've updated the Texi documentation as well. Regards, Wojtek --94eb2c03b7187ebc4c054a6a1a35 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I wrote a tiny change of the `or= g-attach' function that allows to attach a file from a URL (downloading= it in the process). I chose a binding of 'C-c C-a u' for this. I&#= 39;ve updated the Texi documentation as well.

Rega= rds,
Wojtek
--94eb2c03b7187ebc4c054a6a1a35-- --94eb2c03b7187ebc52054a6a1a37 Content-Type: text/x-patch; charset=US-ASCII; name="0001-org-attach.el-Add-functionality-to-attach-from-URL.patch" Content-Disposition: attachment; filename="0001-org-attach.el-Add-functionality-to-attach-from-URL.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j04jvnlq0 RnJvbSAxNDc3ZTg2ZTE3MjFkN2EzZGI0YmY4NzEwMzJjOTcwZDlmMzI1OWFjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBXb2pjaWVjaCBHYWMgPHdvamNpZWNoLnMuZ2FjQGdtYWlsLmNv bT4KRGF0ZTogU2F0LCAxMSBNYXIgMjAxNyAwMTo1NDowNSArMDEwMApTdWJqZWN0OiBbUEFUQ0hd IG9yZy1hdHRhY2guZWw6IEFkZCBmdW5jdGlvbmFsaXR5IHRvIGF0dGFjaCBmcm9tIFVSTAoKKiBs aXNwL29yZy1hdHRhY2guZWwgKG9yZy1hdHRhY2gpOiBDcmVhdGUgYSBiaW5kaW5nIHVuZGVyICd1 JyB0bwogIGF0dGFjaCBhIGZpbGUgZnJvbSBVUkwKICAob3JnLWF0dGFjaC11cmwpOiBQcm9tcHQg dXNlciBmb3IgVVJMCiAgKG9yZy1hdHRhY2gtYXR0YWNoKTogVXBkYXRlIG1ldGhvZCBsaXN0Cgoq IGRvYy9vcmcudGV4aSAoQXR0YWNobWVudHMpOiBEb2N1bWVudCBhdHRhY2hpbmcgZnJvbSBVUkwK LS0tCiBkb2Mvb3JnLnRleGkgICAgICAgfCAgMyArKysKIGxpc3Avb3JnLWF0dGFjaC5lbCB8IDEy ICsrKysrKysrKystLQogMiBmaWxlcyBjaGFuZ2VkLCAxMyBpbnNlcnRpb25zKCspLCAyIGRlbGV0 aW9ucygtKQoKZGlmZiAtLWdpdCBhL2RvYy9vcmcudGV4aSBiL2RvYy9vcmc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