From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McLean Subject: [PATCH] Add Support for Evernote in Org-Mac Link Date: Mon, 14 Dec 2015 13:08:54 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a1140122a1fcb1f0526df9236 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8XYp-0006Cq-Ec for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 13:09:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8XYk-00063Q-Ec for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 13:09:23 -0500 Received: from pb-sasl0.int.icgroup.com ([208.72.237.25]:65107 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8XYk-00063H-9y for emacs-orgmode@gnu.org; Mon, 14 Dec 2015 13:09:18 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id A7087323B2 for ; Mon, 14 Dec 2015 13:09:16 -0500 (EST) Received: from pb-sasl0.int.icgroup.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id 9CC0C323B1 for ; Mon, 14 Dec 2015 13:09:16 -0500 (EST) Received: from mail-lf0-f51.google.com (unknown [209.85.215.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-sasl0.pobox.com (Postfix) with ESMTPSA id 03343323B0 for ; Mon, 14 Dec 2015 13:09:16 -0500 (EST) Received: by lfdl133 with SMTP id l133so125846623lfd.2 for ; Mon, 14 Dec 2015 10:09:14 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --001a1140122a1fcb1f0526df9236 Content-Type: multipart/alternative; boundary=001a1140122a1fcb190526df9234 --001a1140122a1fcb190526df9234 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The attached patch adds support for Evernote Note links in contrib/org-mac-link.el Commit Message: org-mac-link.el: Add support for Evernote Note Links (org-mac-grab-Evernote-app-p, org-mac-evernote-path): New custom variables to control Evernote grabbing (org-mac-evernote-note-open): New function to open an Evernote note by ID (org-as-get-selected-evernote-notes, org-mac-evernote-note-insert-selected): New functions to get the selected Evernote note(s) and insert them into current buffer Note this change also defines a new link type ("mac-evernote") via a call to =E2=80=9Corg-add-link-type=E2=80=9D. --001a1140122a1fcb190526df9234 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The attached patch adds support for Evernote Note links in= contrib/org-mac-link.el

Commit Message:

<= /div>
org-mac-link.el: Add support for Evernote Note Links

(org-mac-grab-Evernote-app-p, org-mac-evernote-path): New= custom
variables to control Evernote grabbing
(org-mac= -evernote-note-open): New function to open an Evernote note by
ID=
(org-as-get-selected-evernote-notes,
org-mac-evernote-= note-insert-selected): New functions to get the
selected Evernote= note(s) and insert them into current buffer

Note = this change also defines a new link type ("mac-evernote") via a
call to =E2=80=9Corg-add-link-type=E2=80=9D.

<= /div>
--001a1140122a1fcb190526df9234-- --001a1140122a1fcb1f0526df9236 Content-Type: application/octet-stream; name="0001-org-mac-link.el-Add-support-for-Evernote-Note-Links.patch" Content-Disposition: attachment; filename="0001-org-mac-link.el-Add-support-for-Evernote-Note-Links.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ii69wkwu0 RnJvbSA0OGM3ZGE2ZmQ4ZTY5MmMyNzFjMjdmOWFkZTJjN2M2YzMyNDY2YWRhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWtlIE1jTGVhbiA8bWlrZS5tY2xlYW5AcG9ib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dG8gdGhlIHNlbGVjdGVkIEV2ZXJub3RlIGl0ZW0ocyk7IG9wZW4gRXZlcm5vdGUgaXRlbSBieSBJ RAogOzsKIDs7CiA7OyBJbnN0YWxsYXRpb246CkBAIC0xOTUsNiArMjAwLDIzIEBACiAgIDpncm91 cCAnb3JnLW1hYy1mbGFnZ2VkLW1haWwKICAgOnR5cGUgJ3N0cmluZykKIAorKGRlZmN1c3RvbSBv cmctbWFjLWdyYWItRXZlcm5vdGUtYXBwLXAKKyAgKDwgMCAobGVuZ3RoIChzaGVsbC1jb21tYW5k LXRvLXN0cmluZworICAgICAgICAgICAgICAgICJtZGZpbmQga01ESXRlbUNGQnVuZGxlSWRlbnRp ZmllciA9PSAnY29tLmV2ZXJub3RlLkV2ZXJub3RlJyIpKSkKKyAgIkFkZCBtZW51IG9wdGlvbiBb ZV12ZXJub3RlIHRvIGdyYWIgbm90ZSBsaW5rcyBmcm9tIEV2ZXJub3RlLmFwcC4iCisgIDp0YWcg IkdyYWIgRXZlcm5vdGUuYXBwIG5vdGUgbGlua3MiCisgIDpncm91cCAnb3JnLW1hYy1saW5rCisg IDp0eXBlICdib29sZWFuKQorCisoZGVmY3VzdG9tIG9yZy1tYWMtZXZlcm5vdGUtcGF0aCAocmVw bGFjZS1yZWdleHAtaW4tc3RyaW5nIChyeCAoKiAoYW55ICIgXHRcbiIpKSBlb3MpCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICIiCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IChzaGVsbC1jb21tYW5kLXRvLXN0cmluZworICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIm1kZmluZCBrTURJdGVtQ0ZCdW5kbGVJZGVu dGlmaWVyID09ICdjb20uZXZlcm5vdGUuRXZlcm5vdGUnIikpCisgICJUaGUgcGF0aCB0byB0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