From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitri Makarov Subject: [PATCH] org-mac-link.el: Handle links to/from Adobe Acrobat. Date: Wed, 9 Sep 2015 12:42:06 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=14dae9cc998e4e50de051f4e22f9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZcpT-0008WP-0j for emacs-orgmode@gnu.org; Wed, 09 Sep 2015 06:42:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZcpO-0003Ui-89 for emacs-orgmode@gnu.org; Wed, 09 Sep 2015 06:42:14 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:36777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZcpO-0003Tg-0Z for emacs-orgmode@gnu.org; Wed, 09 Sep 2015 06:42:10 -0400 Received: by wicgb1 with SMTP id gb1so110943043wic.1 for ; Wed, 09 Sep 2015 03:42:08 -0700 (PDT) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com. [209.85.212.180]) by smtp.gmail.com with ESMTPSA id o10sm3185399wia.4.2015.09.09.03.42.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 03:42:07 -0700 (PDT) Received: by wicgb1 with SMTP id gb1so110942180wic.1 for ; Wed, 09 Sep 2015 03:42:07 -0700 (PDT) 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 --14dae9cc998e4e50de051f4e22f9 Content-Type: text/plain; charset=UTF-8 This is my second attempt to submit a patch that enables grabbing links from Adobe Acrobat Pro. Regards, Dmitri --14dae9cc998e4e50de051f4e22f9 Content-Type: text/plain; charset=US-ASCII; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iecnosz40 RnJvbSBiOWZlYjliM2ViZDYxOGQwZmM4ZTgyZGMyNjZkNjJlODI1Mjc3NWVkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEbWl0cmkgTWFrYXJvdiA8ZG1ha2Fyb3ZAYWx1bW5pLnN0YW5m b3JkLmVkdT4KRGF0ZTogV2VkLCAyNCBKdW4gMjAxNSAxMjoyMjo0NCArMDIwMApTdWJqZWN0OiBb UEFUQ0hdIG9yZy1tYWMtbGluay5lbDogSGFuZGxlIGxpbmtzIHRvL2Zyb20gQWRvYmUgQWNyb2Jh dC4KCiogY29udHJpYi9saXNwL29yZy1tYWMtbGluay5lbDogQWRkIG5ldyBsaW5rIHR5cGUgImFj cm9iYXQiIHRvIGdyYWIKICBsaW5rcyB0byBkb2N1bWVudHMgb3BlbiBpbiBBZG9iZSBBY3JvYmF0 IGFwcGxpY2F0aW9uLgotLS0KIGNvbnRyaWIvbGlzcC9vcmctbWFjLWxpbmsuZWwgfCA3MiArKysr KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrLQogMSBmaWxlIGNoYW5nZWQs IDcxIGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9jb250cmliL2xp c3Avb3JnLW1hYy1saW5rLmVsIGIvY29udHJpYi9saXNwL29yZy1tYWMtbGluay5lbAppbmRleCBj OTkxZGZhLi4xMTlkZThmIDEwMDY0NAotLS0gYS9jb250cmliL2xpc3Avb3JnLW1hYy1saW5rLmVs CisrKyBiL2NvbnRyaWIvbGlzcC9vcmctbWFjLWxpbmsuZWwKQEAgLTE2NSw2ICsxNjUsMTIgQEAK ICAgOmdyb3VwICdvcmctbWFjLWxpbmsKICAgOnR5cGUgJ2Jvb2xlYW4pCiAK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iAmIHRoZVBhZ2UgJiBcIjo6 XCIgJiB0aGVMYWJlbFxuIgorICAgICJyZXR1cm4gdGhlUmVzdWx0IGFzIHN0cmluZ1xuIikpKQor CisoZGVmdW4gb3JnLW1hYy1hY3JvYmF0LWdldC1wYWdlICgpCisgIChpbnRlcmFjdGl2ZSkKKyAg KG1lc3NhZ2UgIkFwcGxlc2NyaXB0OiBHZXR0aW5nIEFjcm9iYXQgcGFnZSBsaW5rLi4uIikKKyAg KGxldCogKChkZXNjcmlwdG9yIChhcy1nZXQtYWNyb2JhdC1wYWdlLWxpbmspKQorICAgICAgICAg KGNvbXBvbmVudHMgKHNwbGl0LXN0cmluZyBkZXNjcmlwdG9yICI6OiIpKQorICAgICAgICAgKHBh dGggKGNhciBjb21wb25lbnRzKSkKKyAgICAgICAgICh0aXRsZSAobnRoIDEgY29tcG9uZW50cykp CisgICAgICAgICAocGFnZSAobnRoIDIgY29tcG9uZW50cykpCisgICAgICAgICAobGFiZWwgKG50 aCAzIGNvbXBvbmVudHMpKQorICAgICAgICAgKGxpbmsgKGNvbmNhdCAiYWNyb2JhdDoiIHBhdGgg Ijo6IiBwYWdlKSkKKyAgICAgICAgIChkZXNjcmlwdGlvbiAoY29uY2F0IHRpdGxlICIsIHAuIiBs YWJlbCkpCisgICAgICAgICAob3JnLWxpbmspKQorICAgICh3aGVuIChub3QgKHN0cmluZz0gbGlu ayAiIikpCisgICAgICAoc2V0cSBvcmctbGluayAob3JnLW1ha2UtbGluay1zdHJpbmcgbGluayBk ZXNjcmlwdGlvbikpKQorICAgIChraWxsLW5ldyBvcmctbGluaykKKyAgICBvcmctbGluaykpCisK KyhkZWZ1biBvcmctbWFjLWFjcm9iYXQtaW5zZXJ0LXBhZ2UgKCkKKyAgKGludGVyYWN0aXZlKQor ICAoaW5zZXJ0IChvcmctbWFjLWFjcm9iYXQtZ2V0LXBhZ2UpKSkKKwogDAogOzsgSGFuZGxlIGxp bmtzIGZyb20gTWljcm9zb2Z0IE91dGxvb2suYXBwCiAKLS0gCjIuNS4xCgo= --14dae9cc998e4e50de051f4e22f9--